diff --git a/src/DataProtection/Az.DataProtection.format.ps1xml b/src/DataProtection/Az.DataProtection.format.ps1xml index 90fd96659621..42097be48351 100644 --- a/src/DataProtection/Az.DataProtection.format.ps1xml +++ b/src/DataProtection/Az.DataProtection.format.ps1xml @@ -582,9 +582,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupInstanceResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupInstanceResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupInstanceResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupInstanceResource @@ -610,9 +610,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AbsoluteDeleteOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AbsoluteDeleteOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AbsoluteDeleteOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AbsoluteDeleteOption @@ -638,9 +638,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AdHocBackupRuleOptions + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AdHocBackupRuleOptions - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AdHocBackupRuleOptions + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AdHocBackupRuleOptions @@ -660,9 +660,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AdhocBackupTriggerOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AdhocBackupTriggerOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AdhocBackupTriggerOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AdhocBackupTriggerOption @@ -682,9 +682,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AdhocBasedTriggerContext + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AdhocBasedTriggerContext - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AdhocBasedTriggerContext + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AdhocBasedTriggerContext @@ -704,9 +704,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AuthCredentials + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AuthCredentials - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AuthCredentials + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AuthCredentials @@ -726,15 +726,18 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupDiscreteRecoveryPoint + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupDiscreteRecoveryPoint - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupDiscreteRecoveryPoint + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupDiscreteRecoveryPoint + + + @@ -766,6 +769,9 @@ ObjectType + + ExpiryTime + FriendlyName @@ -796,9 +802,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupFindRestorableTimeRangesRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupFindRestorableTimeRangesRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupFindRestorableTimeRangesRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupFindRestorableTimeRangesRequest @@ -830,9 +836,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupFindRestorableTimeRangesRequestResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupFindRestorableTimeRangesRequestResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupFindRestorableTimeRangesRequestResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupFindRestorableTimeRangesRequestResource @@ -876,9 +882,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupFindRestorableTimeRangesResponse + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupFindRestorableTimeRangesResponse - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupFindRestorableTimeRangesResponse + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupFindRestorableTimeRangesResponse @@ -898,9 +904,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupFindRestorableTimeRangesResponseResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupFindRestorableTimeRangesResponseResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupFindRestorableTimeRangesResponseResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupFindRestorableTimeRangesResponseResource @@ -920,9 +926,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupJob + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupJob - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupJob + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupJob @@ -1104,9 +1110,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupJobResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupJobResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupJobResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupJobResource @@ -1126,9 +1132,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupJobResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupJobResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupJobResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupJobResourceList @@ -1148,9 +1154,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupParams + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupParams - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupParams + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupParams @@ -1176,9 +1182,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRecoveryPoint + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRecoveryPoint - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRecoveryPoint + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRecoveryPoint @@ -1198,9 +1204,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRecoveryPointBasedRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRecoveryPointBasedRestoreRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRecoveryPointBasedRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRecoveryPointBasedRestoreRequest @@ -1238,9 +1244,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRecoveryPointResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRecoveryPointResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRecoveryPointResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRecoveryPointResource @@ -1260,9 +1266,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRecoveryPointResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRecoveryPointResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRecoveryPointResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRecoveryPointResourceList @@ -1282,9 +1288,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRecoveryTimeBasedRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRecoveryTimeBasedRestoreRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRecoveryTimeBasedRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRecoveryTimeBasedRestoreRequest @@ -1322,9 +1328,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRehydrationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRehydrationRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRehydrationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRehydrationRequest @@ -1356,9 +1362,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRestoreRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRestoreRequest @@ -1390,9 +1396,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRestoreWithRehydrationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRestoreWithRehydrationRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRestoreWithRehydrationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRestoreWithRehydrationRequest @@ -1442,9 +1448,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRule - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRule @@ -1470,9 +1476,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureMonitorAlertSettings + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureMonitorAlertSettings - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureMonitorAlertSettings + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureMonitorAlertSettings @@ -1492,9 +1498,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureOperationalStoreParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureOperationalStoreParameters - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureOperationalStoreParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureOperationalStoreParameters @@ -1526,9 +1532,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureRetentionRule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureRetentionRule - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureRetentionRule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureRetentionRule @@ -1560,9 +1566,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupCriteria - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupCriteria @@ -1582,9 +1588,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupInstance + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupInstance - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupInstance + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupInstance @@ -1628,9 +1634,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupInstanceResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupInstanceResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupInstanceResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupInstanceResourceList @@ -1650,9 +1656,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupParameters - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupParameters @@ -1672,9 +1678,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupPolicy + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupPolicy - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupPolicy + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupPolicy @@ -1700,9 +1706,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupSchedule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupSchedule - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupSchedule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupSchedule @@ -1728,12 +1734,15 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupVault + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupVault - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupVault + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupVault + + + @@ -1744,6 +1753,9 @@ + + IsVaultProtectedByResourceGuard + ProvisioningState @@ -1756,9 +1768,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupVaultResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupVaultResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupVaultResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupVaultResource @@ -1790,9 +1802,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupVaultResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupVaultResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupVaultResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupVaultResourceList @@ -1812,9 +1824,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BaseBackupPolicy + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BaseBackupPolicy - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BaseBackupPolicy + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BaseBackupPolicy @@ -1840,9 +1852,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BaseBackupPolicyResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BaseBackupPolicyResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BaseBackupPolicyResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BaseBackupPolicyResource @@ -1862,9 +1874,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BaseBackupPolicyResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BaseBackupPolicyResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BaseBackupPolicyResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BaseBackupPolicyResourceList @@ -1884,9 +1896,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BasePolicyRule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BasePolicyRule - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BasePolicyRule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BasePolicyRule @@ -1912,9 +1924,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.CheckNameAvailabilityRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CheckNameAvailabilityRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.CheckNameAvailabilityRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CheckNameAvailabilityRequest @@ -1934,9 +1946,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.CheckNameAvailabilityResult + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CheckNameAvailabilityResult - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.CheckNameAvailabilityResult + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CheckNameAvailabilityResult @@ -1968,9 +1980,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryDisplay + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ClientDiscoveryDisplay - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryDisplay + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ClientDiscoveryDisplay @@ -2008,9 +2020,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryForLogSpecification + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ClientDiscoveryForLogSpecification - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryForLogSpecification + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ClientDiscoveryForLogSpecification @@ -2042,9 +2054,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryResponse + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ClientDiscoveryResponse - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryResponse + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ClientDiscoveryResponse @@ -2064,9 +2076,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryValueForSingleApi + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ClientDiscoveryValueForSingleApi - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryValueForSingleApi + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ClientDiscoveryValueForSingleApi @@ -2098,9 +2110,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.CopyOnExpiryOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CopyOnExpiryOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.CopyOnExpiryOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CopyOnExpiryOption @@ -2120,9 +2132,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.CopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CopyOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.CopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CopyOption @@ -2142,9 +2154,31 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.CustomCopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CrossSubscriptionRestoreSettings - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.CustomCopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CrossSubscriptionRestoreSettings + + + + + + + + + + + + State + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CustomCopyOption + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CustomCopyOption @@ -2170,9 +2204,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.Datasource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.Datasource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.Datasource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.Datasource @@ -2222,9 +2256,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DatasourceSet + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceSet - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DatasourceSet + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceSet @@ -2280,9 +2314,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DataStoreInfoBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DataStoreInfoBase - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DataStoreInfoBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DataStoreInfoBase @@ -2308,9 +2342,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DataStoreParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DataStoreParameters - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DataStoreParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DataStoreParameters @@ -2336,9 +2370,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.Day + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.Day - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.Day + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.Day @@ -2364,37 +2398,55 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DeleteOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeletedBackupInstance - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DeleteOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeletedBackupInstance - + + + + + + + + + + - Duration + CurrentProtectionState + + + FriendlyName ObjectType + + ProvisioningState + + + ValidationType + - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppBaseResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeletedBackupInstanceResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppBaseResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeletedBackupInstanceResource @@ -2414,9 +2466,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppBaseResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeletedBackupInstanceResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppBaseResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeletedBackupInstanceResourceList @@ -2436,27 +2488,27 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppIdentityDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeleteOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppIdentityDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeleteOption - + - + - PrincipalId + Duration - TenantId + ObjectType @@ -2464,9 +2516,49 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppProxyResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeletionInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppProxyResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeletionInfo + + + + + + + + + + + + + + + + + + + + + BillingEndDate + + + DeleteActivityId + + + DeletionTime + + + ScheduledPurgeTime + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseResource + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseResource @@ -2486,21 +2578,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppProxyResourceTags + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppProxyResourceTags + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseResourceList - + - Item + NextLink @@ -2508,12 +2600,18 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseTrackedResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseTrackedResource + + + + + + @@ -2521,6 +2619,12 @@ + + ETag + + + Location + Name @@ -2530,21 +2634,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseTrackedResourceTags - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseTrackedResourceTags - + - NextLink + Item @@ -2552,18 +2656,40 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppTrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppIdentityDetails - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppTrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppIdentityDetails - + - + + + + + + + PrincipalId + + + TenantId + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppProxyResource + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppProxyResource + + + @@ -2572,11 +2698,49 @@ - ETag + Name + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppProxyResourceTags + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppProxyResourceTags + + + + + + + + + + - Location + Item + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppResource + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppResource + + + + + + + + + + Name @@ -2586,9 +2750,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppTrackedResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppTrackedResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppResourceList @@ -2608,21 +2772,55 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppTrackedResourceTags + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppTrackedResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppTrackedResourceTags + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppTrackedResource - + + + + + + + - Item + ETag + + + Location + + + Name + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppTrackedResourceList + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppTrackedResourceList + + + + + + + + + + + + NextLink @@ -2630,9 +2828,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppWorkerRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppWorkerRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppWorkerRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppWorkerRequest @@ -2676,9 +2874,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppWorkerRequestHeaders + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppWorkerRequestHeaders - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppWorkerRequestHeaders + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppWorkerRequestHeaders @@ -2698,9 +2896,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppWorkerRequestParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppWorkerRequestParameters - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppWorkerRequestParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppWorkerRequestParameters @@ -2720,9 +2918,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.Error + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.Error - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.Error + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.Error @@ -2754,9 +2952,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ExportJobsResult + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ExportJobsResult - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ExportJobsResult + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ExportJobsResult @@ -2794,9 +2992,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.FeatureValidationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.FeatureValidationRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.FeatureValidationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.FeatureValidationRequest @@ -2828,9 +3026,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.FeatureValidationRequestBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.FeatureValidationRequestBase - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.FeatureValidationRequestBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.FeatureValidationRequestBase @@ -2850,9 +3048,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.FeatureValidationResponse + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.FeatureValidationResponse - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.FeatureValidationResponse + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.FeatureValidationResponse @@ -2878,9 +3076,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.FeatureValidationResponseBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.FeatureValidationResponseBase - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.FeatureValidationResponseBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.FeatureValidationResponseBase @@ -2900,9 +3098,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ImmediateCopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ImmediateCopyOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ImmediateCopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ImmediateCopyOption @@ -2922,9 +3120,31 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.InnerError + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ImmutabilitySettings - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.InnerError + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ImmutabilitySettings + + + + + + + + + + + + State + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.InnerError + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.InnerError @@ -2944,9 +3164,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.InnerErrorAdditionalInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.InnerErrorAdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.InnerErrorAdditionalInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.InnerErrorAdditionalInfo @@ -2966,9 +3186,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ItemLevelRestoreCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ItemLevelRestoreCriteria - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ItemLevelRestoreCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ItemLevelRestoreCriteria @@ -2988,9 +3208,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ItemLevelRestoreTargetInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ItemLevelRestoreTargetInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ItemLevelRestoreTargetInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ItemLevelRestoreTargetInfo @@ -3022,9 +3242,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobExtendedInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobExtendedInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobExtendedInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobExtendedInfo @@ -3056,9 +3276,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobExtendedInfoAdditionalDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobExtendedInfoAdditionalDetails - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobExtendedInfoAdditionalDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobExtendedInfoAdditionalDetails @@ -3078,9 +3298,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobSubTask + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobSubTask - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobSubTask + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobSubTask @@ -3118,9 +3338,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobSubTaskAdditionalDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobSubTaskAdditionalDetails - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobSubTaskAdditionalDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobSubTaskAdditionalDetails @@ -3140,9 +3360,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.KubernetesPvRestoreCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.KubernetesPvRestoreCriteria - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.KubernetesPvRestoreCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.KubernetesPvRestoreCriteria @@ -3174,9 +3394,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.KubernetesStorageClassRestoreCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.KubernetesStorageClassRestoreCriteria - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.KubernetesStorageClassRestoreCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.KubernetesStorageClassRestoreCriteria @@ -3208,9 +3428,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.OperationExtendedInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.OperationExtendedInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.OperationExtendedInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.OperationExtendedInfo @@ -3230,9 +3450,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.OperationJobExtendedInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.OperationJobExtendedInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.OperationJobExtendedInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.OperationJobExtendedInfo @@ -3258,9 +3478,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.OperationResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.OperationResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.OperationResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.OperationResource @@ -3298,9 +3518,31 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.PatchResourceRequestInputTags + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PatchResourceGuardInputTags + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PatchResourceGuardInputTags + + + + + + + + + + + + Item + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PatchResourceRequestInputTags - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.PatchResourceRequestInputTags + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PatchResourceRequestInputTags @@ -3320,9 +3562,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.PolicyInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PolicyInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.PolicyInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PolicyInfo @@ -3348,9 +3590,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ProtectionStatusDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ProtectionStatusDetails - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ProtectionStatusDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ProtectionStatusDetails @@ -3370,9 +3612,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RangeBasedItemLevelRestoreCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RangeBasedItemLevelRestoreCriteria - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RangeBasedItemLevelRestoreCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RangeBasedItemLevelRestoreCriteria @@ -3404,9 +3646,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RecoveryPointDataStoreDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RecoveryPointDataStoreDetails - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RecoveryPointDataStoreDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RecoveryPointDataStoreDetails @@ -3462,9 +3704,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RecoveryPointsFilters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RecoveryPointsFilters - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RecoveryPointsFilters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RecoveryPointsFilters @@ -3514,9 +3756,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceGuard + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceGuard - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceGuard + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceGuard @@ -3554,9 +3796,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceGuardOperation + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceGuardOperation - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceGuardOperation + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceGuardOperation @@ -3582,24 +3824,15 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceGuardResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceGuardResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceGuardResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceGuardResource - - - - - - - - - @@ -3613,15 +3846,6 @@ ETag - - IdentityPrincipalId - - - IdentityTenantId - - - IdentityType - Location @@ -3634,9 +3858,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceGuardResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceGuardResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceGuardResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceGuardResourceList @@ -3656,9 +3880,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceMoveDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceMoveDetails - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceMoveDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceMoveDetails @@ -3702,9 +3926,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestorableTimeRange + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestorableTimeRange - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestorableTimeRange + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestorableTimeRange @@ -3736,9 +3960,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreFilesTargetInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreFilesTargetInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreFilesTargetInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreFilesTargetInfo @@ -3770,9 +3994,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreJobRecoveryPointDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreJobRecoveryPointDetails - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreJobRecoveryPointDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreJobRecoveryPointDetails @@ -3798,9 +4022,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreTargetInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreTargetInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreTargetInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreTargetInfo @@ -3832,9 +4056,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreTargetInfoBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreTargetInfoBase - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreTargetInfoBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreTargetInfoBase @@ -3866,9 +4090,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RetentionTag + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RetentionTag - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RetentionTag + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RetentionTag @@ -3894,9 +4118,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ScheduleBasedBackupCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ScheduleBasedBackupCriteria - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ScheduleBasedBackupCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ScheduleBasedBackupCriteria @@ -3946,9 +4170,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ScheduleBasedTriggerContext + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ScheduleBasedTriggerContext - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ScheduleBasedTriggerContext + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ScheduleBasedTriggerContext @@ -3968,9 +4192,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SecretStoreBasedAuthCredentials + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecretStoreBasedAuthCredentials - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SecretStoreBasedAuthCredentials + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecretStoreBasedAuthCredentials @@ -3990,9 +4214,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SecretStoreResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecretStoreResource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SecretStoreResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecretStoreResource @@ -4024,9 +4248,37 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.StorageSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SoftDeleteSettings + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SoftDeleteSettings + + + + + + + + + + + + + + + RetentionDurationInDay + + + State + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.StorageSetting - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.StorageSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.StorageSetting @@ -4046,9 +4298,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SupportedFeature + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SupportedFeature - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SupportedFeature + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SupportedFeature @@ -4080,9 +4332,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SyncBackupInstanceRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SyncBackupInstanceRequest - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SyncBackupInstanceRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SyncBackupInstanceRequest @@ -4102,9 +4354,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemData + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemData + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemData @@ -4154,9 +4406,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TaggingCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TaggingCriteria - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TaggingCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TaggingCriteria @@ -4182,9 +4434,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TargetDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TargetDetails - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TargetDetails + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TargetDetails @@ -4194,6 +4446,9 @@ + + + @@ -4207,6 +4462,9 @@ RestoreTargetLocationType + + TargetResourceArmId + Url @@ -4216,9 +4474,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TriggerContext + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TriggerContext - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TriggerContext + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TriggerContext @@ -4238,9 +4496,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.UserFacingError + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingError - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.UserFacingError + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingError @@ -4290,9 +4548,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.UserFacingErrorProperties + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingErrorProperties - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.UserFacingErrorProperties + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingErrorProperties diff --git a/src/DataProtection/Az.DataProtection.psd1 b/src/DataProtection/Az.DataProtection.psd1 index 08bb8dbf1b2e..9d84ba0f163c 100644 --- a/src/DataProtection/Az.DataProtection.psd1 +++ b/src/DataProtection/Az.DataProtection.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 09/11/2022 +# Generated on: 1/30/2023 # @{ @@ -145,7 +145,7 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* Fixed spacing issues in Set-AzDataProtectionMSIPermission.ps1' + # ReleaseNotes = '' # Prerelease string of this module # Prerelease = '' diff --git a/src/DataProtection/Az.DataProtection.psm1 b/src/DataProtection/Az.DataProtection.psm1 index e032a9f20cd5..c2b95760209c 100644 --- a/src/DataProtection/Az.DataProtection.psm1 +++ b/src/DataProtection/Az.DataProtection.psm1 @@ -33,7 +33,7 @@ } if(-not $accountsModule) { - Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://learn.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop + Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://docs.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop } elseif (($accountsModule.Version -lt [System.Version]'2.7.5') -and (-not $localAccounts)) { Write-Error "`nThis module requires $accountsName version 2.7.5 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 } diff --git a/src/DataProtection/Changelog.md b/src/DataProtection/ChangeLog.md similarity index 84% rename from src/DataProtection/Changelog.md rename to src/DataProtection/ChangeLog.md index c0d90b5f74dd..e46c440c2fa8 100644 --- a/src/DataProtection/Changelog.md +++ b/src/DataProtection/ChangeLog.md @@ -18,6 +18,12 @@ - Additional information about change #1 --> ## Upcoming Release +* Added support for Immutable backup vaults +* Added Cross subscription restore flag for backup vaults +* Added Soft delete setting for backup vaults +* Fixed issue with Set-AzDataProtectionMSIPermission command +* Replaced Get-InstalledModule with Get-Module -ListAvailable +* Added New-AzDataProtectionSoftDeleteSettingObject command ## Version 1.0.1 * Fixed spacing issues in Set-AzDataProtectionMSIPermission.ps1 diff --git a/src/DataProtection/DataProtection.sln b/src/DataProtection/DataProtection.sln index ef7e04c93a1e..92a214c8b772 100644 --- a/src/DataProtection/DataProtection.sln +++ b/src/DataProtection/DataProtection.sln @@ -1,104 +1,58 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.6.30114.105 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31903.59 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{7420DEFA-6083-4062-8D44-6FAF25466005}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{70F3ABF5-CC20-44FA-9625-9C793F887E37}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{0D649829-9B0A-412F-8FAC-8088DF1BE079}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{3D1F7405-0C02-4B42-81E2-3B9EF70A46EE}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{BCEDA6E2-0624-4179-9F43-27E17EED7F31}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{96DD0394-7DB5-4348-9D79-DA69BE6555AE}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{23F84C52-7CD4-47DD-8879-A61B4F603606}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{6F3E1031-0E67-4DAA-90DE-340A4471D686}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{0CEFCFC5-47DA-4F26-BA49-5F78AD019AB3}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DataProtection", "Az.DataProtection.csproj", "{F5D50887-CA63-4D05-9019-0DED90C0C9BA}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{8FC38CC5-15DA-439A-BB6D-3DC0418BC512}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DataProtection", "Az.DataProtection.csproj", "{ED46C18F-5742-4793-AF2A-DDB77AC7DC09}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU - Release|x64 = Release|x64 - Release|x86 = Release|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {7420DEFA-6083-4062-8D44-6FAF25466005}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7420DEFA-6083-4062-8D44-6FAF25466005}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7420DEFA-6083-4062-8D44-6FAF25466005}.Debug|x64.ActiveCfg = Debug|Any CPU - {7420DEFA-6083-4062-8D44-6FAF25466005}.Debug|x64.Build.0 = Debug|Any CPU - {7420DEFA-6083-4062-8D44-6FAF25466005}.Debug|x86.ActiveCfg = Debug|Any CPU - {7420DEFA-6083-4062-8D44-6FAF25466005}.Debug|x86.Build.0 = Debug|Any CPU - {7420DEFA-6083-4062-8D44-6FAF25466005}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7420DEFA-6083-4062-8D44-6FAF25466005}.Release|Any CPU.Build.0 = Release|Any CPU - {7420DEFA-6083-4062-8D44-6FAF25466005}.Release|x64.ActiveCfg = Release|Any CPU - {7420DEFA-6083-4062-8D44-6FAF25466005}.Release|x64.Build.0 = Release|Any CPU - {7420DEFA-6083-4062-8D44-6FAF25466005}.Release|x86.ActiveCfg = Release|Any CPU - {7420DEFA-6083-4062-8D44-6FAF25466005}.Release|x86.Build.0 = Release|Any CPU - {0D649829-9B0A-412F-8FAC-8088DF1BE079}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0D649829-9B0A-412F-8FAC-8088DF1BE079}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0D649829-9B0A-412F-8FAC-8088DF1BE079}.Debug|x64.ActiveCfg = Debug|Any CPU - {0D649829-9B0A-412F-8FAC-8088DF1BE079}.Debug|x64.Build.0 = Debug|Any CPU - {0D649829-9B0A-412F-8FAC-8088DF1BE079}.Debug|x86.ActiveCfg = Debug|Any CPU - {0D649829-9B0A-412F-8FAC-8088DF1BE079}.Debug|x86.Build.0 = Debug|Any CPU - {0D649829-9B0A-412F-8FAC-8088DF1BE079}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0D649829-9B0A-412F-8FAC-8088DF1BE079}.Release|Any CPU.Build.0 = Release|Any CPU - {0D649829-9B0A-412F-8FAC-8088DF1BE079}.Release|x64.ActiveCfg = Release|Any CPU - {0D649829-9B0A-412F-8FAC-8088DF1BE079}.Release|x64.Build.0 = Release|Any CPU - {0D649829-9B0A-412F-8FAC-8088DF1BE079}.Release|x86.ActiveCfg = Release|Any CPU - {0D649829-9B0A-412F-8FAC-8088DF1BE079}.Release|x86.Build.0 = Release|Any CPU - {BCEDA6E2-0624-4179-9F43-27E17EED7F31}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BCEDA6E2-0624-4179-9F43-27E17EED7F31}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BCEDA6E2-0624-4179-9F43-27E17EED7F31}.Debug|x64.ActiveCfg = Debug|Any CPU - {BCEDA6E2-0624-4179-9F43-27E17EED7F31}.Debug|x64.Build.0 = Debug|Any CPU - {BCEDA6E2-0624-4179-9F43-27E17EED7F31}.Debug|x86.ActiveCfg = Debug|Any CPU - {BCEDA6E2-0624-4179-9F43-27E17EED7F31}.Debug|x86.Build.0 = Debug|Any CPU - {BCEDA6E2-0624-4179-9F43-27E17EED7F31}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BCEDA6E2-0624-4179-9F43-27E17EED7F31}.Release|Any CPU.Build.0 = Release|Any CPU - {BCEDA6E2-0624-4179-9F43-27E17EED7F31}.Release|x64.ActiveCfg = Release|Any CPU - {BCEDA6E2-0624-4179-9F43-27E17EED7F31}.Release|x64.Build.0 = Release|Any CPU - {BCEDA6E2-0624-4179-9F43-27E17EED7F31}.Release|x86.ActiveCfg = Release|Any CPU - {BCEDA6E2-0624-4179-9F43-27E17EED7F31}.Release|x86.Build.0 = Release|Any CPU - {23F84C52-7CD4-47DD-8879-A61B4F603606}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {23F84C52-7CD4-47DD-8879-A61B4F603606}.Debug|Any CPU.Build.0 = Debug|Any CPU - {23F84C52-7CD4-47DD-8879-A61B4F603606}.Debug|x64.ActiveCfg = Debug|Any CPU - {23F84C52-7CD4-47DD-8879-A61B4F603606}.Debug|x64.Build.0 = Debug|Any CPU - {23F84C52-7CD4-47DD-8879-A61B4F603606}.Debug|x86.ActiveCfg = Debug|Any CPU - {23F84C52-7CD4-47DD-8879-A61B4F603606}.Debug|x86.Build.0 = Debug|Any CPU - {23F84C52-7CD4-47DD-8879-A61B4F603606}.Release|Any CPU.ActiveCfg = Release|Any CPU - {23F84C52-7CD4-47DD-8879-A61B4F603606}.Release|Any CPU.Build.0 = Release|Any CPU - {23F84C52-7CD4-47DD-8879-A61B4F603606}.Release|x64.ActiveCfg = Release|Any CPU - {23F84C52-7CD4-47DD-8879-A61B4F603606}.Release|x64.Build.0 = Release|Any CPU - {23F84C52-7CD4-47DD-8879-A61B4F603606}.Release|x86.ActiveCfg = Release|Any CPU - {23F84C52-7CD4-47DD-8879-A61B4F603606}.Release|x86.Build.0 = Release|Any CPU - {BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}.Debug|x64.ActiveCfg = Debug|Any CPU - {BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}.Debug|x64.Build.0 = Debug|Any CPU - {BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}.Debug|x86.ActiveCfg = Debug|Any CPU - {BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}.Debug|x86.Build.0 = Debug|Any CPU - {BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}.Release|Any CPU.Build.0 = Release|Any CPU - {BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}.Release|x64.ActiveCfg = Release|Any CPU - {BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}.Release|x64.Build.0 = Release|Any CPU - {BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}.Release|x86.ActiveCfg = Release|Any CPU - {BB536487-A1BA-42A0-ACCC-A19A0CBFF20F}.Release|x86.Build.0 = Release|Any CPU - {F5D50887-CA63-4D05-9019-0DED90C0C9BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F5D50887-CA63-4D05-9019-0DED90C0C9BA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F5D50887-CA63-4D05-9019-0DED90C0C9BA}.Debug|x64.ActiveCfg = Debug|Any CPU - {F5D50887-CA63-4D05-9019-0DED90C0C9BA}.Debug|x64.Build.0 = Debug|Any CPU - {F5D50887-CA63-4D05-9019-0DED90C0C9BA}.Debug|x86.ActiveCfg = Debug|Any CPU - {F5D50887-CA63-4D05-9019-0DED90C0C9BA}.Debug|x86.Build.0 = Debug|Any CPU - {F5D50887-CA63-4D05-9019-0DED90C0C9BA}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F5D50887-CA63-4D05-9019-0DED90C0C9BA}.Release|Any CPU.Build.0 = Release|Any CPU - {F5D50887-CA63-4D05-9019-0DED90C0C9BA}.Release|x64.ActiveCfg = Release|Any CPU - {F5D50887-CA63-4D05-9019-0DED90C0C9BA}.Release|x64.Build.0 = Release|Any CPU - {F5D50887-CA63-4D05-9019-0DED90C0C9BA}.Release|x86.ActiveCfg = Release|Any CPU - {F5D50887-CA63-4D05-9019-0DED90C0C9BA}.Release|x86.Build.0 = Release|Any CPU + {70F3ABF5-CC20-44FA-9625-9C793F887E37}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {70F3ABF5-CC20-44FA-9625-9C793F887E37}.Debug|Any CPU.Build.0 = Debug|Any CPU + {70F3ABF5-CC20-44FA-9625-9C793F887E37}.Release|Any CPU.ActiveCfg = Release|Any CPU + {70F3ABF5-CC20-44FA-9625-9C793F887E37}.Release|Any CPU.Build.0 = Release|Any CPU + {3D1F7405-0C02-4B42-81E2-3B9EF70A46EE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3D1F7405-0C02-4B42-81E2-3B9EF70A46EE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3D1F7405-0C02-4B42-81E2-3B9EF70A46EE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3D1F7405-0C02-4B42-81E2-3B9EF70A46EE}.Release|Any CPU.Build.0 = Release|Any CPU + {96DD0394-7DB5-4348-9D79-DA69BE6555AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {96DD0394-7DB5-4348-9D79-DA69BE6555AE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {96DD0394-7DB5-4348-9D79-DA69BE6555AE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {96DD0394-7DB5-4348-9D79-DA69BE6555AE}.Release|Any CPU.Build.0 = Release|Any CPU + {6F3E1031-0E67-4DAA-90DE-340A4471D686}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6F3E1031-0E67-4DAA-90DE-340A4471D686}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6F3E1031-0E67-4DAA-90DE-340A4471D686}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6F3E1031-0E67-4DAA-90DE-340A4471D686}.Release|Any CPU.Build.0 = Release|Any CPU + {0CEFCFC5-47DA-4F26-BA49-5F78AD019AB3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0CEFCFC5-47DA-4F26-BA49-5F78AD019AB3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0CEFCFC5-47DA-4F26-BA49-5F78AD019AB3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0CEFCFC5-47DA-4F26-BA49-5F78AD019AB3}.Release|Any CPU.Build.0 = Release|Any CPU + {8FC38CC5-15DA-439A-BB6D-3DC0418BC512}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8FC38CC5-15DA-439A-BB6D-3DC0418BC512}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8FC38CC5-15DA-439A-BB6D-3DC0418BC512}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8FC38CC5-15DA-439A-BB6D-3DC0418BC512}.Release|Any CPU.Build.0 = Release|Any CPU + {ED46C18F-5742-4793-AF2A-DDB77AC7DC09}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ED46C18F-5742-4793-AF2A-DDB77AC7DC09}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ED46C18F-5742-4793-AF2A-DDB77AC7DC09}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ED46C18F-5742-4793-AF2A-DDB77AC7DC09}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/src/DataProtection/README.md b/src/DataProtection/README.md index 76fb6c5cf236..96c96dd86e04 100644 --- a/src/DataProtection/README.md +++ b/src/DataProtection/README.md @@ -34,11 +34,11 @@ This file contains the configuration for generating My API from the OpenAPI spec ``` yaml # it's the same options as command line options, just drop the double-dash! -branch: c0d5296b483a5fe4de7851fcd45acde14e736574 +branch: f38115ac455af89493b0a0719d9a987404560dda require: - $(this-folder)/../readme.azure.noprofile.md input-file: - - $(repo)/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-05-01/dataprotection.json + - $(repo)/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2022-12-01/dataprotection.json title: DataProtection directive: - from: swagger-document @@ -54,6 +54,35 @@ directive: set: parameter-name: CriticalOperationExclusionList clear-alias: true + - where: + parameter-name: ImmutabilitySettingState + set: + parameter-name: ImmutabilityState + parameter-description: Immutability state of the vault. Allowed values are Disabled, Unlocked, Locked. + clear-alias: true + - where: + parameter-name: CrossSubscriptionRestoreSettingState + set: + parameter-name: CrossSubscriptionRestoreState + parameter-description: Cross subscription restore state of the vault. Allowed values are Disabled, Enabled, PermanentlyDisabled. + clear-alias: true + - where: + parameter-name: SoftDeleteSettingRetentionDurationInDay + set: + parameter-name: SoftDeleteRetentionDurationInDay + parameter-description: Soft delete retention duration in days. + clear-alias: true + - where: + parameter-name: SoftDeleteSettingState + set: + parameter-name: SoftDeleteState + parameter-description: Soft delete state of the vault. Allowed values are Off, On, AlwaysOn. + clear-alias: true + - where: + parameter-name: SecuritySettingSoftDeleteSetting + set: + parameter-name: SoftDeleteSetting + clear-alias: true - where: verb: Get subject: BackupVaultResource.* @@ -77,6 +106,9 @@ directive: verb: Update subject: ResourceGuard remove: true + - where: + subject: DeletedBackupInstance + remove: true - where: verb: Set subject: ResourceGuard.* @@ -217,6 +249,26 @@ directive: property-name: VaultCriticalOperationExclusionList set: property-name: CriticalOperationExclusionList + - where: + property-name: ImmutabilitySettingState + set: + property-name: ImmutabilityState + - where: + property-name: SecuritySettingSoftDeleteSetting + set: + property-name: SoftDeleteSetting + - where: + property-name: CrossSubscriptionRestoreSettingState + set: + property-name: CrossSubscriptionRestoreState + - where: + property-name: SoftDeleteSettingRetentionDurationInDay + set: + property-name: SoftDeleteRetentionDurationInDay + - where: + property-name: SoftDeleteSettingState + set: + property-name: SoftDeleteState - where: model-name: BackupVaultResource set: @@ -227,7 +279,6 @@ directive: - Type - IdentityType - no-inline: - - UserFacingError - InnerError - BackupInstance - RestoreTargetInfo @@ -237,20 +288,21 @@ directive: - RestoreTargetInfoBase - PolicyParameters - SecretStoreBasedAuthCredentials - - SecretStoreResource + - SecretStoreResource - SystemData + - UserFacingError - from: source-file-csharp where: $ - transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicy Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicy Property'); + transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicy Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicy Property'); - from: source-file-csharp where: $ - transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContext Trigger', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContext Trigger'); + transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContext Trigger', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContext Trigger'); - from: source-file-csharp where: $ - transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParameters BackupParameter', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParameters BackupParameter'); + transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParameters BackupParameter', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParameters BackupParameter'); - from: source-file-csharp where: $ - transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPoint Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPoint Property'); + transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPoint Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPoint Property'); ``` ## Alternate settings diff --git a/src/DataProtection/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupInstanceInAzGraph.ps1 b/src/DataProtection/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupInstanceInAzGraph.ps1 index 31161e4f33c4..3cb42afded9c 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.Api20220501.BackupInstanceResource]::FromJsonString($jsonStringResponse) + $backupInstances += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 c8a98dff69de..17a80e0d2636 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.Api20220501.AzureBackupJobResource]::FromJsonString($jsonStringResponse) + $backupJobs += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 7e37f229adfd..22d99f56ff3d 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.Api20220501.IBackupInstanceResource')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource')] [CmdletBinding(PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Initializes Backup instance Request object for configuring backup')] @@ -43,7 +43,7 @@ function Initialize-AzDataProtectionBackupInstance { process { $manifest = LoadManifest -DatasourceType $DatasourceType.ToString() - $backupInstance = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupInstance]::new() + $backupInstance = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupInstance]::new() $backupInstance.ObjectType = "BackupInstance" if($DatasourceType.ToString() -ne "AzureDisk" -and $SnapshotResourceGroupId -ne "") @@ -84,9 +84,9 @@ function Initialize-AzDataProtectionBackupInstance { $errormsg = "Please input SecretStoreType" throw $errormsg } - $backupInstance.DatasourceAuthCredentials = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SecretStoreBasedAuthCredentials]::new() + $backupInstance.DatasourceAuthCredentials = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecretStoreBasedAuthCredentials]::new() $backupInstance.DatasourceAuthCredentials.ObjectType = "SecretStoreBasedAuthCredentials" - $backupInstance.DatasourceAuthCredentials.SecretStoreResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SecretStoreResource]::new() + $backupInstance.DatasourceAuthCredentials.SecretStoreResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecretStoreResource]::new() $backupInstance.DatasourceAuthCredentials.SecretStoreResource.SecretStoreType = $SecretStoreType $backupInstance.DatasourceAuthCredentials.SecretStoreResource.Uri = $SecretStoreURI } @@ -96,7 +96,7 @@ function Initialize-AzDataProtectionBackupInstance { } } - $backupInstanceResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupInstanceResource]::new() + $backupInstanceResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupInstanceResource]::new() $backupInstanceResource.Property = $backupInstance if($PSBoundParameters.ContainsKey("DatasourceId")) @@ -114,7 +114,7 @@ function Initialize-AzDataProtectionBackupInstance { if($DatasourceType.ToString() -eq "AzureDisk") { - $operationalParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureOperationalStoreParameters]::new() + $operationalParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 446ac8c293ef..6bc6e6f0a5e7 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.Api20220501.IBackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource] ${BackupInstance}, [Parameter(Mandatory=$false, HelpMessage='Resource tags')] diff --git a/src/DataProtection/custom/Cmdlets/Common/New-AzDataProtectionResourceGuard.ps1 b/src/DataProtection/custom/Cmdlets/Common/New-AzDataProtectionResourceGuard.ps1 index ea795b954071..d25cfccf9e97 100644 --- a/src/DataProtection/custom/Cmdlets/Common/New-AzDataProtectionResourceGuard.ps1 +++ b/src/DataProtection/custom/Cmdlets/Common/New-AzDataProtectionResourceGuard.ps1 @@ -2,7 +2,7 @@ function New-AzDataProtectionResourceGuard { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource')] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Creates a resource guard under a resource group')] diff --git a/src/DataProtection/custom/Cmdlets/Common/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 b/src/DataProtection/custom/Cmdlets/Common/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 index fb79acb77317..c5a1322132a1 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.Api20220501.IBackupInstanceResource')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Common/Update-AzDataProtectionResourceGuard.ps1 b/src/DataProtection/custom/Cmdlets/Common/Update-AzDataProtectionResourceGuard.ps1 index 7b2e3b67326b..79b2ba7f9277 100644 --- a/src/DataProtection/custom/Cmdlets/Common/Update-AzDataProtectionResourceGuard.ps1 +++ b/src/DataProtection/custom/Cmdlets/Common/Update-AzDataProtectionResourceGuard.ps1 @@ -2,7 +2,7 @@ function Update-AzDataProtectionResourceGuard { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource')] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Updates a resource guard belonging to a resource group')] diff --git a/src/DataProtection/custom/Cmdlets/Platform/Restore/Initialize-AzDataProtectionRestoreRequest.ps1 b/src/DataProtection/custom/Cmdlets/Platform/Restore/Initialize-AzDataProtectionRestoreRequest.ps1 index 9bfd579894a5..dd27c8364afa 100644 --- a/src/DataProtection/custom/Cmdlets/Platform/Restore/Initialize-AzDataProtectionRestoreRequest.ps1 +++ b/src/DataProtection/custom/Cmdlets/Platform/Restore/Initialize-AzDataProtectionRestoreRequest.ps1 @@ -1,6 +1,6 @@ function Initialize-AzDataProtectionRestoreRequest { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest')] [CmdletBinding(PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Initializes Restore Request object for triggering restore on a protected backup instance.')] @@ -71,7 +71,7 @@ [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.Api20220501.BackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupInstanceResource] ${BackupInstance}, [Parameter(ParameterSetName="AlternateLocationFullRecovery", Mandatory, HelpMessage='Target resource Id to which backup data will be restored.')] @@ -132,7 +132,7 @@ Write-Debug -Message $RecoveryPoint if($PSBoundParameters.ContainsKey("RehydrationPriority")){ - $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRestoreWithRehydrationRequest]::new() + $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRestoreWithRehydrationRequest]::new() $restoreRequest.ObjectType = "AzureBackupRestoreWithRehydrationRequest" $restoreRequest.RehydrationPriority = $RehydrationPriority if($PSBoundParameters.ContainsKey("RehydrationDuration")){ @@ -143,7 +143,7 @@ } } else{ - $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRecoveryPointBasedRestoreRequest]::new() + $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRecoveryPointBasedRestoreRequest]::new() $restoreRequest.ObjectType = "AzureBackupRecoveryPointBasedRestoreRequest" } $restoreRequest.RecoveryPointId = $RecoveryPoint @@ -153,7 +153,7 @@ { $utcTime = $PointInTime.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") Write-Debug -Message $utcTime - $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRecoveryTimeBasedRestoreRequest]::new() + $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRecoveryTimeBasedRestoreRequest]::new() $restoreRequest.ObjectType = "AzureBackupRecoveryTimeBasedRestoreRequest" $restoreRequest.RecoveryPointTime = $utcTime $restoreMode = "PointInTimeBased" @@ -170,7 +170,7 @@ if($RestoreType -eq "RestoreAsFiles") { - $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreFilesTargetInfo]::new() + $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreFilesTargetInfo]::new() $restoreRequest.RestoreTargetInfo.ObjectType = "RestoreFilesTargetInfo" if(!($PSBoundParameters.ContainsKey("FileNamePrefix")) -or !($PSBoundParameters.ContainsKey("TargetContainerURI")) ){ @@ -185,13 +185,13 @@ elseif(!($ItemLevelRecovery)) { # RestoreTargetInfo for OLR ALR Full recovery - $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreTargetInfo]::new() + $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreTargetInfo]::new() $restoreRequest.RestoreTargetInfo.ObjectType = "restoreTargetInfo" } else { # ILR: ItemLevelRestoreTargetInfo - $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ItemLevelRestoreTargetInfo]::new() + $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ItemLevelRestoreTargetInfo]::new() $restoreRequest.RestoreTargetInfo.ObjectType = "itemLevelRestoreTargetInfo" $restoreCriteriaList = @() @@ -199,7 +199,7 @@ if($ContainersList.length -gt 0){ for($i = 0; $i -lt $ContainersList.length; $i++){ - $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RangeBasedItemLevelRestoreCriteria]::new() + $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RangeBasedItemLevelRestoreCriteria]::new() $restoreCriteria.ObjectType = "RangeBasedItemLevelRestoreCriteria" $restoreCriteria.MinMatchingValue = $ContainersList[$i] @@ -218,7 +218,7 @@ for($i = 0; $i -lt $FromPrefixPattern.length; $i++){ - $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RangeBasedItemLevelRestoreCriteria]::new() + $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RangeBasedItemLevelRestoreCriteria]::new() $restoreCriteria.ObjectType = "RangeBasedItemLevelRestoreCriteria" $restoreCriteria.MinMatchingValue = $FromPrefixPattern[$i] @@ -280,9 +280,9 @@ $errormsg = "Please input SecretStoreType" throw $errormsg } - $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SecretStoreBasedAuthCredentials]::new() + $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecretStoreBasedAuthCredentials]::new() $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials.ObjectType = "SecretStoreBasedAuthCredentials" - $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials.SecretStoreResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SecretStoreResource]::new() + $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials.SecretStoreResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecretStoreResource]::new() $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials.SecretStoreResource.SecretStoreType = $SecretStoreType $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials.SecretStoreResource.Uri = $SecretStoreURI } diff --git a/src/DataProtection/custom/Cmdlets/Platform/Restore/Test-AzDataProtectionBackupInstanceRestore.ps1 b/src/DataProtection/custom/Cmdlets/Platform/Restore/Test-AzDataProtectionBackupInstanceRestore.ps1 index 18552a2e49a1..876d0e7ce4b0 100644 --- a/src/DataProtection/custom/Cmdlets/Platform/Restore/Test-AzDataProtectionBackupInstanceRestore.ps1 +++ b/src/DataProtection/custom/Cmdlets/Platform/Restore/Test-AzDataProtectionBackupInstanceRestore.ps1 @@ -2,7 +2,7 @@ function Test-AzDataProtectionBackupInstanceRestore { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo')] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Validates if Restore can be triggered for a DataSource')] @@ -24,7 +24,7 @@ function Test-AzDataProtectionBackupInstanceRestore ${VaultName}, [Parameter(ParameterSetName="ValidateRestore", Mandatory, HelpMessage='Restore request object for which to validate')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest] ${RestoreRequest}, [Parameter()] @@ -80,7 +80,7 @@ function Test-AzDataProtectionBackupInstanceRestore process { - $Parameter = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ValidateRestoreRequestObject]::new() + $Parameter = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ValidateRestoreRequestObject]::new() $Parameter.RestoreRequestObject = $RestoreRequest $null = $PSBoundParameters.Remove("RestoreRequest") diff --git a/src/DataProtection/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVault.ps1 b/src/DataProtection/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVault.ps1 index 1b0ce010d63b..3a44844e0879 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.Api20220501.IStorageSetting[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSetting[]] ${StorageSetting}, [Parameter(Mandatory=$false, HelpMessage='Parameter to Enable or Disable built-in azure monitor alerts for job failures. Security alerts cannot be disabled.')] @@ -38,6 +38,25 @@ [ValidateSet('Enabled','Disabled')] ${AzureMonitorAlertsForAllJobFailure}, + [Parameter(Mandatory=$false, HelpMessage='Immutability state of the vault. Allowed values are Disabled, Unlocked, Locked.')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState] + [ValidateSet('Disabled','Unlocked', 'Locked')] + ${ImmutabilityState}, + + [Parameter(Mandatory=$false, HelpMessage='Cross subscription restore state of the vault. Allowed values are Disabled, Enabled, PermanentlyDisabled.')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState] + [ValidateSet('Disabled','Enabled', 'PermanentlyDisabled')] + ${CrossSubscriptionRestoreState}, + + [Parameter(Mandatory=$false, HelpMessage='Soft delete retention duration in days')] + [System.Double] + ${SoftDeleteRetentionDurationInDay}, + + [Parameter(Mandatory=$false, HelpMessage='Soft delete state of the vault. Allowed values are Off, On, AlwaysOn')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState] + [ValidateSet('Off','On', 'AlwaysOn')] + ${SoftDeleteState}, + [Parameter(HelpMessage='Resource tags.')] [System.Collections.Hashtable] ${Tag}, diff --git a/src/DataProtection/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVaultStorageSettingObject.ps1 b/src/DataProtection/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVaultStorageSettingObject.ps1 index cb2121be0351..0be12dc82b9f 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.Api20220501.StorageSetting]::new() + $storageSetting = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.StorageSetting]::new() $storageSetting.Type = $Type $storageSetting.DataStoreType = $DataStoreType diff --git a/src/DataProtection/custom/Cmdlets/Platform/Vault/Set-AzDataProtectionMSIPermission.ps1 b/src/DataProtection/custom/Cmdlets/Platform/Vault/Set-AzDataProtectionMSIPermission.ps1 index a34f2fca6c70..613c912e6489 100644 --- a/src/DataProtection/custom/Cmdlets/Platform/Vault/Set-AzDataProtectionMSIPermission.ps1 +++ b/src/DataProtection/custom/Cmdlets/Platform/Vault/Set-AzDataProtectionMSIPermission.ps1 @@ -5,7 +5,7 @@ param( [Parameter(Mandatory, HelpMessage='Backup instance request object which will be used to configure backup')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource] ${BackupInstance}, [Parameter(Mandatory=$false, HelpMessage='ID of the keyvault')] @@ -41,7 +41,7 @@ $ResourceArray = $DataSourceId.Split("/") $ResourceRG = GetResourceGroupIdFromArmId -Id $DataSourceId $SubscriptionName = GetSubscriptionNameFromArmId -Id $DataSourceId - $vault = Get-AzDataProtectionBackupVault -VaultName $VaultName -ResourceGroupName $VaultResourceGroup -SubscriptionId $ResourceArray[2] + $vault = Az.DataProtection\Get-AzDataProtectionBackupVault -VaultName $VaultName -ResourceGroupName $VaultResourceGroup -SubscriptionId $ResourceArray[2] $AllRoles = Az.Resources\Get-AzRoleAssignment -ObjectId $vault.IdentityPrincipalId diff --git a/src/DataProtection/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 b/src/DataProtection/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 index b3e039d6f740..2f052bcad438 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.Api20220501.IBackupPolicy')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ISourceLifeCycle[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.AzureRetentionRule]::new() + $newRetentionRule = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 b1bb8e5c4f5f..92baa60fc356 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.Api20220501.IBackupPolicy')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IScheduleBasedBackupCriteria[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteria[]] ${Criteria} ) @@ -83,7 +83,7 @@ if($tagIndex -eq -1) { - $tagCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TaggingCriteria]::new() + $tagCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 b463a7276a04..74683fe99e8e 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.Api20220501.IBackupPolicy')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 813f7d198146..019288095c5b 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.Api20220501.IBackupPolicy')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy')] [CmdletBinding(PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Gets default policy template for a selected datasource type.')] @@ -17,7 +17,7 @@ function Get-AzDataProtectionPolicyTemplate { $manifestPolicyObject = $manifest.policySettings.defaultPolicy $jsonPolicyString = $manifestPolicyObject | ConvertTo-Json -Depth 100 - $defaultPolicy = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupPolicy]::FromJsonString($jsonPolicyString) + $defaultPolicy = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 865777ae4b3d..a8f694d4676d 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.Api20220501.IBaseBackupPolicyResource')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy] ${Policy}, [Parameter()] @@ -114,7 +114,7 @@ $index += 1 } - $policyObject = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BaseBackupPolicyResource]::new() + $policyObject = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 e702edeab0d2..d91dbb458b4f 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.Api20220501.IScheduleBasedBackupCriteria')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ScheduleBasedBackupCriteria]::new() + $criteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.Day]::new() + $day = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.Day]::new() + $day = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 def0a31d3dca..816dc8f43738 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.Api20220501.ISourceLifeCycle')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.SourceLifeCycle]::new() + $lifeCycle = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.TargetCopySetting]::new() + $targetCopySetting = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TargetCopySetting]::new() $targetCopySetting.DataStoreObjectType = "DataStoreInfoBase" $targetCopySetting.DataStoreType = $TargetDataStore $targetCopySetting.CopyAfterObjectType = $CopyOption diff --git a/src/DataProtection/custom/Helpers/BackupcenterHelper.ps1 b/src/DataProtection/custom/Helpers/BackupcenterHelper.ps1 index 3d916d0157d4..3bf831586430 100644 --- a/src/DataProtection/custom/Helpers/BackupcenterHelper.ps1 +++ b/src/DataProtection/custom/Helpers/BackupcenterHelper.ps1 @@ -107,7 +107,7 @@ function CheckResourceGraphModuleDependency { param() process { - $module = Get-InstalledModule | Where-Object { $_.Name -eq "Az.ResourceGraph" } + $module = Get-Module -ListAvailable | Where-Object { $_.Name -eq "Az.ResourceGraph" } if ($module -eq $null) { $message = "Az.ResourceGraph Module must be installed to run this command. Please run 'Install-Module -Name Az.ResourceGraph' to install and continue." throw $message @@ -120,7 +120,7 @@ function CheckResourcesModuleDependency { param() process { - $module = Get-InstalledModule | Where-Object { $_.Name -eq "Az.Resources" } + $module = Get-Module -ListAvailable | Where-Object { $_.Name -eq "Az.Resources" } if ($module -eq $null) { $message = "Az.Resources Module must be installed to run this command. Please run 'Install-Module -Name Az.Resources' to install and continue." throw $message @@ -133,7 +133,7 @@ function CheckPostgreSqlModuleDependency { param() process { - $module = Get-InstalledModule | Where-Object { $_.Name -eq "Az.PostgreSql" } + $module = Get-Module -ListAvailable | Where-Object { $_.Name -eq "Az.PostgreSql" } if ($module -eq $null) { $message = "Az.PostgreSql Module must be installed to run this command. Please run 'Install-Module -Name Az.PostgreSql' to install and continue." throw $message @@ -146,7 +146,7 @@ function CheckKeyVaultModuleDependency { param() process { - $module = Get-InstalledModule | Where-Object { $_.Name -eq "Az.KeyVault" } + $module = Get-Module -ListAvailable | Where-Object { $_.Name -eq "Az.KeyVault" } if ($module -eq $null) { $message = "Az.KeyVault Module must be installed to run this command. Please run 'Install-Module -Name Az.KeyVault' to install and continue." throw $message diff --git a/src/DataProtection/custom/Helpers/CommonHelpers.ps1 b/src/DataProtection/custom/Helpers/CommonHelpers.ps1 index 2fac73ebf920..f71a7beeeff0 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.Api20220501.IDatasource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource] $DatasourceInfo ) process { - $DataSourceSetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DatasourceSet]::new() + $DataSourceSetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceSet]::new() $DataSourceSetInfo.DatasourceType = $DatasourceInfo.Type $DataSourceSetInfo.ObjectType = "DatasourceSet" $splitResourceId = $DatasourceInfo.ResourceId.Split("/") @@ -50,7 +50,7 @@ function GetDatasourceInfo { $manifest = LoadManifest -DatasourceType $DatasourceType.ToString() - $DataSourceInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.Datasource]::new() + $DataSourceInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.Datasource]::new() $DataSourceInfo.ObjectType = "Datasource" $DataSourceInfo.ResourceId = $ResourceId $DataSourceInfo.ResourceLocation = $ResourceLocation diff --git a/src/DataProtection/custom/Models/BackupInstanceResource.cs b/src/DataProtection/custom/Models/BackupInstanceResource.cs index 908c6ea86b24..d618b7709aeb 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.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { public partial class BackupInstanceResource { diff --git a/src/DataProtection/custom/README.md b/src/DataProtection/custom/README.md index 17a6bdafb9b4..9217867c6e17 100644 --- a/src/DataProtection/custom/README.md +++ b/src/DataProtection/custom/README.md @@ -32,7 +32,7 @@ These provide functionality to our HTTP pipeline and other useful features. In s ### Attributes For processing the cmdlets, we've created some additional attributes: - `Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DescriptionAttribute` - - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propagated to reference documentation via [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts. + - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propagated to reference documentation via [help comments](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts. - `Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DoNotExportAttribute` - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.DataProtection`. - `Microsoft.Azure.PowerShell.Cmdlets.DataProtection.InternalExportAttribute` diff --git a/src/DataProtection/examples/New-AzDataProtectionBackupVault.md b/src/DataProtection/examples/New-AzDataProtectionBackupVault.md index 972b89437162..db62797f6606 100644 --- a/src/DataProtection/examples/New-AzDataProtectionBackupVault.md +++ b/src/DataProtection/examples/New-AzDataProtectionBackupVault.md @@ -13,3 +13,17 @@ ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type This command creates a new backup vault. +### Example 2: Create a new backup vault with ImmutabilityState, CrossSubscriptionRestoreState, soft delete settings +```powershell +$sub = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +$storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -DataStoreType VaultStore -Type LocallyRedundant +New-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -Location westus -StorageSetting $storagesetting -CrossSubscriptionRestoreState Enabled -ImmutabilityState Unlocked -SoftDeleteRetentionDurationInDay 100 -SoftDeleteState On +``` + +```output +ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type +---- ------------------- ---------------- ------------ -------- ---- ---- + westus MyVault Microsoft.DataProtection/backupVaults +``` + +This command creates a new backup vault while setting Immutability state, cross subscription restore state, soft delete settings of the vault at creation time. diff --git a/src/DataProtection/examples/Update-AzDataProtectionBackupVault.md b/src/DataProtection/examples/Update-AzDataProtectionBackupVault.md index 80a9dd95acea..2f28799de0cc 100644 --- a/src/DataProtection/examples/Update-AzDataProtectionBackupVault.md +++ b/src/DataProtection/examples/Update-AzDataProtectionBackupVault.md @@ -24,3 +24,16 @@ vaultName southeastasia Microsoft.DataProtection/backupVaults SystemAssigned ``` This command disables the monitor alerts for all the job failures for the backup vault. Allowed values are: Enabled, Disabled. Note that by default this setting is enabled. + +### Example 3: Update vault ImmutabilityState, CrossSubscriptionRestoreState, soft delete settings +```powershell +Update-AzDataProtectionBackupVault -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -CrossSubscriptionRestoreState Disabled -ImmutabilityState Disabled -SoftDeleteRetentionDurationInDay 99 -SoftDeleteState Off +``` + +```output +Name Location Type IdentityType +---- -------- ---- ------------ +vaultName southeastasia Microsoft.DataProtection/backupVaults SystemAssigned +``` + +This command is used to modify Immutability state, cross subscription restore state, soft delete settings of the vault. These parameters are optional and can be used independently. diff --git a/src/DataProtection/exports/Backup-AzDataProtectionBackupInstanceAdhoc.ps1 b/src/DataProtection/exports/Backup-AzDataProtectionBackupInstanceAdhoc.ps1 index 373e36e41e56..a2153ab39f84 100644 --- a/src/DataProtection/exports/Backup-AzDataProtectionBackupInstanceAdhoc.ps1 +++ b/src/DataProtection/exports/Backup-AzDataProtectionBackupInstanceAdhoc.ps1 @@ -38,14 +38,14 @@ while($jobstatus -ne "Completed") .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo .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. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -53,34 +53,36 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/backup-azdataprotectionbackupinstanceadhoc #> function Backup-AzDataProtectionBackupInstanceAdhoc { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo])] [CmdletBinding(DefaultParameterSetName='BackupExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='BackupExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the backup instance + # The name of the backup instance. ${BackupInstanceName}, [Parameter(ParameterSetName='BackupExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='BackupExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='BackupExpanded', Mandatory)] diff --git a/src/DataProtection/exports/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 b/src/DataProtection/exports/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 index 55d4710725a4..dd54a45da84c 100644 --- a/src/DataProtection/exports/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 +++ b/src/DataProtection/exports/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 @@ -27,7 +27,7 @@ Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $pol -Name Weekly - Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $pol -Name Weekly -RemoveRule .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -67,12 +67,12 @@ POLICY : Backup Policy Object https://learn.microsoft.com/powershell/module/az.dataprotection/edit-azdataprotectionpolicyretentionruleclientobject #> function Edit-AzDataProtectionPolicyRetentionRuleClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy])] [CmdletBinding(DefaultParameterSetName='RemoveRetention', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy] # Backup Policy Object # To construct, see NOTES section for POLICY properties and create a hash table. ${Policy}, @@ -97,7 +97,7 @@ param( [Parameter(ParameterSetName='AddRetention', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycle[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 b64ed6acf2e6..4470040d94d0 100644 --- a/src/DataProtection/exports/Edit-AzDataProtectionPolicyTagClientObject.ps1 +++ b/src/DataProtection/exports/Edit-AzDataProtectionPolicyTagClientObject.ps1 @@ -26,7 +26,7 @@ Edit-AzDataProtectionPolicyTagClientObject -Policy $pol -Name Weekly -Criteria $ Edit-AzDataProtectionPolicyTagClientObject -Policy $pol -Name Weekly -RemoveRule .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -67,12 +67,12 @@ POLICY : Backup Policy Object. https://learn.microsoft.com/powershell/module/az.dataprotection/edit-azdataprotectionpolicytagclientobject #> function Edit-AzDataProtectionPolicyTagClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy])] [CmdletBinding(DefaultParameterSetName='RemoveTag', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy] # Backup Policy Object. # To construct, see NOTES section for POLICY properties and create a hash table. ${Policy}, @@ -91,7 +91,7 @@ param( [Parameter(ParameterSetName='updateTag', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteria[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 f97cb9f4bd6b..82b6ea7f4d0e 100644 --- a/src/DataProtection/exports/Edit-AzDataProtectionPolicyTriggerClientObject.ps1 +++ b/src/DataProtection/exports/Edit-AzDataProtectionPolicyTriggerClientObject.ps1 @@ -24,7 +24,7 @@ $schedule = New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays Edit-AzDataProtectionPolicyTriggerClientObject -Policy $pol -Schedule $schedule .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -54,12 +54,12 @@ POLICY : Backup Policy object. https://learn.microsoft.com/powershell/module/az.dataprotection/edit-azdataprotectionpolicytriggerclientobject #> function Edit-AzDataProtectionPolicyTriggerClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 index 1a551b81f364..ae2b6f547b20 100644 --- a/src/DataProtection/exports/Find-AzDataProtectionRestorableTimeRange.ps1 +++ b/src/DataProtection/exports/Find-AzDataProtectionRestorableTimeRange.ps1 @@ -27,24 +27,25 @@ $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $pointInTimeRange.RestorableTimeRange | Format-List .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResource .Link https://learn.microsoft.com/powershell/module/az.dataprotection/find-azdataprotectionrestorabletimerange #> function Find-AzDataProtectionRestorableTimeRange { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResource])] [CmdletBinding(DefaultParameterSetName='FindExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the backup instance + # The name of the backup instance. ${BackupInstanceName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(Mandatory)] @@ -57,7 +58,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(Mandatory)] diff --git a/src/DataProtection/exports/Get-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/exports/Get-AzDataProtectionBackupInstance.ps1 index 6c865795d948..64928fbc2184 100644 --- a/src/DataProtection/exports/Get-AzDataProtectionBackupInstance.ps1 +++ b/src/DataProtection/exports/Get-AzDataProtectionBackupInstance.ps1 @@ -27,14 +27,14 @@ Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxx .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource .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. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -42,29 +42,30 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupinstance #> function Get-AzDataProtectionBackupInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Alias('BackupInstanceName')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the backup instance + # The name of the backup instance. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get')] @@ -72,7 +73,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/src/DataProtection/exports/Get-AzDataProtectionBackupPolicy.ps1 b/src/DataProtection/exports/Get-AzDataProtectionBackupPolicy.ps1 index 6d1614773835..6339ed83ff3f 100644 --- a/src/DataProtection/exports/Get-AzDataProtectionBackupPolicy.ps1 +++ b/src/DataProtection/exports/Get-AzDataProtectionBackupPolicy.ps1 @@ -27,14 +27,14 @@ Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupNa .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource .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. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -42,15 +42,15 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackuppolicy #> function Get-AzDataProtectionBackupPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -64,7 +64,8 @@ param( [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get')] @@ -72,7 +73,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/src/DataProtection/exports/Get-AzDataProtectionBackupVault.ps1 b/src/DataProtection/exports/Get-AzDataProtectionBackupVault.ps1 index 32b9e40e0064..d987e2a31a3c 100644 --- a/src/DataProtection/exports/Get-AzDataProtectionBackupVault.ps1 +++ b/src/DataProtection/exports/Get-AzDataProtectionBackupVault.ps1 @@ -29,14 +29,14 @@ Get-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxxx" -ResourceGroupNa .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -44,15 +44,15 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupvault #> function Get-AzDataProtectionBackupVault { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get')] @@ -61,14 +61,16 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Get1', Mandatory)] [Parameter(ParameterSetName='Get2', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get2', Mandatory)] diff --git a/src/DataProtection/exports/Get-AzDataProtectionJob.ps1 b/src/DataProtection/exports/Get-AzDataProtectionJob.ps1 index 3725116ebda6..0a45edb031ec 100644 --- a/src/DataProtection/exports/Get-AzDataProtectionJob.ps1 +++ b/src/DataProtection/exports/Get-AzDataProtectionJob.ps1 @@ -27,14 +27,14 @@ Get-AzDataProtectionJob -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" - .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResource .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. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -42,15 +42,15 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionjob #> function Get-AzDataProtectionJob { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -66,7 +66,8 @@ param( [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get')] @@ -74,7 +75,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/src/DataProtection/exports/Get-AzDataProtectionOperation.ps1 b/src/DataProtection/exports/Get-AzDataProtectionOperation.ps1 index b6a589aa6128..cd31a188c0e2 100644 --- a/src/DataProtection/exports/Get-AzDataProtectionOperation.ps1 +++ b/src/DataProtection/exports/Get-AzDataProtectionOperation.ps1 @@ -23,12 +23,12 @@ Returns the list of available operations. Get-AzDataProtectionOperation .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApi +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApi .Link https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionoperation #> function Get-AzDataProtectionOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApi])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApi])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter()] diff --git a/src/DataProtection/exports/Get-AzDataProtectionPolicyTemplate.ps1 b/src/DataProtection/exports/Get-AzDataProtectionPolicyTemplate.ps1 index 0f7bc6d52afb..acc1f41d9aa7 100644 --- a/src/DataProtection/exports/Get-AzDataProtectionPolicyTemplate.ps1 +++ b/src/DataProtection/exports/Get-AzDataProtectionPolicyTemplate.ps1 @@ -23,12 +23,12 @@ Gets default policy template for a selected datasource type. Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDisk .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy .Link https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionpolicytemplate #> function Get-AzDataProtectionPolicyTemplate { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/DataProtection/exports/Get-AzDataProtectionRecoveryPoint.ps1 b/src/DataProtection/exports/Get-AzDataProtectionRecoveryPoint.ps1 index a92f3427b1e9..9e60bbe4bba0 100644 --- a/src/DataProtection/exports/Get-AzDataProtectionRecoveryPoint.ps1 +++ b/src/DataProtection/exports/Get-AzDataProtectionRecoveryPoint.ps1 @@ -29,7 +29,7 @@ Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupN .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource .Outputs System.Management.Automation.PSObject .Notes @@ -38,7 +38,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -46,22 +46,22 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionrecoverypoint #> function Get-AzDataProtectionRecoveryPoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource], [PSObject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource], [PSObject])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the backup instance + # The name of the backup instance. ${BackupInstanceName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -75,7 +75,8 @@ param( [Parameter(ParameterSetName='List')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get')] @@ -83,7 +84,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/src/DataProtection/exports/Get-AzDataProtectionResourceGuard.ps1 b/src/DataProtection/exports/Get-AzDataProtectionResourceGuard.ps1 index 84e2709339e0..9c7e6d044baf 100644 --- a/src/DataProtection/exports/Get-AzDataProtectionResourceGuard.ps1 +++ b/src/DataProtection/exports/Get-AzDataProtectionResourceGuard.ps1 @@ -27,14 +27,14 @@ Get-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxx .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource .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. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -42,15 +42,15 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionresourceguard #> function Get-AzDataProtectionResourceGuard { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource])] [CmdletBinding(DefaultParameterSetName='Get1', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -63,7 +63,8 @@ param( [Parameter(ParameterSetName='Get1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get')] @@ -71,7 +72,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DataProtection/exports/Initialize-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/exports/Initialize-AzDataProtectionBackupInstance.ps1 index 763301af51df..e7cacbb8f8fc 100644 --- a/src/DataProtection/exports/Initialize-AzDataProtectionBackupInstance.ps1 +++ b/src/DataProtection/exports/Initialize-AzDataProtectionBackupInstance.ps1 @@ -27,12 +27,12 @@ $instance.Property.PolicyInfo.PolicyParameter.DataStoreParametersList[0].Resourc $instance .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource .Link https://learn.microsoft.com/powershell/module/az.dataprotection/initialize-azdataprotectionbackupinstance #> function Initialize-AzDataProtectionBackupInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/DataProtection/exports/Initialize-AzDataProtectionRestoreRequest.ps1 b/src/DataProtection/exports/Initialize-AzDataProtectionRestoreRequest.ps1 index 26ffe9eba876..7a35d09c9974 100644 --- a/src/DataProtection/exports/Initialize-AzDataProtectionRestoreRequest.ps1 +++ b/src/DataProtection/exports/Initialize-AzDataProtectionRestoreRequest.ps1 @@ -43,7 +43,7 @@ $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName 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" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest .Notes COMPLEX PARAMETER PROPERTIES @@ -84,7 +84,7 @@ BACKUPINSTANCE : Backup Instance object to trigger origi https://learn.microsoft.com/powershell/module/az.dataprotection/initialize-azdataprotectionrestorerequest #> function Initialize-AzDataProtectionRestoreRequest { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest])] [CmdletBinding(DefaultParameterSetName='AlternateLocationFullRecovery', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -159,7 +159,7 @@ param( [Parameter(ParameterSetName='OriginalLocationILR', Mandatory)] [Parameter(ParameterSetName='OriginalLocationFullRecovery', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupInstanceResource] # Backup Instance object to trigger original localtion restore. # To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. ${BackupInstance}, diff --git a/src/DataProtection/exports/New-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/exports/New-AzDataProtectionBackupInstance.ps1 index 16e8602e455e..d0c45d0a24b7 100644 --- a/src/DataProtection/exports/New-AzDataProtectionBackupInstance.ps1 +++ b/src/DataProtection/exports/New-AzDataProtectionBackupInstance.ps1 @@ -91,7 +91,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 bbf7124acaa2..598760c57e9a 100644 --- a/src/DataProtection/exports/New-AzDataProtectionBackupPolicy.ps1 +++ b/src/DataProtection/exports/New-AzDataProtectionBackupPolicy.ps1 @@ -45,7 +45,7 @@ Edit-AzDataProtectionPolicyTagClientObject -Policy $defaultPol -Name Monthly -Cr New-AzDataProtectionBackupPolicy -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -Name "MyPolicy" -Policy $defaultPol .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource .Notes COMPLEX PARAMETER PROPERTIES @@ -75,7 +75,7 @@ POLICY : Policy Request Object https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackuppolicy #> function New-AzDataProtectionBackupPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -98,7 +98,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 e3a891de64e8..5e848cb3ab9a 100644 --- a/src/DataProtection/exports/New-AzDataProtectionBackupVault.ps1 +++ b/src/DataProtection/exports/New-AzDataProtectionBackupVault.ps1 @@ -23,6 +23,10 @@ Creates or updates a BackupVault resource belonging to a resource group. $sub = "xxxx-xxxx-xxxxx" $storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -DataStoreType VaultStore -Type LocallyRedundant New-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName "MyVault" -StorageSetting $storagesetting -Location westus +.Example +$sub = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +$storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -DataStoreType VaultStore -Type LocallyRedundant +New-AzDataProtectionBackupVault -SubscriptionId $sub "resourceGroupName" -VaultName "vaultName" -Location westus -StorageSetting $storagesetting -CrossSubscriptionRestoreState Enabled -ImmutabilityState Unlocked -SoftDeleteRetentionDurationInDay 100 -SoftDeleteState On .Outputs System.Management.Automation.PSObject @@ -61,7 +65,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSetting[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -92,6 +96,33 @@ param( # Security alerts cannot be disabled. ${AzureMonitorAlertsForAllJobFailure}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState] + # Immutability state of the vault. + # Allowed values are Disabled, Unlocked, Locked. + ${ImmutabilityState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState] + # Cross subscription restore state of the vault. + # Allowed values are Disabled, Enabled, PermanentlyDisabled. + ${CrossSubscriptionRestoreState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Double] + # Soft delete retention duration in days + ${SoftDeleteRetentionDurationInDay}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState] + # Soft delete state of the vault. + # Allowed values are Off, On, AlwaysOn + ${SoftDeleteState}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] [System.Collections.Hashtable] diff --git a/src/DataProtection/exports/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1 b/src/DataProtection/exports/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1 index 4bd083909dae..6f11f35e4ba8 100644 --- a/src/DataProtection/exports/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1 +++ b/src/DataProtection/exports/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1 @@ -25,12 +25,12 @@ New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfDay New-AzDataProtectionPolicyTagCriteriaClientObject -DaysOfWeek @("Sunday", "Monday") .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteria +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteria .Link https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionpolicytagcriteriaclientobject #> function New-AzDataProtectionPolicyTagCriteriaClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteria])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteria])] [CmdletBinding(DefaultParameterSetName='ScheduleCriteria', PositionalBinding=$false)] param( [Parameter(ParameterSetName='AbsoluteCriteria', Mandatory)] diff --git a/src/DataProtection/exports/New-AzDataProtectionResourceGuard.ps1 b/src/DataProtection/exports/New-AzDataProtectionResourceGuard.ps1 index 1c56ebbeb371..502e732050ac 100644 --- a/src/DataProtection/exports/New-AzDataProtectionResourceGuard.ps1 +++ b/src/DataProtection/exports/New-AzDataProtectionResourceGuard.ps1 @@ -23,12 +23,12 @@ Creates a resource guard under a resource group New-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "mua-rg" -Name "mua-resource-guard" -Location "centraluseuap" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource .Link https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionresourceguard #> function New-AzDataProtectionResourceGuard { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource])] [CmdletBinding(DefaultParameterSetName='CreateResourceGuard', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/DataProtection/exports/New-AzDataProtectionRetentionLifeCycleClientObject.ps1 b/src/DataProtection/exports/New-AzDataProtectionRetentionLifeCycleClientObject.ps1 index 282365f971c4..e95c228f8a7b 100644 --- a/src/DataProtection/exports/New-AzDataProtectionRetentionLifeCycleClientObject.ps1 +++ b/src/DataProtection/exports/New-AzDataProtectionRetentionLifeCycleClientObject.ps1 @@ -25,12 +25,12 @@ New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalS New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalStore -SourceRetentionDurationType Weeks -SourceRetentionDurationCount 20 .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycle +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycle .Link https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionretentionlifecycleclientobject #> function New-AzDataProtectionRetentionLifeCycleClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycle])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycle])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/src/DataProtection/exports/ProxyCmdletDefinitions.ps1 b/src/DataProtection/exports/ProxyCmdletDefinitions.ps1 index 86c622ce6818..0cbfd9c1d088 100644 --- a/src/DataProtection/exports/ProxyCmdletDefinitions.ps1 +++ b/src/DataProtection/exports/ProxyCmdletDefinitions.ps1 @@ -38,14 +38,14 @@ while($jobstatus -ne "Completed") .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo .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. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -53,34 +53,36 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/backup-azdataprotectionbackupinstanceadhoc #> function Backup-AzDataProtectionBackupInstanceAdhoc { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo])] [CmdletBinding(DefaultParameterSetName='BackupExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='BackupExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the backup instance + # The name of the backup instance. ${BackupInstanceName}, [Parameter(ParameterSetName='BackupExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='BackupExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='BackupExpanded', Mandatory)] @@ -259,24 +261,25 @@ $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName $pointInTimeRange.RestorableTimeRange | Format-List .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResource .Link https://learn.microsoft.com/powershell/module/az.dataprotection/find-azdataprotectionrestorabletimerange #> function Find-AzDataProtectionRestorableTimeRange { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResource])] [CmdletBinding(DefaultParameterSetName='FindExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the backup instance + # The name of the backup instance. ${BackupInstanceName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(Mandatory)] @@ -289,7 +292,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(Mandatory)] @@ -451,14 +455,14 @@ Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxx .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource .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. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -466,29 +470,30 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupinstance #> function Get-AzDataProtectionBackupInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Alias('BackupInstanceName')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the backup instance + # The name of the backup instance. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get')] @@ -496,7 +501,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -653,14 +659,14 @@ Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupNa .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource .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. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -668,15 +674,15 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackuppolicy #> function Get-AzDataProtectionBackupPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -690,7 +696,8 @@ param( [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get')] @@ -698,7 +705,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -857,14 +865,14 @@ Get-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxxx" -ResourceGroupNa .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -872,15 +880,15 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupvault #> function Get-AzDataProtectionBackupVault { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get')] @@ -889,14 +897,16 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Get1', Mandatory)] [Parameter(ParameterSetName='Get2', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get2', Mandatory)] @@ -1053,14 +1063,14 @@ Get-AzDataProtectionJob -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" - .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResource .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. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -1068,15 +1078,15 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionjob #> function Get-AzDataProtectionJob { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -1092,7 +1102,8 @@ param( [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get')] @@ -1100,7 +1111,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -1253,12 +1265,12 @@ Returns the list of available operations. Get-AzDataProtectionOperation .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApi +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApi .Link https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionoperation #> function Get-AzDataProtectionOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApi])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApi])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter()] @@ -1398,7 +1410,7 @@ Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupN .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource .Outputs System.Management.Automation.PSObject .Notes @@ -1407,7 +1419,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -1415,22 +1427,22 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionrecoverypoint #> function Get-AzDataProtectionRecoveryPoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource], [PSObject])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource], [PSObject])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the backup instance + # The name of the backup instance. ${BackupInstanceName}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -1444,7 +1456,8 @@ param( [Parameter(ParameterSetName='List')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get')] @@ -1452,7 +1465,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -1621,14 +1635,14 @@ Get-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxx .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource .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. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -1636,15 +1650,15 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionresourceguard #> function Get-AzDataProtectionResourceGuard { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource])] [CmdletBinding(DefaultParameterSetName='Get1', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -1657,7 +1671,8 @@ param( [Parameter(ParameterSetName='Get1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Get')] @@ -1665,7 +1680,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -1821,7 +1837,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -1829,9 +1845,9 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/remove-azdataprotectionbackupinstance @@ -1844,20 +1860,22 @@ param( [Alias('BackupInstanceName')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the backup instance + # The name of the backup instance. ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -2036,7 +2054,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -2044,9 +2062,9 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/remove-azdataprotectionbackuppolicy @@ -2065,14 +2083,16 @@ param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -2238,7 +2258,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -2246,9 +2266,9 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/remove-azdataprotectionbackupvault @@ -2260,14 +2280,16 @@ param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -2433,7 +2455,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -2441,9 +2463,9 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/remove-azdataprotectionresourceguard @@ -2461,14 +2483,16 @@ param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] @@ -2628,7 +2652,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -2636,9 +2660,9 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/resume-azdataprotectionbackupinstanceprotection @@ -2650,20 +2674,22 @@ param( [Parameter(ParameterSetName='Resume', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # . + # The name of the backup instance. ${BackupInstanceName}, [Parameter(ParameterSetName='Resume', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Resume')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Resume', Mandatory)] @@ -2865,9 +2891,9 @@ while($jobstatus -ne "Completed") } .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo .Notes COMPLEX PARAMETER PROPERTIES @@ -2888,19 +2914,20 @@ RESTORETARGETINFO : Gets or sets the restore target info https://learn.microsoft.com/powershell/module/az.dataprotection/start-azdataprotectionbackupinstancerestore #> function Start-AzDataProtectionBackupInstanceRestore { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo])] [CmdletBinding(DefaultParameterSetName='Trigger', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the backup instance + # The name of the backup instance. ${BackupInstanceName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(Mandatory)] @@ -2913,12 +2940,13 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Trigger', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest] # Azure backup restore request # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -2931,7 +2959,7 @@ param( [Parameter(ParameterSetName='TriggerExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase] # Gets or sets the restore target information. # To construct, see NOTES section for RESTORETARGETINFO properties and create a hash table. ${RestoreTargetInfo}, @@ -3105,7 +3133,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -3113,9 +3141,9 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/stop-azdataprotectionbackupinstanceprotection @@ -3127,20 +3155,22 @@ param( [Parameter(ParameterSetName='Stop', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # . + # The name of the backup instance. ${BackupInstanceName}, [Parameter(ParameterSetName='Stop', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Stop')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Stop', Mandatory)] @@ -3302,9 +3332,9 @@ end { <# .Synopsis -This operation will stop backups for backup instance +This operation will stop backup for a backup instance and retains the backup data as per the policy (except latest Recovery point, which will be retained forever) .Description -This operation will stop backups for backup instance +This operation will stop backup for a backup instance and retains the backup data as per the policy (except latest Recovery point, which will be retained forever) .Example Suspend-AzDataProtectionBackupInstanceBackup -ResourceGroupName "rgName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" -BackupInstanceName $backupInstance.BackupInstanceName @@ -3318,7 +3348,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -3326,9 +3356,9 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/suspend-azdataprotectionbackupinstancebackup @@ -3340,20 +3370,22 @@ param( [Parameter(ParameterSetName='Suspend', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # . + # The name of the backup instance. ${BackupInstanceName}, [Parameter(ParameterSetName='Suspend', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Suspend')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Suspend', Mandatory)] @@ -3534,13 +3566,14 @@ param( [Alias('BackupInstanceName')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # . + # The name of the backup instance. ${Name}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(Mandatory)] @@ -3553,7 +3586,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] @@ -3721,7 +3755,7 @@ $instance = Initialize-AzDataProtectionBackupInstance -SnapshotResourceGroupId $ Test-AzDataProtectionBackupInstanceReadiness -ResourceGroupName "resourceGroupName" -VaultName $vault.Name -BackupInstance $instance[0].Property .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo .Notes COMPLEX PARAMETER PROPERTIES @@ -3759,13 +3793,14 @@ BACKUPINSTANCE : Backup Instance https://learn.microsoft.com/powershell/module/az.dataprotection/test-azdataprotectionbackupinstancereadiness #> function Test-AzDataProtectionBackupInstanceReadiness { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo])] [CmdletBinding(DefaultParameterSetName='ValidateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(Mandatory)] @@ -3778,12 +3813,13 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance] # Backup Instance # To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. ${BackupInstance}, @@ -3937,18 +3973,20 @@ $tag = @{"Owner"="sarath";"Purpose"="AzureBackupTesting"} Update-AzDataProtectionBackupVault -SubscriptionId "xxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -Tag $tag .Example Update-AzDataProtectionBackupVault -ResourceGroupName "rgName" -VaultName "vaultName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -AzureMonitorAlertsForAllJobFailure 'Disabled' +.Example +Update-AzDataProtectionBackupVault -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -CrossSubscriptionRestoreState Disabled -ImmutabilityState Disabled -SoftDeleteRetentionDurationInDay 99 -SoftDeleteState Off .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -3956,28 +3994,30 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/update-azdataprotectionbackupvault #> function Update-AzDataProtectionBackupVault { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -4001,6 +4041,14 @@ param( # Security alerts cannot be disabled. ${AzureMonitorAlertsForAllJobFailure}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState])] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState] + # Cross subscription restore state of the vault. + # Allowed values are Disabled, Enabled, PermanentlyDisabled. + ${CrossSubscriptionRestoreState}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] [System.String] @@ -4008,8 +4056,30 @@ param( ${IdentityType}, [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState])] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState] + # Immutability state of the vault. + # Allowed values are Disabled, Unlocked, Locked. + ${ImmutabilityState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Double] + # Soft delete retention duration in days. + ${SoftDeleteRetentionDurationInDay}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState])] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState] + # Soft delete state of the vault. + # Allowed values are Off, On, AlwaysOn. + ${SoftDeleteState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -4165,7 +4235,7 @@ Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $pol -Name Weekly - Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $pol -Name Weekly -RemoveRule .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -4205,12 +4275,12 @@ POLICY : Backup Policy Object https://learn.microsoft.com/powershell/module/az.dataprotection/edit-azdataprotectionpolicyretentionruleclientobject #> function Edit-AzDataProtectionPolicyRetentionRuleClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy])] [CmdletBinding(DefaultParameterSetName='RemoveRetention', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy] # Backup Policy Object # To construct, see NOTES section for POLICY properties and create a hash table. ${Policy}, @@ -4235,7 +4305,7 @@ param( [Parameter(ParameterSetName='AddRetention', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycle[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycle[]] # Life cycles associated with the retention rule. # To construct, see NOTES section for LIFECYCLES properties and create a hash table. ${LifeCycles} @@ -4328,7 +4398,7 @@ Edit-AzDataProtectionPolicyTagClientObject -Policy $pol -Name Weekly -Criteria $ Edit-AzDataProtectionPolicyTagClientObject -Policy $pol -Name Weekly -RemoveRule .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -4369,12 +4439,12 @@ POLICY : Backup Policy Object. https://learn.microsoft.com/powershell/module/az.dataprotection/edit-azdataprotectionpolicytagclientobject #> function Edit-AzDataProtectionPolicyTagClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy])] [CmdletBinding(DefaultParameterSetName='RemoveTag', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy] # Backup Policy Object. # To construct, see NOTES section for POLICY properties and create a hash table. ${Policy}, @@ -4393,7 +4463,7 @@ param( [Parameter(ParameterSetName='updateTag', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteria[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteria[]] # Criterias to be associated with the schedule tag. # To construct, see NOTES section for CRITERIA properties and create a hash table. ${Criteria} @@ -4484,7 +4554,7 @@ $schedule = New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays Edit-AzDataProtectionPolicyTriggerClientObject -Policy $pol -Schedule $schedule .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -4514,12 +4584,12 @@ POLICY : Backup Policy object. https://learn.microsoft.com/powershell/module/az.dataprotection/edit-azdataprotectionpolicytriggerclientobject #> function Edit-AzDataProtectionPolicyTriggerClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy] # Backup Policy object. # To construct, see NOTES section for POLICY properties and create a hash table. ${Policy}, @@ -4614,12 +4684,12 @@ Gets default policy template for a selected datasource type. Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDisk .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy .Link https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionpolicytemplate #> function Get-AzDataProtectionPolicyTemplate { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -4716,12 +4786,12 @@ $instance.Property.PolicyInfo.PolicyParameter.DataStoreParametersList[0].Resourc $instance .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource .Link https://learn.microsoft.com/powershell/module/az.dataprotection/initialize-azdataprotectionbackupinstance #> function Initialize-AzDataProtectionBackupInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -4872,7 +4942,7 @@ $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName 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" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest .Notes COMPLEX PARAMETER PROPERTIES @@ -4913,7 +4983,7 @@ BACKUPINSTANCE : Backup Instance object to trigger origi https://learn.microsoft.com/powershell/module/az.dataprotection/initialize-azdataprotectionrestorerequest #> function Initialize-AzDataProtectionRestoreRequest { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest])] [CmdletBinding(DefaultParameterSetName='AlternateLocationFullRecovery', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -4988,7 +5058,7 @@ param( [Parameter(ParameterSetName='OriginalLocationILR', Mandatory)] [Parameter(ParameterSetName='OriginalLocationFullRecovery', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupInstanceResource] # Backup Instance object to trigger original localtion restore. # To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. ${BackupInstance}, @@ -5186,7 +5256,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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}, @@ -5359,7 +5429,7 @@ Edit-AzDataProtectionPolicyTagClientObject -Policy $defaultPol -Name Monthly -Cr New-AzDataProtectionBackupPolicy -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -Name "MyPolicy" -Policy $defaultPol .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource .Notes COMPLEX PARAMETER PROPERTIES @@ -5389,7 +5459,7 @@ POLICY : Policy Request Object https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackuppolicy #> function New-AzDataProtectionBackupPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -5412,7 +5482,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy] # Policy Request Object # To construct, see NOTES section for POLICY properties and create a hash table. ${Policy}, @@ -5547,6 +5617,10 @@ Creates or updates a BackupVault resource belonging to a resource group. $sub = "xxxx-xxxx-xxxxx" $storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -DataStoreType VaultStore -Type LocallyRedundant New-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName "MyVault" -StorageSetting $storagesetting -Location westus +.Example +$sub = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +$storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -DataStoreType VaultStore -Type LocallyRedundant +New-AzDataProtectionBackupVault -SubscriptionId $sub "resourceGroupName" -VaultName "vaultName" -Location westus -StorageSetting $storagesetting -CrossSubscriptionRestoreState Enabled -ImmutabilityState Unlocked -SoftDeleteRetentionDurationInDay 100 -SoftDeleteState On .Outputs System.Management.Automation.PSObject @@ -5585,7 +5659,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSetting[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -5616,6 +5690,33 @@ param( # Security alerts cannot be disabled. ${AzureMonitorAlertsForAllJobFailure}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState] + # Immutability state of the vault. + # Allowed values are Disabled, Unlocked, Locked. + ${ImmutabilityState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState] + # Cross subscription restore state of the vault. + # Allowed values are Disabled, Enabled, PermanentlyDisabled. + ${CrossSubscriptionRestoreState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Double] + # Soft delete retention duration in days + ${SoftDeleteRetentionDurationInDay}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState] + # Soft delete state of the vault. + # Allowed values are Off, On, AlwaysOn + ${SoftDeleteState}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] [System.Collections.Hashtable] @@ -5862,12 +5963,12 @@ New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfDay New-AzDataProtectionPolicyTagCriteriaClientObject -DaysOfWeek @("Sunday", "Monday") .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteria +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteria .Link https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionpolicytagcriteriaclientobject #> function New-AzDataProtectionPolicyTagCriteriaClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteria])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteria])] [CmdletBinding(DefaultParameterSetName='ScheduleCriteria', PositionalBinding=$false)] param( [Parameter(ParameterSetName='AbsoluteCriteria', Mandatory)] @@ -6109,12 +6210,12 @@ Creates a resource guard under a resource group New-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "mua-rg" -Name "mua-resource-guard" -Location "centraluseuap" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource .Link https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionresourceguard #> function New-AzDataProtectionResourceGuard { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource])] [CmdletBinding(DefaultParameterSetName='CreateResourceGuard', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -6285,12 +6386,12 @@ New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalS New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalStore -SourceRetentionDurationType Weeks -SourceRetentionDurationCount 20 .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycle +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycle .Link https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionretentionlifecycleclientobject #> function New-AzDataProtectionRetentionLifeCycleClientObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycle])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycle])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -6729,7 +6830,7 @@ function Set-AzDataProtectionMSIPermission { param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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}, @@ -6846,7 +6947,7 @@ $RestoreRequestObject = Initialize-AzDataProtectionRestoreRequest -DatasourceTyp $validateRestore = Test-AzDataProtectionBackupInstanceRestore -Name $instances[0].Name -ResourceGroupName "testResourceGroup" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "testVault" -RestoreRequest $RestoreRequestObject .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo .Notes COMPLEX PARAMETER PROPERTIES @@ -6863,7 +6964,7 @@ RESTOREREQUEST : Restore request object for which to https://learn.microsoft.com/powershell/module/az.dataprotection/test-azdataprotectionbackupinstancerestore #> function Test-AzDataProtectionBackupInstanceRestore { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo])] [CmdletBinding(DefaultParameterSetName='ValidateRestore', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -6886,7 +6987,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest] # Restore request object for which to validate # To construct, see NOTES section for RESTOREREQUEST properties and create a hash table. ${RestoreRequest}, @@ -7034,12 +7135,12 @@ $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupNa Update-AzDataProtectionBackupInstanceAssociatedPolicy -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[0].Name -PolicyId $policy[1].Id .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource .Link https://learn.microsoft.com/powershell/module/az.dataprotection/update-azdataprotectionbackupinstanceassociatedpolicy #> function Update-AzDataProtectionBackupInstanceAssociatedPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -7209,12 +7310,12 @@ $operationsToBeExcluded = $criticalOperations | Where-Object { $_ -match "backup Update-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "rgName" -Name $resourceGuard.Name -CriticalOperationExclusionList $operationsToBeExcluded .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource .Link https://learn.microsoft.com/powershell/module/az.dataprotection/update-azdataprotectionresourceguard #> function Update-AzDataProtectionResourceGuard { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource])] [CmdletBinding(DefaultParameterSetName='UpdateResourceGuardOperations', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/DataProtection/exports/README.md b/src/DataProtection/exports/README.md index e67d18735c54..260542140201 100644 --- a/src/DataProtection/exports/README.md +++ b/src/DataProtection/exports/README.md @@ -1,5 +1,5 @@ # Exports -This directory contains the cmdlets *exported by* `Az.DataProtection`. No other cmdlets in this repository are directly exported. What that means is the `Az.DataProtection` module will run [Export-ModuleMember](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/export-modulemember) on the cmldets in this directory. The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. +This directory contains the cmdlets *exported by* `Az.DataProtection`. No other cmdlets in this repository are directly exported. What that means is the `Az.DataProtection` module will run [Export-ModuleMember](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/export-modulemember) on the cmldets in this directory. The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. ## Info - Modifiable: no diff --git a/src/DataProtection/exports/Remove-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/exports/Remove-AzDataProtectionBackupInstance.ps1 index 5ff3632be04e..d46f6652be90 100644 --- a/src/DataProtection/exports/Remove-AzDataProtectionBackupInstance.ps1 +++ b/src/DataProtection/exports/Remove-AzDataProtectionBackupInstance.ps1 @@ -33,7 +33,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -41,9 +41,9 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/remove-azdataprotectionbackupinstance @@ -56,20 +56,22 @@ param( [Alias('BackupInstanceName')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the backup instance + # The name of the backup instance. ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Delete', Mandatory)] diff --git a/src/DataProtection/exports/Remove-AzDataProtectionBackupPolicy.ps1 b/src/DataProtection/exports/Remove-AzDataProtectionBackupPolicy.ps1 index 124e2406c614..8d664aa5be32 100644 --- a/src/DataProtection/exports/Remove-AzDataProtectionBackupPolicy.ps1 +++ b/src/DataProtection/exports/Remove-AzDataProtectionBackupPolicy.ps1 @@ -33,7 +33,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -41,9 +41,9 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/remove-azdataprotectionbackuppolicy @@ -62,14 +62,16 @@ param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Delete', Mandatory)] diff --git a/src/DataProtection/exports/Remove-AzDataProtectionBackupVault.ps1 b/src/DataProtection/exports/Remove-AzDataProtectionBackupVault.ps1 index 53fea388014c..783c5faba3ba 100644 --- a/src/DataProtection/exports/Remove-AzDataProtectionBackupVault.ps1 +++ b/src/DataProtection/exports/Remove-AzDataProtectionBackupVault.ps1 @@ -32,7 +32,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -40,9 +40,9 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/remove-azdataprotectionbackupvault @@ -54,14 +54,16 @@ param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Delete', Mandatory)] diff --git a/src/DataProtection/exports/Remove-AzDataProtectionResourceGuard.ps1 b/src/DataProtection/exports/Remove-AzDataProtectionResourceGuard.ps1 index 9735cb7c72be..f024bfa7cf7e 100644 --- a/src/DataProtection/exports/Remove-AzDataProtectionResourceGuard.ps1 +++ b/src/DataProtection/exports/Remove-AzDataProtectionResourceGuard.ps1 @@ -32,7 +32,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -40,9 +40,9 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/remove-azdataprotectionresourceguard @@ -60,14 +60,16 @@ param( [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DataProtection/exports/Resume-AzDataProtectionBackupInstanceProtection.ps1 b/src/DataProtection/exports/Resume-AzDataProtectionBackupInstanceProtection.ps1 index 6c195feb7861..b421fae38461 100644 --- a/src/DataProtection/exports/Resume-AzDataProtectionBackupInstanceProtection.ps1 +++ b/src/DataProtection/exports/Resume-AzDataProtectionBackupInstanceProtection.ps1 @@ -32,7 +32,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -40,9 +40,9 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/resume-azdataprotectionbackupinstanceprotection @@ -54,20 +54,22 @@ param( [Parameter(ParameterSetName='Resume', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # . + # The name of the backup instance. ${BackupInstanceName}, [Parameter(ParameterSetName='Resume', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Resume')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Resume', Mandatory)] diff --git a/src/DataProtection/exports/Set-AzDataProtectionMSIPermission.ps1 b/src/DataProtection/exports/Set-AzDataProtectionMSIPermission.ps1 index 8664587f2256..533eb687c934 100644 --- a/src/DataProtection/exports/Set-AzDataProtectionMSIPermission.ps1 +++ b/src/DataProtection/exports/Set-AzDataProtectionMSIPermission.ps1 @@ -75,7 +75,7 @@ function Set-AzDataProtectionMSIPermission { param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Start-AzDataProtectionBackupInstanceRestore.ps1 b/src/DataProtection/exports/Start-AzDataProtectionBackupInstanceRestore.ps1 index 7d61069d0d3e..0ba92844d40e 100644 --- a/src/DataProtection/exports/Start-AzDataProtectionBackupInstanceRestore.ps1 +++ b/src/DataProtection/exports/Start-AzDataProtectionBackupInstanceRestore.ps1 @@ -56,9 +56,9 @@ while($jobstatus -ne "Completed") } .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo .Notes COMPLEX PARAMETER PROPERTIES @@ -79,19 +79,20 @@ RESTORETARGETINFO : Gets or sets the restore target info https://learn.microsoft.com/powershell/module/az.dataprotection/start-azdataprotectionbackupinstancerestore #> function Start-AzDataProtectionBackupInstanceRestore { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo])] [CmdletBinding(DefaultParameterSetName='Trigger', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the backup instance + # The name of the backup instance. ${BackupInstanceName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(Mandatory)] @@ -104,12 +105,13 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Trigger', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest] # Azure backup restore request # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -122,7 +124,7 @@ param( [Parameter(ParameterSetName='TriggerExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase] # Gets or sets the restore target information. # To construct, see NOTES section for RESTORETARGETINFO properties and create a hash table. ${RestoreTargetInfo}, diff --git a/src/DataProtection/exports/Stop-AzDataProtectionBackupInstanceProtection.ps1 b/src/DataProtection/exports/Stop-AzDataProtectionBackupInstanceProtection.ps1 index ee91c38f597f..77b7c1b89afb 100644 --- a/src/DataProtection/exports/Stop-AzDataProtectionBackupInstanceProtection.ps1 +++ b/src/DataProtection/exports/Stop-AzDataProtectionBackupInstanceProtection.ps1 @@ -32,7 +32,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -40,9 +40,9 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/stop-azdataprotectionbackupinstanceprotection @@ -54,20 +54,22 @@ param( [Parameter(ParameterSetName='Stop', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # . + # The name of the backup instance. ${BackupInstanceName}, [Parameter(ParameterSetName='Stop', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Stop')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Stop', Mandatory)] diff --git a/src/DataProtection/exports/Suspend-AzDataProtectionBackupInstanceBackup.ps1 b/src/DataProtection/exports/Suspend-AzDataProtectionBackupInstanceBackup.ps1 index 40cdb7a83065..96d0a5d34231 100644 --- a/src/DataProtection/exports/Suspend-AzDataProtectionBackupInstanceBackup.ps1 +++ b/src/DataProtection/exports/Suspend-AzDataProtectionBackupInstanceBackup.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -This operation will stop backups for backup instance +This operation will stop backup for a backup instance and retains the backup data as per the policy (except latest Recovery point, which will be retained forever) .Description -This operation will stop backups for backup instance +This operation will stop backup for a backup instance and retains the backup data as per the policy (except latest Recovery point, which will be retained forever) .Example Suspend-AzDataProtectionBackupInstanceBackup -ResourceGroupName "rgName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" -BackupInstanceName $backupInstance.BackupInstanceName @@ -32,7 +32,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -40,9 +40,9 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/suspend-azdataprotectionbackupinstancebackup @@ -54,20 +54,22 @@ param( [Parameter(ParameterSetName='Suspend', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # . + # The name of the backup instance. ${BackupInstanceName}, [Parameter(ParameterSetName='Suspend', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Suspend')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Suspend', Mandatory)] diff --git a/src/DataProtection/exports/Sync-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/exports/Sync-AzDataProtectionBackupInstance.ps1 index e161cf84b824..567b6cd4d853 100644 --- a/src/DataProtection/exports/Sync-AzDataProtectionBackupInstance.ps1 +++ b/src/DataProtection/exports/Sync-AzDataProtectionBackupInstance.ps1 @@ -35,13 +35,14 @@ param( [Alias('BackupInstanceName')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # . + # The name of the backup instance. ${Name}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(Mandatory)] @@ -54,7 +55,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] diff --git a/src/DataProtection/exports/Test-AzDataProtectionBackupInstanceReadiness.ps1 b/src/DataProtection/exports/Test-AzDataProtectionBackupInstanceReadiness.ps1 index 8a5c6004c044..8a8132d75534 100644 --- a/src/DataProtection/exports/Test-AzDataProtectionBackupInstanceReadiness.ps1 +++ b/src/DataProtection/exports/Test-AzDataProtectionBackupInstanceReadiness.ps1 @@ -28,7 +28,7 @@ $instance = Initialize-AzDataProtectionBackupInstance -SnapshotResourceGroupId $ Test-AzDataProtectionBackupInstanceReadiness -ResourceGroupName "resourceGroupName" -VaultName $vault.Name -BackupInstance $instance[0].Property .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo .Notes COMPLEX PARAMETER PROPERTIES @@ -66,13 +66,14 @@ BACKUPINSTANCE : Backup Instance https://learn.microsoft.com/powershell/module/az.dataprotection/test-azdataprotectionbackupinstancereadiness #> function Test-AzDataProtectionBackupInstanceReadiness { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo])] [CmdletBinding(DefaultParameterSetName='ValidateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(Mandatory)] @@ -85,12 +86,13 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance] # Backup Instance # To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. ${BackupInstance}, diff --git a/src/DataProtection/exports/Test-AzDataProtectionBackupInstanceRestore.ps1 b/src/DataProtection/exports/Test-AzDataProtectionBackupInstanceRestore.ps1 index a818573bd3b8..e9fcb54ffa7b 100644 --- a/src/DataProtection/exports/Test-AzDataProtectionBackupInstanceRestore.ps1 +++ b/src/DataProtection/exports/Test-AzDataProtectionBackupInstanceRestore.ps1 @@ -27,7 +27,7 @@ $RestoreRequestObject = Initialize-AzDataProtectionRestoreRequest -DatasourceTyp $validateRestore = Test-AzDataProtectionBackupInstanceRestore -Name $instances[0].Name -ResourceGroupName "testResourceGroup" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "testVault" -RestoreRequest $RestoreRequestObject .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo .Notes COMPLEX PARAMETER PROPERTIES @@ -44,7 +44,7 @@ RESTOREREQUEST : Restore request object for which to https://learn.microsoft.com/powershell/module/az.dataprotection/test-azdataprotectionbackupinstancerestore #> function Test-AzDataProtectionBackupInstanceRestore { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo])] [CmdletBinding(DefaultParameterSetName='ValidateRestore', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -67,7 +67,7 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest] # Restore request object for which to validate # To construct, see NOTES section for RESTOREREQUEST properties and create a hash table. ${RestoreRequest}, diff --git a/src/DataProtection/exports/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 b/src/DataProtection/exports/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 index 5ba5ad069d75..3aa0624bda34 100644 --- a/src/DataProtection/exports/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 +++ b/src/DataProtection/exports/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 @@ -26,12 +26,12 @@ $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupNa Update-AzDataProtectionBackupInstanceAssociatedPolicy -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[0].Name -PolicyId $policy[1].Id .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource .Link https://learn.microsoft.com/powershell/module/az.dataprotection/update-azdataprotectionbackupinstanceassociatedpolicy #> function Update-AzDataProtectionBackupInstanceAssociatedPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 df9b0fecd7c5..8f83102cb3b6 100644 --- a/src/DataProtection/exports/Update-AzDataProtectionBackupVault.ps1 +++ b/src/DataProtection/exports/Update-AzDataProtectionBackupVault.ps1 @@ -26,18 +26,20 @@ $tag = @{"Owner"="sarath";"Purpose"="AzureBackupTesting"} Update-AzDataProtectionBackupVault -SubscriptionId "xxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -Tag $tag .Example Update-AzDataProtectionBackupVault -ResourceGroupName "rgName" -VaultName "vaultName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -AzureMonitorAlertsForAllJobFailure 'Disabled' +.Example +Update-AzDataProtectionBackupVault -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -CrossSubscriptionRestoreState Disabled -ImmutabilityState Disabled -SoftDeleteRetentionDurationInDay 99 -SoftDeleteState Off .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -45,28 +47,30 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/update-azdataprotectionbackupvault #> function Update-AzDataProtectionBackupVault { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -90,15 +94,45 @@ param( # Security alerts cannot be disabled. ${AzureMonitorAlertsForAllJobFailure}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState])] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState] + # Cross subscription restore state of the vault. + # Allowed values are Disabled, Enabled, PermanentlyDisabled. + ${CrossSubscriptionRestoreState}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] [System.String] # The identityType which can be either SystemAssigned or None ${IdentityType}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState])] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState] + # Immutability state of the vault. + # Allowed values are Disabled, Unlocked, Locked. + ${ImmutabilityState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [System.Double] + # Soft delete retention duration in days. + ${SoftDeleteRetentionDurationInDay}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState])] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState] + # Soft delete state of the vault. + # Allowed values are Off, On, AlwaysOn. + ${SoftDeleteState}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/src/DataProtection/exports/Update-AzDataProtectionResourceGuard.ps1 b/src/DataProtection/exports/Update-AzDataProtectionResourceGuard.ps1 index 103b82854cce..1de7318b9e93 100644 --- a/src/DataProtection/exports/Update-AzDataProtectionResourceGuard.ps1 +++ b/src/DataProtection/exports/Update-AzDataProtectionResourceGuard.ps1 @@ -26,12 +26,12 @@ $operationsToBeExcluded = $criticalOperations | Where-Object { $_ -match "backup Update-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "rgName" -Name $resourceGuard.Name -CriticalOperationExclusionList $operationsToBeExcluded .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource .Link https://learn.microsoft.com/powershell/module/az.dataprotection/update-azdataprotectionresourceguard #> function Update-AzDataProtectionResourceGuard { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource])] [CmdletBinding(DefaultParameterSetName='UpdateResourceGuardOperations', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/src/DataProtection/generate-info.json b/src/DataProtection/generate-info.json index 83addd536d0e..def3ba129de8 100644 --- a/src/DataProtection/generate-info.json +++ b/src/DataProtection/generate-info.json @@ -1,8 +1,8 @@ { - "swagger_commit": "d5ff2c358382dfa75282bf3c13aa00dd92c38d71", + "swagger_commit": "18e83e24c36eed85a240103b476de0220ace7f84", "node": "v14.15.5", "autorest": "`-- (empty)", - "autorest_core": "3.9.3", + "autorest_core": "3.9.4", "autorest_modelerfour": "4.15.414", "autorest_powershell": "3.0.498" } diff --git a/src/DataProtection/generated/api/DataProtection.cs b/src/DataProtection/generated/api/DataProtection.cs index a1e8cbc9c8c8..8b00c0992fa7 100644 --- a/src/DataProtection/generated/api/DataProtection.cs +++ b/src/DataProtection/generated/api/DataProtection.cs @@ -14,10 +14,10 @@ public partial class DataProtection { /// Trigger adhoc backup - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// The name of the backup instance + /// The name of the backup instance. /// Request body for operation /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -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 subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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 subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 = @"2022-05-01"; + var apiVersion = @"2022-12-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.Api20220501.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.Api20221201.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 = @"2022-05-01"; + var apiVersion = @"2022-12-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 ) { @@ -255,13 +255,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -280,21 +280,24 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// The name of the backup instance + /// The name of the backup instance. /// Request body for operation /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesAdhocBackup_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupInstancesAdhocBackup_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); await eventListener.AssertNotNull(nameof(body), body); @@ -303,10 +306,10 @@ public partial class DataProtection } /// Create or update a backup instance in a backup vault - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// The name of the backup instance + /// The name of the backup instance. /// Request body for operation /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -316,9 +319,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 subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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 subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -364,9 +367,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.Api20220501.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.Api20221201.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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -424,7 +427,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 ) { @@ -541,13 +544,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -566,21 +569,24 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// The name of the backup instance + /// The name of the backup instance. /// Request body for operation /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupInstancesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); await eventListener.AssertNotNull(nameof(body), body); @@ -589,10 +595,10 @@ public partial class DataProtection } /// Delete a backupInstances - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// The name of the backup instance + /// The name of the backup instance. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled @@ -602,9 +608,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 subscriptionId, string resourceGroupName, string vaultName, 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 subscriptionId, string resourceGroupName, string vaultName, 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -646,9 +652,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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -703,7 +709,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 ) { @@ -833,7 +839,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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -852,10 +858,10 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// The name of the backup instance + /// The name of the backup instance. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -865,17 +871,20 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); } } /// Gets a backup instance with name in a backup vault - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// The name of the backup instance + /// The name of the backup instance. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -884,9 +893,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 subscriptionId, string resourceGroupName, string vaultName, 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 subscriptionId, string resourceGroupName, string vaultName, 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -918,10 +927,10 @@ public partial class DataProtection } /// Get result of backup instance creation operation - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// + /// The name of the backup instance. /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 202 (Accepted). @@ -932,9 +941,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesGetBackupInstanceOperationResult(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, 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 BackupInstancesGetBackupInstanceOperationResult(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -978,9 +987,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesGetBackupInstanceOperationResultViaIdentity(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 BackupInstancesGetBackupInstanceOperationResultViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1040,7 +1049,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesGetBackupInstanceOperationResult_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 BackupInstancesGetBackupInstanceOperationResult_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 ) { @@ -1058,7 +1067,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.Api20220501.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.Api20221201.BackupInstanceResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } case global::System.Net.HttpStatusCode.Accepted: @@ -1070,7 +1079,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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1089,10 +1098,10 @@ public partial class DataProtection /// Validation method for method. Call this like the actual /// call, but you will get validation events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// + /// The name of the backup instance. /// /// an instance that will receive events. /// @@ -1103,7 +1112,10 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); await eventListener.AssertNotNull(nameof(operationId),operationId); @@ -1120,9 +1132,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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1176,7 +1188,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 ) { @@ -1194,13 +1206,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1219,10 +1231,10 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// The name of the backup instance + /// The name of the backup instance. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -1232,15 +1244,18 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); } } /// Gets a backup instances belonging to a backup vault - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1250,9 +1265,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 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 BackupInstancesList(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1292,9 +1307,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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1346,7 +1361,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 ) { @@ -1364,13 +1379,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1389,8 +1404,8 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// an instance that will receive events. /// @@ -1401,16 +1416,19 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); } } /// This operation will resume backups for backup instance - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// + /// The name of the backup instance. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -1419,9 +1437,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesResumeBackups(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, global::System.Func 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 BackupInstancesResumeBackups(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, global::System.Func 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1463,9 +1481,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesResumeBackupsViaIdentity(global::System.String viaIdentity, global::System.Func 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 BackupInstancesResumeBackupsViaIdentity(global::System.String viaIdentity, global::System.Func 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1520,7 +1538,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesResumeBackups_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func 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 BackupInstancesResumeBackups_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func 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 ) { @@ -1644,7 +1662,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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1663,10 +1681,10 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// + /// The name of the backup instance. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -1676,17 +1694,20 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); } } /// This operation will resume protection for a stopped backup instance - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// + /// The name of the backup instance. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -1695,9 +1716,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesResumeProtection(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, global::System.Func 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 BackupInstancesResumeProtection(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, global::System.Func 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1739,9 +1760,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesResumeProtectionViaIdentity(global::System.String viaIdentity, global::System.Func 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 BackupInstancesResumeProtectionViaIdentity(global::System.String viaIdentity, global::System.Func 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1796,7 +1817,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesResumeProtection_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func 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 BackupInstancesResumeProtection_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func 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 ) { @@ -1920,7 +1941,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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1939,10 +1960,10 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// + /// The name of the backup instance. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -1952,7 +1973,10 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); } @@ -1961,10 +1985,10 @@ public partial class DataProtection /// /// This operation will stop protection of a backup instance and data will be held forever /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// + /// The name of the backup instance. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -1973,9 +1997,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesStopProtection(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, global::System.Func 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 BackupInstancesStopProtection(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, global::System.Func 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2019,9 +2043,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesStopProtectionViaIdentity(global::System.String viaIdentity, global::System.Func 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 BackupInstancesStopProtectionViaIdentity(global::System.String viaIdentity, global::System.Func 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2076,7 +2100,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesStopProtection_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func 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 BackupInstancesStopProtection_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func 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 ) { @@ -2200,7 +2224,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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2219,10 +2243,10 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// + /// The name of the backup instance. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -2232,17 +2256,23 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); } } - /// This operation will stop backups for backup instance - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// + /// This operation will stop backup for a backup instance and retains the backup data as per the policy (except latest Recovery + /// point, which will be retained forever) + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// + /// The name of the backup instance. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2251,9 +2281,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesSuspendBackups(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, global::System.Func 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 BackupInstancesSuspendBackups(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, global::System.Func 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2285,7 +2315,10 @@ public partial class DataProtection } } - /// This operation will stop backups for backup instance + /// + /// This operation will stop backup for a backup instance and retains the backup data as per the policy (except latest Recovery + /// point, which will be retained forever) + /// /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2295,9 +2328,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesSuspendBackupsViaIdentity(global::System.String viaIdentity, global::System.Func 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 BackupInstancesSuspendBackupsViaIdentity(global::System.String viaIdentity, global::System.Func 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2352,7 +2385,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesSuspendBackups_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func 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 BackupInstancesSuspendBackups_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func 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 ) { @@ -2476,7 +2509,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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2495,10 +2528,10 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// + /// The name of the backup instance. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -2508,7 +2541,10 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); } @@ -2518,10 +2554,10 @@ public partial class DataProtection /// Sync backup instance again in case of failure /// This action will retry last failed operation and will bring backup instance to valid state /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// + /// The name of the backup instance. /// Request body for operation /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2531,9 +2567,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesSyncBackupInstance(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISyncBackupInstanceRequest body, global::System.Func 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 BackupInstancesSyncBackupInstance(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISyncBackupInstanceRequest body, global::System.Func 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2583,9 +2619,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesSyncBackupInstanceViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISyncBackupInstanceRequest body, global::System.Func 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 BackupInstancesSyncBackupInstanceViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISyncBackupInstanceRequest body, global::System.Func 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2644,7 +2680,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesSyncBackupInstance_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func 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 BackupInstancesSyncBackupInstance_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func 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 ) { @@ -2768,7 +2804,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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2787,21 +2823,24 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// + /// The name of the backup instance. /// Request body for operation /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesSyncBackupInstance_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISyncBackupInstanceRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupInstancesSyncBackupInstance_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISyncBackupInstanceRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); await eventListener.AssertNotNull(nameof(body), body); @@ -2810,10 +2849,10 @@ public partial class DataProtection } /// rehydrate recovery point for restore for a BackupInstance - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// The name of the backup vault. - /// + /// The name of the backup instance. /// Request body for operation /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2823,9 +2862,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.Api20220501.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.Api20221201.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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2872,9 +2911,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.Api20220501.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.Api20221201.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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2933,7 +2972,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 ) { @@ -3057,7 +3096,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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3076,21 +3115,24 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// The name of the backup vault. - /// + /// The name of the backup instance. /// Request body for operation /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesTriggerRehydrate_Validate(string resourceGroupName, string subscriptionId, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IAzureBackupRehydrationRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); await eventListener.AssertNotNull(nameof(body), body); @@ -3099,10 +3141,10 @@ public partial class DataProtection } /// Triggers restore for a BackupInstance - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// The name of the backup instance + /// The name of the backup instance. /// Request body for operation /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -3112,9 +3154,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 subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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 subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3161,9 +3203,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.Api20220501.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.Api20221201.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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3222,7 +3264,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 ) { @@ -3340,13 +3382,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3365,21 +3407,24 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// The name of the backup instance + /// The name of the backup instance. /// Request body for operation /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesTriggerRestore_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupInstancesTriggerRestore_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); await eventListener.AssertNotNull(nameof(body), body); @@ -3388,8 +3433,8 @@ public partial class DataProtection } /// Validate whether adhoc backup will be successful or not - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// Request body for operation /// a delegate that is called when the remote service returns 200 (OK). @@ -3400,9 +3445,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 subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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 subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3447,9 +3492,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.Api20220501.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.Api20221201.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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3505,7 +3550,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 ) { @@ -3623,13 +3668,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3648,20 +3693,23 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// Request body for operation /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesValidateForBackup_Validate(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateForBackupRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupInstancesValidateForBackup_Validate(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateForBackupRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -3669,10 +3717,10 @@ public partial class DataProtection } /// Validates if Restore can be triggered for a DataSource - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// The name of the backup instance + /// The name of the backup instance. /// Request body for operation /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -3682,9 +3730,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesValidateForRestore(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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 BackupInstancesValidateForRestore(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3731,9 +3779,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupInstancesValidateForRestoreViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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 BackupInstancesValidateForRestoreViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3792,7 +3840,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesValidateForRestore_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 BackupInstancesValidateForRestore_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 ) { @@ -3910,13 +3958,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3935,21 +3983,24 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// The name of the backup instance + /// The name of the backup instance. /// Request body for operation /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupInstancesValidateForRestore_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateRestoreRequestObject body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupInstancesValidateForRestore_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateRestoreRequestObject body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); await eventListener.AssertNotNull(nameof(body), body); @@ -3958,8 +4009,8 @@ public partial class DataProtection } /// Creates or Updates a backup policy belonging to a backup vault - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// Name of the policy /// Request body for operation @@ -3971,9 +4022,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 subscriptionId, string resourceGroupName, string vaultName, string backupPolicyName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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 subscriptionId, string resourceGroupName, string vaultName, string backupPolicyName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4019,9 +4070,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.Api20220501.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.Api20221201.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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4079,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 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 ) { @@ -4097,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4122,8 +4173,8 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// Name of the policy /// Request body for operation @@ -4131,12 +4182,15 @@ 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 subscriptionId, string resourceGroupName, string vaultName, string backupPolicyName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupPoliciesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupPolicyName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupPolicyName),backupPolicyName); await eventListener.AssertNotNull(nameof(body), body); @@ -4145,8 +4199,8 @@ public partial class DataProtection } /// Deletes a backup policy belonging to a backup vault - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// /// a delegate that is called when the remote service returns 200 (OK). @@ -4158,9 +4212,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 subscriptionId, string resourceGroupName, string vaultName, 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 subscriptionId, string resourceGroupName, string vaultName, 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4202,9 +4256,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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4259,7 +4313,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 ) { @@ -4289,7 +4343,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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4308,8 +4362,8 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// /// an instance that will receive events. @@ -4321,15 +4375,18 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupPolicyName),backupPolicyName); } } /// Gets a backup policy belonging to a backup vault - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// /// a delegate that is called when the remote service returns 200 (OK). @@ -4340,9 +4397,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 subscriptionId, string resourceGroupName, string vaultName, 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 subscriptionId, string resourceGroupName, string vaultName, 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4383,9 +4440,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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4439,7 +4496,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 ) { @@ -4457,13 +4514,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4482,8 +4539,8 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// /// an instance that will receive events. @@ -4495,15 +4552,18 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupPolicyName),backupPolicyName); } } /// Returns list of backup policies belonging to a backup vault - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -4513,9 +4573,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 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 BackupPoliciesList(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4555,9 +4615,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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4609,7 +4669,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 ) { @@ -4627,13 +4687,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4652,8 +4712,8 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// an instance that will receive events. /// @@ -4664,13 +4724,16 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); } } - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// /// a delegate that is called when the remote service returns 200 (OK). @@ -4682,9 +4745,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultOperationResultsGet(string subscriptionId, string resourceGroupName, string vaultName, string operationId, 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 BackupVaultOperationResultsGet(string subscriptionId, string resourceGroupName, string vaultName, string operationId, 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4725,9 +4788,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultOperationResultsGetViaIdentity(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 BackupVaultOperationResultsGetViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4782,7 +4845,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupVaultOperationResultsGet_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 BackupVaultOperationResultsGet_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 ) { @@ -4800,7 +4863,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.Api20220501.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.Api20221201.BackupVaultResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } case global::System.Net.HttpStatusCode.Accepted: @@ -4812,7 +4875,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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4831,8 +4894,8 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// /// an instance that will receive events. @@ -4844,15 +4907,18 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(operationId),operationId); } } /// API to check for resource name availability - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// The location in which uniqueness will be verified. /// Check name availability request /// a delegate that is called when the remote service returns 200 (OK). @@ -4863,9 +4929,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.Api20220501.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.Api20221201.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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4910,9 +4976,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.Api20220501.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.Api20221201.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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4968,7 +5034,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 ) { @@ -4986,13 +5052,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5011,20 +5077,23 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// The location in which uniqueness will be verified. /// Check name availability request /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupVaultsCheckNameAvailability_Validate(string resourceGroupName, string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.ICheckNameAvailabilityRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(location),location); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -5032,8 +5101,8 @@ public partial class DataProtection } /// Creates or updates a BackupVault resource belonging to a resource group. - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// Request body for operation /// a delegate that is called when the remote service returns 200 (OK). @@ -5044,9 +5113,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 subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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 subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5090,9 +5159,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.Api20220501.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.Api20221201.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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5147,7 +5216,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 ) { @@ -5264,13 +5333,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5289,20 +5358,23 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// Request body for operation /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupVaultsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupVaultsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -5310,8 +5382,8 @@ public partial class DataProtection } /// Deletes a BackupVault resource from the resource group. - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 202 (Accepted). @@ -5323,9 +5395,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 subscriptionId, string resourceGroupName, string vaultName, 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 subscriptionId, string resourceGroupName, string vaultName, 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5366,9 +5438,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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5421,7 +5493,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 ) { @@ -5457,7 +5529,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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5476,8 +5548,8 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// an instance that will receive events. /// @@ -5488,14 +5560,17 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); } } /// Returns a resource belonging to a resource group. - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -5505,9 +5580,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 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 BackupVaultsGet(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5537,8 +5612,8 @@ public partial class DataProtection } /// Returns resource collection belonging to a resource group. - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -5547,9 +5622,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultsGetInResourceGroup(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 BackupVaultsGetInResourceGroup(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5587,9 +5662,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultsGetInResourceGroupViaIdentity(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 BackupVaultsGetInResourceGroupViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5638,7 +5713,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupVaultsGetInResourceGroup_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 BackupVaultsGetInResourceGroup_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 ) { @@ -5656,13 +5731,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5681,8 +5756,8 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -5692,12 +5767,15 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); } } /// Returns resource collection belonging to a subscription. - /// The subscription Id. + /// The ID of the target subscription. The value must be an UUID. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -5706,9 +5784,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultsGetInSubscription(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 BackupVaultsGetInSubscription(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5744,9 +5822,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultsGetInSubscriptionViaIdentity(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 BackupVaultsGetInSubscriptionViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5792,7 +5870,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupVaultsGetInSubscription_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 BackupVaultsGetInSubscription_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 ) { @@ -5810,13 +5888,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5835,7 +5913,7 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The subscription Id. + /// The ID of the target subscription. The value must be an UUID. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -5845,6 +5923,7 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); } } @@ -5858,9 +5937,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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5911,7 +5990,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 ) { @@ -5929,13 +6008,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5954,8 +6033,8 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// an instance that will receive events. /// @@ -5966,7 +6045,10 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); } } @@ -5974,8 +6056,8 @@ public partial class DataProtection /// /// Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// Request body for operation /// a delegate that is called when the remote service returns 200 (OK). @@ -5986,9 +6068,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultsUpdate(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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 BackupVaultsUpdate(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6034,9 +6116,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task BackupVaultsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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 BackupVaultsUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6091,7 +6173,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupVaultsUpdate_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 BackupVaultsUpdate_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 ) { @@ -6208,13 +6290,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6233,20 +6315,23 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// Request body for operation /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task BackupVaultsUpdate_Validate(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInput body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task BackupVaultsUpdate_Validate(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInput body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -6254,7 +6339,7 @@ public partial class DataProtection } /// Validates if a feature is supported - /// The subscription Id. + /// The ID of the target subscription. The value must be an UUID. /// /// Feature support request object /// a delegate that is called when the remote service returns 200 (OK). @@ -6265,9 +6350,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DataProtectionCheckFeatureSupport(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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 DataProtectionCheckFeatureSupport(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6310,9 +6395,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DataProtectionCheckFeatureSupportViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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 DataProtectionCheckFeatureSupportViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6365,7 +6450,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DataProtectionCheckFeatureSupport_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 DataProtectionCheckFeatureSupport_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 ) { @@ -6383,13 +6468,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6408,18 +6493,19 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// The subscription Id. + /// The ID of the target subscription. The value must be an UUID. /// /// Feature support request object /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DataProtectionCheckFeatureSupport_Validate(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestBase body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DataProtectionCheckFeatureSupport_Validate(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestBase body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(location),location); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -6435,9 +6521,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DataProtectionOperationsList(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 DataProtectionOperationsList(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6471,9 +6557,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DataProtectionOperationsListViaIdentity(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 DataProtectionOperationsListViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6516,7 +6602,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DataProtectionOperationsList_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 DataProtectionOperationsList_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 ) { @@ -6534,13 +6620,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6571,12 +6657,637 @@ public partial class DataProtection } } + /// Gets a deleted backup instance with name in a backup vault + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the backup vault. + /// The name of the deleted backup instance + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DeletedBackupInstancesGet(string subscriptionId, string resourceGroupName, string vaultName, 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 = @"2022-12-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DataProtection/backupVaults/" + + global::System.Uri.EscapeDataString(vaultName) + + "/deletedBackupInstances/" + + global::System.Uri.EscapeDataString(backupInstanceName) + + "?" + + "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; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DeletedBackupInstancesGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets a deleted backup instance with name in a backup vault + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DeletedBackupInstancesGetViaIdentity(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 = @"2022-12-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataProtection/backupVaults/(?[^/]+)/deletedBackupInstances/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances/{backupInstanceName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var vaultName = _match.Groups["vaultName"].Value; + var backupInstanceName = _match.Groups["backupInstanceName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DataProtection/backupVaults/" + + vaultName + + "/deletedBackupInstances/" + + backupInstanceName + + "?" + + "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; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DeletedBackupInstancesGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DeletedBackupInstancesGet_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 ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeletedBackupInstanceResource.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the backup vault. + /// The name of the deleted backup instance + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DeletedBackupInstancesGet_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); + await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); + } + } + + /// Gets deleted backup instances belonging to a backup vault + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the backup vault. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DeletedBackupInstancesList(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 = @"2022-12-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DataProtection/backupVaults/" + + global::System.Uri.EscapeDataString(vaultName) + + "/deletedBackupInstances" + + "?" + + "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; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DeletedBackupInstancesList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets deleted backup instances belonging to a backup vault + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DeletedBackupInstancesListViaIdentity(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 = @"2022-12-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataProtection/backupVaults/(?[^/]+)/deletedBackupInstances$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var vaultName = _match.Groups["vaultName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DataProtection/backupVaults/" + + vaultName + + "/deletedBackupInstances" + + "?" + + "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; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DeletedBackupInstancesList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DeletedBackupInstancesList_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 ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeletedBackupInstanceResourceList.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the backup vault. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DeletedBackupInstancesList_Validate(string subscriptionId, string resourceGroupName, string vaultName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); + } + } + + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the backup vault. + /// The name of the deleted backup instance + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DeletedBackupInstancesUndelete(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, global::System.Func 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 = @"2022-12-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.DataProtection/backupVaults/" + + global::System.Uri.EscapeDataString(vaultName) + + "/deletedBackupInstances/" + + global::System.Uri.EscapeDataString(backupInstanceName) + + "/undelete" + + "?" + + "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; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DeletedBackupInstancesUndelete_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DeletedBackupInstancesUndeleteViaIdentity(global::System.String viaIdentity, global::System.Func 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 = @"2022-12-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DataProtection/backupVaults/(?[^/]+)/deletedBackupInstances/(?[^/]+)/undelete$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances/{backupInstanceName}/undelete'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var vaultName = _match.Groups["vaultName"].Value; + var backupInstanceName = _match.Groups["backupInstanceName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.DataProtection/backupVaults/" + + vaultName + + "/deletedBackupInstances/" + + backupInstanceName + + "/undelete" + + "?" + + "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; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DeletedBackupInstancesUndelete_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DeletedBackupInstancesUndelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func 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 ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + 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); + 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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the backup vault. + /// The name of the deleted backup instance + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DeletedBackupInstancesUndelete_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(vaultName),vaultName); + await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); + } + } + /// /// Gets the operation result of operation triggered by Export Jobs API. If the operation is successful, then it also contains /// URL of a Blob and a SAS key to access the same. The blob contains exported jobs in JSON serialized format. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// OperationID which represents the export job. /// a delegate that is called when the remote service returns 200 (OK). @@ -6588,9 +7299,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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6635,9 +7346,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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6692,7 +7403,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 ) { @@ -6710,7 +7421,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.Api20220501.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.Api20221201.ExportJobsResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } case global::System.Net.HttpStatusCode.Accepted: @@ -6722,7 +7433,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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6741,8 +7452,8 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// OperationID which represents the export job. /// an instance that will receive events. @@ -6754,15 +7465,18 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(operationId),operationId); } } /// Triggers export of jobs and returns an OperationID to track. - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled @@ -6772,9 +7486,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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6814,9 +7528,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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6868,7 +7582,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 ) { @@ -6989,7 +7703,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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7008,8 +7722,8 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// an instance that will receive events. /// @@ -7020,14 +7734,17 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); } } /// Gets a job with id in a backup vault - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). /// a delegate that is called when the remote service returns 200 (OK). @@ -7038,9 +7755,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobsGet(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 JobsGet(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7081,9 +7798,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobsGetViaIdentity(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 JobsGetViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7137,7 +7854,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobsGet_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 JobsGet_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 ) { @@ -7155,13 +7872,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7180,8 +7897,8 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will get validation events /// back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). /// an instance that will receive events. @@ -7193,15 +7910,18 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(jobId),jobId); } } /// Returns list of jobs belonging to a backup vault - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -7211,9 +7931,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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7253,9 +7973,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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7307,7 +8027,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 ) { @@ -7325,13 +8045,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7350,8 +8070,8 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will get validation events /// back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// an instance that will receive events. /// @@ -7362,13 +8082,16 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); } } /// Gets the operation result for a resource - /// The subscription Id. + /// The ID of the target subscription. The value must be an UUID. /// /// /// a delegate that is called when the remote service returns 200 (OK). @@ -7380,9 +8103,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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7422,9 +8145,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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7476,7 +8199,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 ) { @@ -7494,7 +8217,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.Api20220501.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.Api20221201.OperationJobExtendedInfo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } case global::System.Net.HttpStatusCode.Accepted: @@ -7506,7 +8229,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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7525,7 +8248,7 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The subscription Id. + /// The ID of the target subscription. The value must be an UUID. /// /// /// an instance that will receive events. @@ -7537,14 +8260,15 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(operationId),operationId); await eventListener.AssertNotNull(nameof(location),location); } } /// Gets the operation status for an operation over a BackupVault's context. - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// /// a delegate that is called when the remote service returns 200 (OK). @@ -7555,9 +8279,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationStatusBackupVaultContextGet(string subscriptionId, string resourceGroupName, string vaultName, 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 OperationStatusBackupVaultContextGet(string subscriptionId, string resourceGroupName, string vaultName, 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7598,9 +8322,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationStatusBackupVaultContextGetViaIdentity(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 OperationStatusBackupVaultContextGetViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7656,7 +8380,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OperationStatusBackupVaultContextGet_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 OperationStatusBackupVaultContextGet_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 ) { @@ -7674,13 +8398,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7699,8 +8423,8 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but /// you will get validation events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. /// /// an instance that will receive events. @@ -7712,14 +8436,17 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(operationId),operationId); } } /// Gets the operation status for a resource. - /// The subscription Id. + /// The ID of the target subscription. The value must be an UUID. /// /// /// a delegate that is called when the remote service returns 200 (OK). @@ -7730,9 +8457,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationStatusGet(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 OperationStatusGet(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7771,9 +8498,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationStatusGetViaIdentity(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 OperationStatusGetViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7824,7 +8551,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OperationStatusGet_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 OperationStatusGet_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 ) { @@ -7842,13 +8569,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7867,7 +8594,7 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The subscription Id. + /// The ID of the target subscription. The value must be an UUID. /// /// /// an instance that will receive events. @@ -7879,14 +8606,15 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(location),location); await eventListener.AssertNotNull(nameof(operationId),operationId); } } /// Gets the operation status for an operation over a ResourceGroup's context. - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -7896,9 +8624,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationStatusResourceGroupContextGet(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 OperationStatusResourceGroupContextGet(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7937,9 +8665,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationStatusResourceGroupContextGetViaIdentity(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 OperationStatusResourceGroupContextGetViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7992,7 +8720,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OperationStatusResourceGroupContextGet_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 OperationStatusResourceGroupContextGet_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 ) { @@ -8010,13 +8738,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8035,8 +8763,8 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but /// you will get validation events back. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// an instance that will receive events. /// @@ -8047,16 +8775,19 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(operationId),operationId); } } /// Gets a Recovery Point using recoveryPointId for a Datasource. - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// The name of the backup instance + /// The name of the backup instance. /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -8066,9 +8797,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task RecoveryPointsGet(string subscriptionId, string resourceGroupName, string vaultName, 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 RecoveryPointsGet(string subscriptionId, string resourceGroupName, string vaultName, 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8111,9 +8842,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task RecoveryPointsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, 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 RecoveryPointsGetViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8170,7 +8901,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task RecoveryPointsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, 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 RecoveryPointsGet_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 ) { @@ -8188,13 +8919,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8213,10 +8944,10 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// The name of the backup instance + /// The name of the backup instance. /// /// an instance that will receive events. /// @@ -8227,7 +8958,10 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); await eventListener.AssertNotNull(nameof(recoveryPointId),recoveryPointId); @@ -8235,10 +8969,10 @@ public partial class DataProtection } /// Returns a list of Recovery Points for a DataSource in a vault. - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// The name of the backup instance + /// The name of the backup instance. /// OData filter options. /// skipToken Filter. /// a delegate that is called when the remote service returns 200 (OK). @@ -8249,9 +8983,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task RecoveryPointsList(string subscriptionId, string resourceGroupName, string vaultName, 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 RecoveryPointsList(string subscriptionId, string resourceGroupName, string vaultName, 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8299,9 +9033,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task RecoveryPointsListViaIdentity(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 RecoveryPointsListViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8360,7 +9094,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task RecoveryPointsList_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 RecoveryPointsList_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 ) { @@ -8378,13 +9112,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8403,10 +9137,10 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// The name of the backup instance + /// The name of the backup instance. /// OData filter options. /// skipToken Filter. /// an instance that will receive events. @@ -8418,7 +9152,10 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); await eventListener.AssertNotNull(nameof(Filter),Filter); @@ -8427,8 +9164,8 @@ public partial class DataProtection } /// Deletes a ResourceGuard resource from the resource group. - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// The name of ResourceGuard /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). @@ -8439,9 +9176,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsDelete(string resourceGroupName, string subscriptionId, string resourceGuardsName, 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 ResourceGuardsDelete(string resourceGroupName, string subscriptionId, string resourceGuardsName, 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8481,9 +9218,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsDeleteViaIdentity(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 ResourceGuardsDeleteViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8535,7 +9272,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ResourceGuardsDelete_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 ResourceGuardsDelete_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 ) { @@ -8565,7 +9302,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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8584,8 +9321,8 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// The name of ResourceGuard /// an instance that will receive events. /// @@ -8596,14 +9333,17 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGuardsName),resourceGuardsName); } } /// Returns a ResourceGuard belonging to a resource group. - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// The name of ResourceGuard /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -8613,9 +9353,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGet(string resourceGroupName, string subscriptionId, string resourceGuardsName, 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 ResourceGuardsGet(string resourceGroupName, string subscriptionId, string resourceGuardsName, 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8647,8 +9387,8 @@ public partial class DataProtection /// /// Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -8658,9 +9398,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetBackupSecurityPinRequestsObjects(string resourceGroupName, string subscriptionId, string resourceGuardsName, 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 ResourceGuardsGetBackupSecurityPinRequestsObjects(string resourceGroupName, string subscriptionId, string resourceGuardsName, 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8702,9 +9442,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetBackupSecurityPinRequestsObjectsViaIdentity(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 ResourceGuardsGetBackupSecurityPinRequestsObjectsViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8758,7 +9498,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ResourceGuardsGetBackupSecurityPinRequestsObjects_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 ResourceGuardsGetBackupSecurityPinRequestsObjects_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 ) { @@ -8776,13 +9516,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.Api20220501.DppBaseResourceList.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.Api20221201.DppBaseResourceList.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8801,8 +9541,8 @@ public partial class DataProtection /// Validation method for method. Call this like the actual /// call, but you will get validation events back. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// an instance that will receive events. /// @@ -8813,7 +9553,10 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGuardsName),resourceGuardsName); } } @@ -8821,8 +9564,8 @@ public partial class DataProtection /// /// Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// /// a delegate that is called when the remote service returns 200 (OK). @@ -8833,9 +9576,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetDefaultBackupSecurityPinRequestsObject(string resourceGroupName, string subscriptionId, string resourceGuardsName, string requestName, 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 ResourceGuardsGetDefaultBackupSecurityPinRequestsObject(string resourceGroupName, string subscriptionId, string resourceGuardsName, string requestName, 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8878,9 +9621,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetDefaultBackupSecurityPinRequestsObjectViaIdentity(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 ResourceGuardsGetDefaultBackupSecurityPinRequestsObjectViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8936,7 +9679,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ResourceGuardsGetDefaultBackupSecurityPinRequestsObject_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 ResourceGuardsGetDefaultBackupSecurityPinRequestsObject_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 ) { @@ -8954,13 +9697,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.Api20220501.DppBaseResource.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.Api20221201.DppBaseResource.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8979,8 +9722,8 @@ public partial class DataProtection /// Validation method for method. Call this like the /// actual call, but you will get validation events back. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// /// an instance that will receive events. @@ -8992,7 +9735,10 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGuardsName),resourceGuardsName); await eventListener.AssertNotNull(nameof(requestName),requestName); } @@ -9001,8 +9747,8 @@ public partial class DataProtection /// /// Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// /// a delegate that is called when the remote service returns 200 (OK). @@ -9013,9 +9759,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetDefaultDeleteProtectedItemRequestsObject(string resourceGroupName, string subscriptionId, string resourceGuardsName, string requestName, 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 ResourceGuardsGetDefaultDeleteProtectedItemRequestsObject(string resourceGroupName, string subscriptionId, string resourceGuardsName, string requestName, 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9058,9 +9804,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectViaIdentity(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 ResourceGuardsGetDefaultDeleteProtectedItemRequestsObjectViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9116,7 +9862,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ResourceGuardsGetDefaultDeleteProtectedItemRequestsObject_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 ResourceGuardsGetDefaultDeleteProtectedItemRequestsObject_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 ) { @@ -9134,13 +9880,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.Api20220501.DppBaseResource.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.Api20221201.DppBaseResource.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -9159,8 +9905,8 @@ public partial class DataProtection /// Validation method for method. Call this like /// the actual call, but you will get validation events back. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// /// an instance that will receive events. @@ -9172,7 +9918,10 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGuardsName),resourceGuardsName); await eventListener.AssertNotNull(nameof(requestName),requestName); } @@ -9181,8 +9930,8 @@ public partial class DataProtection /// /// Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// /// a delegate that is called when the remote service returns 200 (OK). @@ -9193,9 +9942,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObject(string resourceGroupName, string subscriptionId, string resourceGuardsName, string requestName, 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 ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObject(string resourceGroupName, string subscriptionId, string resourceGuardsName, string requestName, 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9238,9 +9987,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectViaIdentity(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 ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9296,7 +10045,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObject_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 ResourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObject_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 ) { @@ -9314,13 +10063,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.Api20220501.DppBaseResource.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.Api20221201.DppBaseResource.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -9339,8 +10088,8 @@ public partial class DataProtection /// Validation method for method. Call this /// like the actual call, but you will get validation events back. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// /// an instance that will receive events. @@ -9352,7 +10101,10 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGuardsName),resourceGuardsName); await eventListener.AssertNotNull(nameof(requestName),requestName); } @@ -9361,8 +10113,8 @@ public partial class DataProtection /// /// Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// /// a delegate that is called when the remote service returns 200 (OK). @@ -9373,9 +10125,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetDefaultDisableSoftDeleteRequestsObject(string resourceGroupName, string subscriptionId, string resourceGuardsName, string requestName, 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 ResourceGuardsGetDefaultDisableSoftDeleteRequestsObject(string resourceGroupName, string subscriptionId, string resourceGuardsName, string requestName, 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9418,9 +10170,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectViaIdentity(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 ResourceGuardsGetDefaultDisableSoftDeleteRequestsObjectViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9476,7 +10228,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ResourceGuardsGetDefaultDisableSoftDeleteRequestsObject_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 ResourceGuardsGetDefaultDisableSoftDeleteRequestsObject_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 ) { @@ -9494,13 +10246,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.Api20220501.DppBaseResource.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.Api20221201.DppBaseResource.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -9519,8 +10271,8 @@ public partial class DataProtection /// Validation method for method. Call this like the /// actual call, but you will get validation events back. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// /// an instance that will receive events. @@ -9532,7 +10284,10 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGuardsName),resourceGuardsName); await eventListener.AssertNotNull(nameof(requestName),requestName); } @@ -9541,8 +10296,8 @@ public partial class DataProtection /// /// Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// /// a delegate that is called when the remote service returns 200 (OK). @@ -9553,9 +10308,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetDefaultUpdateProtectedItemRequestsObject(string resourceGroupName, string subscriptionId, string resourceGuardsName, string requestName, 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 ResourceGuardsGetDefaultUpdateProtectedItemRequestsObject(string resourceGroupName, string subscriptionId, string resourceGuardsName, string requestName, 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9598,9 +10353,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectViaIdentity(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 ResourceGuardsGetDefaultUpdateProtectedItemRequestsObjectViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9656,7 +10411,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ResourceGuardsGetDefaultUpdateProtectedItemRequestsObject_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 ResourceGuardsGetDefaultUpdateProtectedItemRequestsObject_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 ) { @@ -9674,13 +10429,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.Api20220501.DppBaseResource.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.Api20221201.DppBaseResource.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -9699,8 +10454,8 @@ public partial class DataProtection /// Validation method for method. Call this like /// the actual call, but you will get validation events back. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// /// an instance that will receive events. @@ -9712,7 +10467,10 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGuardsName),resourceGuardsName); await eventListener.AssertNotNull(nameof(requestName),requestName); } @@ -9721,8 +10479,8 @@ public partial class DataProtection /// /// Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// /// a delegate that is called when the remote service returns 200 (OK). @@ -9733,9 +10491,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObject(string resourceGroupName, string subscriptionId, string resourceGuardsName, string requestName, 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 ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObject(string resourceGroupName, string subscriptionId, string resourceGuardsName, string requestName, 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9778,9 +10536,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectViaIdentity(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 ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9836,7 +10594,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObject_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 ResourceGuardsGetDefaultUpdateProtectionPolicyRequestsObject_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 ) { @@ -9854,13 +10612,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.Api20220501.DppBaseResource.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.Api20221201.DppBaseResource.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -9879,8 +10637,8 @@ public partial class DataProtection /// Validation method for method. Call this like /// the actual call, but you will get validation events back. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// /// an instance that will receive events. @@ -9892,7 +10650,10 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGuardsName),resourceGuardsName); await eventListener.AssertNotNull(nameof(requestName),requestName); } @@ -9901,8 +10662,8 @@ public partial class DataProtection /// /// Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -9912,9 +10673,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetDeleteProtectedItemRequestsObjects(string resourceGroupName, string subscriptionId, string resourceGuardsName, 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 ResourceGuardsGetDeleteProtectedItemRequestsObjects(string resourceGroupName, string subscriptionId, string resourceGuardsName, 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -9956,9 +10717,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetDeleteProtectedItemRequestsObjectsViaIdentity(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 ResourceGuardsGetDeleteProtectedItemRequestsObjectsViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10012,7 +10773,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ResourceGuardsGetDeleteProtectedItemRequestsObjects_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 ResourceGuardsGetDeleteProtectedItemRequestsObjects_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 ) { @@ -10030,13 +10791,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.Api20220501.DppBaseResourceList.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.Api20221201.DppBaseResourceList.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -10055,8 +10816,8 @@ public partial class DataProtection /// Validation method for method. Call this like the actual /// call, but you will get validation events back. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// an instance that will receive events. /// @@ -10067,7 +10828,10 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGuardsName),resourceGuardsName); } } @@ -10075,8 +10839,8 @@ public partial class DataProtection /// /// Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -10086,9 +10850,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetDeleteResourceGuardProxyRequestsObjects(string resourceGroupName, string subscriptionId, string resourceGuardsName, 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 ResourceGuardsGetDeleteResourceGuardProxyRequestsObjects(string resourceGroupName, string subscriptionId, string resourceGuardsName, 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10130,9 +10894,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsViaIdentity(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 ResourceGuardsGetDeleteResourceGuardProxyRequestsObjectsViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10186,7 +10950,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ResourceGuardsGetDeleteResourceGuardProxyRequestsObjects_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 ResourceGuardsGetDeleteResourceGuardProxyRequestsObjects_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 ) { @@ -10204,13 +10968,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.Api20220501.DppBaseResourceList.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.Api20221201.DppBaseResourceList.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -10229,8 +10993,8 @@ public partial class DataProtection /// Validation method for method. Call this like the /// actual call, but you will get validation events back. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// an instance that will receive events. /// @@ -10241,7 +11005,10 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGuardsName),resourceGuardsName); } } @@ -10249,8 +11016,8 @@ public partial class DataProtection /// /// Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -10260,9 +11027,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetDisableSoftDeleteRequestsObjects(string resourceGroupName, string subscriptionId, string resourceGuardsName, 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 ResourceGuardsGetDisableSoftDeleteRequestsObjects(string resourceGroupName, string subscriptionId, string resourceGuardsName, 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10304,9 +11071,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetDisableSoftDeleteRequestsObjectsViaIdentity(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 ResourceGuardsGetDisableSoftDeleteRequestsObjectsViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10360,7 +11127,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ResourceGuardsGetDisableSoftDeleteRequestsObjects_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 ResourceGuardsGetDisableSoftDeleteRequestsObjects_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 ) { @@ -10378,13 +11145,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.Api20220501.DppBaseResourceList.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.Api20221201.DppBaseResourceList.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -10403,8 +11170,8 @@ public partial class DataProtection /// Validation method for method. Call this like the actual /// call, but you will get validation events back. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// an instance that will receive events. /// @@ -10415,14 +11182,17 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGuardsName),resourceGuardsName); } } /// Returns ResourceGuards collection belonging to a ResourceGroup. - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -10431,9 +11201,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetResourcesInResourceGroup(string subscriptionId, string resourceGroupName, 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 ResourceGuardsGetResourcesInResourceGroup(string subscriptionId, string resourceGroupName, 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10471,9 +11241,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetResourcesInResourceGroupViaIdentity(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 ResourceGuardsGetResourcesInResourceGroupViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10524,7 +11294,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ResourceGuardsGetResourcesInResourceGroup_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 ResourceGuardsGetResourcesInResourceGroup_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 ) { @@ -10542,13 +11312,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.Api20220501.ResourceGuardResourceList.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.Api20221201.ResourceGuardResourceList.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -10567,8 +11337,8 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, /// but you will get validation events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -10578,12 +11348,15 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); } } /// Returns ResourceGuards collection belonging to a subscription. - /// The subscription Id. + /// The ID of the target subscription. The value must be an UUID. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -10592,9 +11365,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetResourcesInSubscription(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 ResourceGuardsGetResourcesInSubscription(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10630,9 +11403,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetResourcesInSubscriptionViaIdentity(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 ResourceGuardsGetResourcesInSubscriptionViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10680,7 +11453,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ResourceGuardsGetResourcesInSubscription_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 ResourceGuardsGetResourcesInSubscription_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 ) { @@ -10698,13 +11471,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.Api20220501.ResourceGuardResourceList.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.Api20221201.ResourceGuardResourceList.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -10723,7 +11496,7 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, /// but you will get validation events back. /// - /// The subscription Id. + /// The ID of the target subscription. The value must be an UUID. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. @@ -10733,14 +11506,15 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); } } /// /// Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -10750,9 +11524,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetUpdateProtectedItemRequestsObjects(string resourceGroupName, string subscriptionId, string resourceGuardsName, 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 ResourceGuardsGetUpdateProtectedItemRequestsObjects(string resourceGroupName, string subscriptionId, string resourceGuardsName, 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10794,9 +11568,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetUpdateProtectedItemRequestsObjectsViaIdentity(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 ResourceGuardsGetUpdateProtectedItemRequestsObjectsViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10850,7 +11624,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ResourceGuardsGetUpdateProtectedItemRequestsObjects_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 ResourceGuardsGetUpdateProtectedItemRequestsObjects_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 ) { @@ -10868,13 +11642,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.Api20220501.DppBaseResourceList.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.Api20221201.DppBaseResourceList.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -10893,8 +11667,8 @@ public partial class DataProtection /// Validation method for method. Call this like the actual /// call, but you will get validation events back. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// an instance that will receive events. /// @@ -10905,7 +11679,10 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGuardsName),resourceGuardsName); } } @@ -10913,8 +11690,8 @@ public partial class DataProtection /// /// Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -10924,9 +11701,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetUpdateProtectionPolicyRequestsObjects(string resourceGroupName, string subscriptionId, string resourceGuardsName, 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 ResourceGuardsGetUpdateProtectionPolicyRequestsObjects(string resourceGroupName, string subscriptionId, string resourceGuardsName, 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -10968,9 +11745,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsViaIdentity(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 ResourceGuardsGetUpdateProtectionPolicyRequestsObjectsViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11024,7 +11801,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ResourceGuardsGetUpdateProtectionPolicyRequestsObjects_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 ResourceGuardsGetUpdateProtectionPolicyRequestsObjects_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 ) { @@ -11042,13 +11819,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.Api20220501.DppBaseResourceList.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.Api20221201.DppBaseResourceList.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -11067,8 +11844,8 @@ public partial class DataProtection /// Validation method for method. Call this like the /// actual call, but you will get validation events back. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// /// an instance that will receive events. /// @@ -11079,7 +11856,10 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGuardsName),resourceGuardsName); } } @@ -11094,9 +11874,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsGetViaIdentity(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 ResourceGuardsGetViaIdentity(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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11147,7 +11927,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ResourceGuardsGet_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 ResourceGuardsGet_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 ) { @@ -11165,13 +11945,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.Api20220501.ResourceGuardResource.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.Api20221201.ResourceGuardResource.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -11190,8 +11970,8 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// The name of ResourceGuard /// an instance that will receive events. /// @@ -11202,7 +11982,10 @@ public partial class DataProtection using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGuardsName),resourceGuardsName); } } @@ -11210,8 +11993,8 @@ public partial class DataProtection /// /// Updates a ResourceGuard resource belonging to a resource group. For example, updating tags for a resource. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// The name of ResourceGuard /// Request body for operation /// a delegate that is called when the remote service returns 200 (OK). @@ -11222,9 +12005,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsPatch(string resourceGroupName, string subscriptionId, string resourceGuardsName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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 ResourceGuardsPatch(string resourceGroupName, string subscriptionId, string resourceGuardsName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInput 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11270,9 +12053,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsPatchViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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 ResourceGuardsPatchViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInput 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11327,7 +12110,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ResourceGuardsPatch_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 ResourceGuardsPatch_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 ) { @@ -11345,13 +12128,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.Api20220501.ResourceGuardResource.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.Api20221201.ResourceGuardResource.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -11370,20 +12153,23 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// The name of ResourceGuard /// Request body for operation /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ResourceGuardsPatch_Validate(string resourceGroupName, string subscriptionId, string resourceGuardsName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInput body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ResourceGuardsPatch_Validate(string resourceGroupName, string subscriptionId, string resourceGuardsName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInput body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGuardsName),resourceGuardsName); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -11391,8 +12177,8 @@ public partial class DataProtection } /// Creates or updates a ResourceGuard resource belonging to a resource group. - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// The name of ResourceGuard /// Request body for operation /// a delegate that is called when the remote service returns 200 (OK). @@ -11403,9 +12189,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsPut(string resourceGroupName, string subscriptionId, string resourceGuardsName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource 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 ResourceGuardsPut(string resourceGroupName, string subscriptionId, string resourceGuardsName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11449,9 +12235,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ResourceGuardsPutViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource 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 ResourceGuardsPutViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource 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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11506,7 +12292,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ResourceGuardsPut_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 ResourceGuardsPut_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 ) { @@ -11524,13 +12310,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.Api20220501.ResourceGuardResource.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.Api20221201.ResourceGuardResource.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -11549,20 +12335,23 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The name of the resource group where the backup vault is present. - /// The subscription Id. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. The value must be an UUID. /// The name of ResourceGuard /// Request body for operation /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ResourceGuardsPut_Validate(string resourceGroupName, string subscriptionId, string resourceGuardsName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ResourceGuardsPut_Validate(string resourceGroupName, string subscriptionId, string resourceGuardsName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGuardsName),resourceGuardsName); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -11570,10 +12359,10 @@ public partial class DataProtection } /// Finds the valid recovery point in time ranges for the restore. - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// The name of the backup instance + /// The name of the backup instance. /// Request body for operation /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -11583,9 +12372,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task RestorableTimeRangesFind(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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 RestorableTimeRangesFind(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11632,9 +12421,9 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task RestorableTimeRangesFindViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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 RestorableTimeRangesFindViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 = @"2022-05-01"; + var apiVersion = @"2022-12-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -11693,7 +12482,7 @@ public partial class DataProtection /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task RestorableTimeRangesFind_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 RestorableTimeRangesFind_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 ) { @@ -11711,13 +12500,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.Api20220501.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.Api20221201.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.Api20220501.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.Api20221201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -11736,21 +12525,24 @@ public partial class DataProtection /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The subscription Id. - /// The name of the resource group where the backup vault is present. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. /// The name of the backup vault. - /// The name of the backup instance + /// The name of the backup instance. /// Request body for operation /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task RestorableTimeRangesFind_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task RestorableTimeRangesFind_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(vaultName),vaultName); await eventListener.AssertNotNull(nameof(backupInstanceName),backupInstanceName); await eventListener.AssertNotNull(nameof(body), body); diff --git a/src/DataProtection/generated/api/Models/Api20220501/BackupVault.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220501/BackupVault.PowerShell.cs deleted file mode 100644 index 1049ddf3f715..000000000000 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupVault.PowerShell.cs +++ /dev/null @@ -1,232 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; - - /// Backup Vault - [System.ComponentModel.TypeConverter(typeof(BackupVaultTypeConverter))] - public partial class BackupVault - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should 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 BackupVault(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("MonitoringSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).MonitoringSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettings) content.GetValueForProperty("MonitoringSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).MonitoringSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.MonitoringSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("ResourceMoveDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetails) content.GetValueForProperty("ResourceMoveDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceMoveDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("ResourceMoveState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState?) content.GetValueForProperty("ResourceMoveState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState.CreateFrom); - } - if (content.Contains("StorageSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).StorageSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSetting[]) content.GetValueForProperty("StorageSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).StorageSetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.StorageSettingTypeConverter.ConvertFrom)); - } - if (content.Contains("ResourceMoveDetailOperationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveDetailOperationId = (string) content.GetValueForProperty("ResourceMoveDetailOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveDetailOperationId, global::System.Convert.ToString); - } - if (content.Contains("MonitoringSettingAzureMonitorAlertSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).MonitoringSettingAzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings) content.GetValueForProperty("MonitoringSettingAzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).MonitoringSettingAzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("ResourceMoveDetailStartTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveDetailStartTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailStartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveDetailStartTimeUtc, global::System.Convert.ToString); - } - if (content.Contains("ResourceMoveDetailCompletionTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveDetailCompletionTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailCompletionTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveDetailCompletionTimeUtc, global::System.Convert.ToString); - } - if (content.Contains("ResourceMoveDetailSourceResourcePath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveDetailSourceResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailSourceResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveDetailSourceResourcePath, global::System.Convert.ToString); - } - if (content.Contains("ResourceMoveDetailTargetResourcePath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveDetailTargetResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailTargetResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveDetailTargetResourcePath, global::System.Convert.ToString); - } - if (content.Contains("AzureMonitorAlertsForAllJobFailure")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).AzureMonitorAlertsForAllJobFailure, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal BackupVault(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("MonitoringSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).MonitoringSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettings) content.GetValueForProperty("MonitoringSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).MonitoringSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.MonitoringSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("ResourceMoveDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetails) content.GetValueForProperty("ResourceMoveDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceMoveDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("ResourceMoveState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState?) content.GetValueForProperty("ResourceMoveState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState.CreateFrom); - } - if (content.Contains("StorageSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).StorageSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSetting[]) content.GetValueForProperty("StorageSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).StorageSetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.StorageSettingTypeConverter.ConvertFrom)); - } - if (content.Contains("ResourceMoveDetailOperationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveDetailOperationId = (string) content.GetValueForProperty("ResourceMoveDetailOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveDetailOperationId, global::System.Convert.ToString); - } - if (content.Contains("MonitoringSettingAzureMonitorAlertSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).MonitoringSettingAzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings) content.GetValueForProperty("MonitoringSettingAzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).MonitoringSettingAzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("ResourceMoveDetailStartTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveDetailStartTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailStartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveDetailStartTimeUtc, global::System.Convert.ToString); - } - if (content.Contains("ResourceMoveDetailCompletionTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveDetailCompletionTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailCompletionTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveDetailCompletionTimeUtc, global::System.Convert.ToString); - } - if (content.Contains("ResourceMoveDetailSourceResourcePath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveDetailSourceResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailSourceResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveDetailSourceResourcePath, global::System.Convert.ToString); - } - if (content.Contains("ResourceMoveDetailTargetResourcePath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveDetailTargetResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailTargetResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).ResourceMoveDetailTargetResourcePath, global::System.Convert.ToString); - } - if (content.Contains("AzureMonitorAlertsForAllJobFailure")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)this).AzureMonitorAlertsForAllJobFailure, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState.CreateFrom); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVault DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new BackupVault(content); - } - - /// - /// Deserializes a 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.Api20220501.IBackupVault DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new BackupVault(content); - } - - /// - /// Creates a new instance of , deserializing the content from a 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.Api20220501.IBackupVault 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 - [System.ComponentModel.TypeConverter(typeof(BackupVaultTypeConverter))] - public partial interface IBackupVault - - { - - } -} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/BackupVault.cs b/src/DataProtection/generated/api/Models/Api20220501/BackupVault.cs deleted file mode 100644 index 6b5a3f9d7de7..000000000000 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupVault.cs +++ /dev/null @@ -1,207 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by 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.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; - - /// Backup Vault - public partial class BackupVault : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVault, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal - { - - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettingsInternal)MonitoringSetting).AzureMonitorAlertsForAllJobFailure; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettingsInternal)MonitoringSetting).AzureMonitorAlertsForAllJobFailure = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState)""); } - - /// Internal Acessors for MonitoringSetting - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal.MonitoringSetting { get => (this._monitoringSetting = this._monitoringSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.MonitoringSettings()); set { {_monitoringSetting = value;} } } - - /// Internal Acessors for MonitoringSettingAzureMonitorAlertSetting - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal.MonitoringSettingAzureMonitorAlertSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettingsInternal)MonitoringSetting).AzureMonitorAlertSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettingsInternal)MonitoringSetting).AzureMonitorAlertSetting = value; } - - /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } - - /// Internal Acessors for ResourceMoveDetail - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal.ResourceMoveDetail { get => (this._resourceMoveDetail = this._resourceMoveDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceMoveDetails()); set { {_resourceMoveDetail = value;} } } - - /// Internal Acessors for ResourceMoveState - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal.ResourceMoveState { get => this._resourceMoveState; set { {_resourceMoveState = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettings _monitoringSetting; - - /// Monitoring Settings - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettings MonitoringSetting { get => (this._monitoringSetting = this._monitoringSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.MonitoringSettings()); set => this._monitoringSetting = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? _provisioningState; - - /// Provisioning state of the BackupVault resource - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetails _resourceMoveDetail; - - /// Resource move details for backup vault - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetails ResourceMoveDetail { get => (this._resourceMoveDetail = this._resourceMoveDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceMoveDetails()); } - - /// - /// Completion time in UTC of latest ResourceMove operation attempted. ISO 8601 format. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string ResourceMoveDetailCompletionTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)ResourceMoveDetail).CompletionTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)ResourceMoveDetail).CompletionTimeUtc = value ?? null; } - - /// CorrelationId of latest ResourceMove operation attempted - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string ResourceMoveDetailOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)ResourceMoveDetail).OperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)ResourceMoveDetail).OperationId = value ?? null; } - - /// ARM resource path of source resource - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string ResourceMoveDetailSourceResourcePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)ResourceMoveDetail).SourceResourcePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)ResourceMoveDetail).SourceResourcePath = value ?? null; } - - /// Start time in UTC of latest ResourceMove operation attempted. ISO 8601 format. - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string ResourceMoveDetailStartTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)ResourceMoveDetail).StartTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)ResourceMoveDetail).StartTimeUtc = value ?? null; } - - /// ARM resource path of target resource used in latest ResourceMove operation - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string ResourceMoveDetailTargetResourcePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)ResourceMoveDetail).TargetResourcePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)ResourceMoveDetail).TargetResourcePath = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState? _resourceMoveState; - - /// Resource move state for backup vault - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState? ResourceMoveState { get => this._resourceMoveState; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSetting[] _storageSetting; - - /// Storage Settings - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSetting[] StorageSetting { get => this._storageSetting; set => this._storageSetting = value; } - - /// Creates an new instance. - public BackupVault() - { - - } - } - /// Backup Vault - public partial interface IBackupVault : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable - { - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"", - SerializedName = @"alertsForAllJobFailures", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { get; set; } - /// Provisioning state of the BackupVault resource - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Provisioning state of the BackupVault resource", - SerializedName = @"provisioningState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? ProvisioningState { get; } - /// - /// Completion time in UTC of latest ResourceMove operation attempted. ISO 8601 format. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Completion time in UTC of latest ResourceMove operation attempted. ISO 8601 format.", - SerializedName = @"completionTimeUtc", - PossibleTypes = new [] { typeof(string) })] - string ResourceMoveDetailCompletionTimeUtc { get; set; } - /// CorrelationId of latest ResourceMove operation attempted - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"CorrelationId of latest ResourceMove operation attempted", - SerializedName = @"operationId", - PossibleTypes = new [] { typeof(string) })] - string ResourceMoveDetailOperationId { get; set; } - /// ARM resource path of source resource - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"ARM resource path of source resource", - SerializedName = @"sourceResourcePath", - PossibleTypes = new [] { typeof(string) })] - string ResourceMoveDetailSourceResourcePath { get; set; } - /// Start time in UTC of latest ResourceMove operation attempted. ISO 8601 format. - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Start time in UTC of latest ResourceMove operation attempted. ISO 8601 format.", - SerializedName = @"startTimeUtc", - PossibleTypes = new [] { typeof(string) })] - string ResourceMoveDetailStartTimeUtc { get; set; } - /// ARM resource path of target resource used in latest ResourceMove operation - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"ARM resource path of target resource used in latest ResourceMove operation", - SerializedName = @"targetResourcePath", - PossibleTypes = new [] { typeof(string) })] - string ResourceMoveDetailTargetResourcePath { get; set; } - /// Resource move state for backup vault - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Resource move state for backup vault", - SerializedName = @"resourceMoveState", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState? ResourceMoveState { get; } - /// Storage Settings - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"Storage Settings", - SerializedName = @"storageSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSetting) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSetting[] StorageSetting { get; set; } - - } - /// Backup Vault - internal partial interface IBackupVaultInternal - - { - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { get; set; } - /// Monitoring Settings - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettings MonitoringSetting { get; set; } - /// Settings for Azure Monitor based alerts - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings MonitoringSettingAzureMonitorAlertSetting { get; set; } - /// Provisioning state of the BackupVault resource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? ProvisioningState { get; set; } - /// Resource move details for backup vault - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetails ResourceMoveDetail { get; set; } - /// - /// Completion time in UTC of latest ResourceMove operation attempted. ISO 8601 format. - /// - string ResourceMoveDetailCompletionTimeUtc { get; set; } - /// CorrelationId of latest ResourceMove operation attempted - string ResourceMoveDetailOperationId { get; set; } - /// ARM resource path of source resource - string ResourceMoveDetailSourceResourcePath { get; set; } - /// Start time in UTC of latest ResourceMove operation attempted. ISO 8601 format. - string ResourceMoveDetailStartTimeUtc { get; set; } - /// ARM resource path of target resource used in latest ResourceMove operation - string ResourceMoveDetailTargetResourcePath { get; set; } - /// Resource move state for backup vault - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState? ResourceMoveState { get; set; } - /// Storage Settings - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSetting[] StorageSetting { get; set; } - - } -} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/BackupVaultResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220501/BackupVaultResource.PowerShell.cs deleted file mode 100644 index 234dd64376d1..000000000000 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupVaultResource.PowerShell.cs +++ /dev/null @@ -1,328 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 -{ - 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 - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVault) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupVaultTypeConverter.ConvertFrom); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); - } - if (content.Contains("Identity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppIdentityDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ETag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppTrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("SystemData")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("MonitoringSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).MonitoringSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettings) content.GetValueForProperty("MonitoringSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).MonitoringSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.MonitoringSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("ResourceMoveDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetails) content.GetValueForProperty("ResourceMoveDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceMoveDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ResourceMoveState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState?) content.GetValueForProperty("ResourceMoveState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState.CreateFrom); - } - if (content.Contains("StorageSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).StorageSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSetting[]) content.GetValueForProperty("StorageSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).StorageSetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.StorageSettingTypeConverter.ConvertFrom)); - } - if (content.Contains("ResourceMoveDetailOperationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveDetailOperationId = (string) content.GetValueForProperty("ResourceMoveDetailOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveDetailOperationId, global::System.Convert.ToString); - } - if (content.Contains("MonitoringSettingAzureMonitorAlertSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).MonitoringSettingAzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings) content.GetValueForProperty("MonitoringSettingAzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).MonitoringSettingAzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("ResourceMoveDetailStartTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveDetailStartTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailStartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveDetailStartTimeUtc, global::System.Convert.ToString); - } - if (content.Contains("ResourceMoveDetailCompletionTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveDetailCompletionTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailCompletionTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveDetailCompletionTimeUtc, global::System.Convert.ToString); - } - if (content.Contains("ResourceMoveDetailSourceResourcePath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveDetailSourceResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailSourceResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveDetailSourceResourcePath, global::System.Convert.ToString); - } - if (content.Contains("ResourceMoveDetailTargetResourcePath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveDetailTargetResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailTargetResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveDetailTargetResourcePath, global::System.Convert.ToString); - } - if (content.Contains("AzureMonitorAlertsForAllJobFailure")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).AzureMonitorAlertsForAllJobFailure, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState.CreateFrom); - } - 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 - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVault) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupVaultTypeConverter.ConvertFrom); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); - } - if (content.Contains("Identity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppIdentityDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ETag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppTrackedResourceTagsTypeConverter.ConvertFrom); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("SystemData")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemDataTypeConverter.ConvertFrom); - } - if (content.Contains("MonitoringSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).MonitoringSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettings) content.GetValueForProperty("MonitoringSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).MonitoringSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.MonitoringSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("ResourceMoveDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetails) content.GetValueForProperty("ResourceMoveDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceMoveDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("ResourceMoveState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState?) content.GetValueForProperty("ResourceMoveState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState.CreateFrom); - } - if (content.Contains("StorageSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).StorageSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSetting[]) content.GetValueForProperty("StorageSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).StorageSetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.StorageSettingTypeConverter.ConvertFrom)); - } - if (content.Contains("ResourceMoveDetailOperationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveDetailOperationId = (string) content.GetValueForProperty("ResourceMoveDetailOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveDetailOperationId, global::System.Convert.ToString); - } - if (content.Contains("MonitoringSettingAzureMonitorAlertSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).MonitoringSettingAzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings) content.GetValueForProperty("MonitoringSettingAzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).MonitoringSettingAzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("ResourceMoveDetailStartTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveDetailStartTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailStartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveDetailStartTimeUtc, global::System.Convert.ToString); - } - if (content.Contains("ResourceMoveDetailCompletionTimeUtc")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveDetailCompletionTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailCompletionTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveDetailCompletionTimeUtc, global::System.Convert.ToString); - } - if (content.Contains("ResourceMoveDetailSourceResourcePath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveDetailSourceResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailSourceResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveDetailSourceResourcePath, global::System.Convert.ToString); - } - if (content.Contains("ResourceMoveDetailTargetResourcePath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveDetailTargetResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailTargetResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).ResourceMoveDetailTargetResourcePath, global::System.Convert.ToString); - } - if (content.Contains("AzureMonitorAlertsForAllJobFailure")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal)this).AzureMonitorAlertsForAllJobFailure, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState.CreateFrom); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20220501.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.Api20220501.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/Api20220501/PatchBackupVaultInput.cs b/src/DataProtection/generated/api/Models/Api20220501/PatchBackupVaultInput.cs deleted file mode 100644 index c4a28faa715f..000000000000 --- a/src/DataProtection/generated/api/Models/Api20220501/PatchBackupVaultInput.cs +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; - - /// Backup Vault Contract for Patch Backup Vault API. - public partial class PatchBackupVaultInput : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInput, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInputInternal - { - - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettingsInternal)MonitoringSetting).AzureMonitorAlertsForAllJobFailure; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettingsInternal)MonitoringSetting).AzureMonitorAlertsForAllJobFailure = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState)""); } - - /// Internal Acessors for MonitoringSetting - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInputInternal.MonitoringSetting { get => (this._monitoringSetting = this._monitoringSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.MonitoringSettings()); set { {_monitoringSetting = value;} } } - - /// Internal Acessors for MonitoringSettingAzureMonitorAlertSetting - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInputInternal.MonitoringSettingAzureMonitorAlertSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettingsInternal)MonitoringSetting).AzureMonitorAlertSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettingsInternal)MonitoringSetting).AzureMonitorAlertSetting = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettings _monitoringSetting; - - /// Monitoring Settings - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettings MonitoringSetting { get => (this._monitoringSetting = this._monitoringSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.MonitoringSettings()); set => this._monitoringSetting = value; } - - /// Creates an new instance. - public PatchBackupVaultInput() - { - - } - } - /// Backup Vault Contract for Patch Backup Vault API. - public partial interface IPatchBackupVaultInput : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable - { - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"", - SerializedName = @"alertsForAllJobFailures", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { get; set; } - - } - /// Backup Vault Contract for Patch Backup Vault API. - internal partial interface IPatchBackupVaultInputInternal - - { - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { get; set; } - /// Monitoring Settings - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettings MonitoringSetting { get; set; } - /// Settings for Azure Monitor based alerts - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings MonitoringSettingAzureMonitorAlertSetting { get; set; } - - } -} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInput.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInput.PowerShell.cs deleted file mode 100644 index 5793f2f3c1df..000000000000 --- a/src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInput.PowerShell.cs +++ /dev/null @@ -1,210 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; - - /// Patch Request content for Microsoft.DataProtection resources - [System.ComponentModel.TypeConverter(typeof(PatchResourceRequestInputTypeConverter))] - public partial class PatchResourceRequestInput - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes 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.Api20220501.IPatchResourceRequestInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new PatchResourceRequestInput(content); - } - - /// - /// Deserializes a 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.Api20220501.IPatchResourceRequestInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new PatchResourceRequestInput(content); - } - - /// - /// Creates a new instance of , deserializing the content from a 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.Api20220501.IPatchResourceRequestInput 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 PatchResourceRequestInput(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Identity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppIdentityDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInput) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.PatchBackupVaultInputTypeConverter.ConvertFrom); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.PatchResourceRequestInputTagsTypeConverter.ConvertFrom); - } - if (content.Contains("MonitoringSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).MonitoringSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettings) content.GetValueForProperty("MonitoringSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).MonitoringSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.MonitoringSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).IdentityType, global::System.Convert.ToString); - } - if (content.Contains("MonitoringSettingAzureMonitorAlertSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).MonitoringSettingAzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings) content.GetValueForProperty("MonitoringSettingAzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).MonitoringSettingAzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("AzureMonitorAlertsForAllJobFailure")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).AzureMonitorAlertsForAllJobFailure, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState.CreateFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal PatchResourceRequestInput(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Identity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppIdentityDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInput) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.PatchBackupVaultInputTypeConverter.ConvertFrom); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.PatchResourceRequestInputTagsTypeConverter.ConvertFrom); - } - if (content.Contains("MonitoringSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).MonitoringSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettings) content.GetValueForProperty("MonitoringSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).MonitoringSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.MonitoringSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).IdentityType, global::System.Convert.ToString); - } - if (content.Contains("MonitoringSettingAzureMonitorAlertSetting")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).MonitoringSettingAzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings) content.GetValueForProperty("MonitoringSettingAzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).MonitoringSettingAzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); - } - if (content.Contains("AzureMonitorAlertsForAllJobFailure")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal)this).AzureMonitorAlertsForAllJobFailure, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState.CreateFrom); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Patch Request content for Microsoft.DataProtection resources - [System.ComponentModel.TypeConverter(typeof(PatchResourceRequestInputTypeConverter))] - public partial interface IPatchResourceRequestInput - - { - - } -} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInput.cs b/src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInput.cs deleted file mode 100644 index ff52434ad46b..000000000000 --- a/src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInput.cs +++ /dev/null @@ -1,159 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by 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.Models.Api20220501 -{ - 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.Api20220501.IPatchResourceRequestInput, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal - { - - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInputInternal)Property).AzureMonitorAlertsForAllJobFailure; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInputInternal)Property).AzureMonitorAlertsForAllJobFailure = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState)""); } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20220501.IDppIdentityDetails Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20220501.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.Api20220501.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.Api20220501.IDppIdentityDetailsInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetailsInternal)Identity).Type = value ?? null; } - - /// Internal Acessors for Identity - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppIdentityDetails()); set { {_identity = value;} } } - - /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetailsInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetailsInternal)Identity).PrincipalId = value; } - - /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetailsInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetailsInternal)Identity).TenantId = value; } - - /// Internal Acessors for MonitoringSetting - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal.MonitoringSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInputInternal)Property).MonitoringSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInputInternal)Property).MonitoringSetting = value; } - - /// Internal Acessors for MonitoringSettingAzureMonitorAlertSetting - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal.MonitoringSettingAzureMonitorAlertSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInputInternal)Property).MonitoringSettingAzureMonitorAlertSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInputInternal)Property).MonitoringSettingAzureMonitorAlertSetting = value; } - - /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInput Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.PatchBackupVaultInput()); set { {_property = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInput _property; - - /// Resource properties. - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInput Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.PatchBackupVaultInput()); set => this._property = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputTags _tag; - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.PatchResourceRequestInputTags()); set => this._tag = value; } - - /// Creates an new instance. - public PatchResourceRequestInput() - { - - } - } - /// Patch Request content for Microsoft.DataProtection resources - public partial interface IPatchResourceRequestInput : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable - { - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"", - SerializedName = @"alertsForAllJobFailures", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { 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. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The object ID of the service principal object for the managed identity that is used to grant role-based access to an Azure resource.", - SerializedName = @"principalId", - PossibleTypes = new [] { typeof(string) })] - string IdentityPrincipalId { get; } - /// - /// A Globally Unique Identifier (GUID) that represents the Azure AD tenant where the resource is now a member. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"A Globally Unique Identifier (GUID) that represents the Azure AD tenant where the resource is now a member.", - SerializedName = @"tenantId", - PossibleTypes = new [] { typeof(string) })] - string IdentityTenantId { get; } - /// The identityType which can be either SystemAssigned or None - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identityType which can be either SystemAssigned or None", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - string IdentityType { get; set; } - /// 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.Api20220501.IPatchResourceRequestInputTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputTags Tag { get; set; } - - } - /// Patch Request content for Microsoft.DataProtection resources - internal partial interface IPatchResourceRequestInputInternal - - { - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { get; set; } - /// Input Managed Identity Details - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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. - /// - string IdentityPrincipalId { get; set; } - /// - /// A Globally Unique Identifier (GUID) that represents the Azure AD tenant where the resource is now a member. - /// - string IdentityTenantId { get; set; } - /// The identityType which can be either SystemAssigned or None - string IdentityType { get; set; } - /// Monitoring Settings - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettings MonitoringSetting { get; set; } - /// Settings for Azure Monitor based alerts - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings MonitoringSettingAzureMonitorAlertSetting { get; set; } - /// Resource properties. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInput Property { get; set; } - /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputTags Tag { get; set; } - - } -} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/AbsoluteDeleteOption.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AbsoluteDeleteOption.PowerShell.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20220501/AbsoluteDeleteOption.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AbsoluteDeleteOption.PowerShell.cs index 6000d85b1e55..11e7406a6767 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AbsoluteDeleteOption.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AbsoluteDeleteOption.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,17 +70,17 @@ internal AbsoluteDeleteOption(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Duration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOptionInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOptionInternal)this).Duration, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -95,39 +95,39 @@ internal AbsoluteDeleteOption(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("Duration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOptionInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOptionInternal)this).Duration, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAbsoluteDeleteOption DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAbsoluteDeleteOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAbsoluteDeleteOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AbsoluteDeleteOption(content); } @@ -137,7 +137,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAbsoluteDeleteOption FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AbsoluteDeleteOption.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AbsoluteDeleteOption.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AbsoluteDeleteOption.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AbsoluteDeleteOption.TypeConverter.cs index 0c0809ec69bd..1d98ba8304f8 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AbsoluteDeleteOption.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AbsoluteDeleteOption.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IAbsoluteDeleteOption ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAbsoluteDeleteOption ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAbsoluteDeleteOption).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAbsoluteDeleteOption).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AbsoluteDeleteOption.cs b/src/DataProtection/generated/api/Models/Api20221201/AbsoluteDeleteOption.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20220501/AbsoluteDeleteOption.cs rename to src/DataProtection/generated/api/Models/Api20221201/AbsoluteDeleteOption.cs index 992793a4bd73..e25525a2cbba 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AbsoluteDeleteOption.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AbsoluteDeleteOption.cs @@ -3,29 +3,29 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Delete option with duration public partial class AbsoluteDeleteOption : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAbsoluteDeleteOption, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAbsoluteDeleteOptionInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAbsoluteDeleteOption, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAbsoluteDeleteOptionInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOption __deleteOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DeleteOption(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOption __deleteOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDeleteOptionInternal)__deleteOption).Duration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOptionInternal)__deleteOption).Duration = value ; } + public string Duration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOptionInternal)__deleteOption).Duration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDeleteOptionInternal)__deleteOption).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOptionInternal)__deleteOption).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOptionInternal)__deleteOption).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOptionInternal)__deleteOption).ObjectType = value ; } /// Creates an new instance. public AbsoluteDeleteOption() @@ -48,13 +48,13 @@ public AbsoluteDeleteOption() /// Delete option with duration public partial interface IAbsoluteDeleteOption : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOption { } /// Delete option with duration internal partial interface IAbsoluteDeleteOptionInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOptionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOptionInternal { } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AbsoluteDeleteOption.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AbsoluteDeleteOption.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/AbsoluteDeleteOption.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AbsoluteDeleteOption.json.cs index 62642c9fafd8..fc08ceb08057 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AbsoluteDeleteOption.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AbsoluteDeleteOption.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,18 +65,18 @@ internal AbsoluteDeleteOption(Microsoft.Azure.PowerShell.Cmdlets.DataProtection. { return; } - __deleteOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DeleteOption(json); + __deleteOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeleteOption(json); AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAbsoluteDeleteOption. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAbsoluteDeleteOption. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAbsoluteDeleteOption. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAbsoluteDeleteOption. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAbsoluteDeleteOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AdHocBackupRuleOptions.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AdHocBackupRuleOptions.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20220501/AdHocBackupRuleOptions.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AdHocBackupRuleOptions.PowerShell.cs index 2cc987d7c9b0..e32c9324923b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AdHocBackupRuleOptions.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AdHocBackupRuleOptions.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,21 +70,21 @@ internal AdHocBackupRuleOptions(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("TriggerOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptionsInternal)this).TriggerOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBackupTriggerOption) content.GetValueForProperty("TriggerOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptionsInternal)this).TriggerOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AdhocBackupTriggerOptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptionsInternal)this).TriggerOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBackupTriggerOption) content.GetValueForProperty("TriggerOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptionsInternal)this).TriggerOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AdhocBackupTriggerOptionTypeConverter.ConvertFrom); } if (content.Contains("RuleName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptionsInternal)this).RuleName = (string) content.GetValueForProperty("RuleName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptionsInternal)this).RuleName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptionsInternal)this).RuleName = (string) content.GetValueForProperty("RuleName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptionsInternal)this).RuleName, global::System.Convert.ToString); } if (content.Contains("TriggerOptionRetentionTagOverride")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptionsInternal)this).TriggerOptionRetentionTagOverride = (string) content.GetValueForProperty("TriggerOptionRetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptionsInternal)this).TriggerOptionRetentionTagOverride, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptionsInternal)this).TriggerOptionRetentionTagOverride = (string) content.GetValueForProperty("TriggerOptionRetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -99,43 +99,43 @@ internal AdHocBackupRuleOptions(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("TriggerOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptionsInternal)this).TriggerOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBackupTriggerOption) content.GetValueForProperty("TriggerOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptionsInternal)this).TriggerOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AdhocBackupTriggerOptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptionsInternal)this).TriggerOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBackupTriggerOption) content.GetValueForProperty("TriggerOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptionsInternal)this).TriggerOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AdhocBackupTriggerOptionTypeConverter.ConvertFrom); } if (content.Contains("RuleName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptionsInternal)this).RuleName = (string) content.GetValueForProperty("RuleName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptionsInternal)this).RuleName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptionsInternal)this).RuleName = (string) content.GetValueForProperty("RuleName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptionsInternal)this).RuleName, global::System.Convert.ToString); } if (content.Contains("TriggerOptionRetentionTagOverride")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptionsInternal)this).TriggerOptionRetentionTagOverride = (string) content.GetValueForProperty("TriggerOptionRetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptionsInternal)this).TriggerOptionRetentionTagOverride, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptionsInternal)this).TriggerOptionRetentionTagOverride = (string) content.GetValueForProperty("TriggerOptionRetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAdHocBackupRuleOptions DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAdHocBackupRuleOptions DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptions DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AdHocBackupRuleOptions(content); } @@ -145,7 +145,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptions FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AdHocBackupRuleOptions.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AdHocBackupRuleOptions.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AdHocBackupRuleOptions.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AdHocBackupRuleOptions.TypeConverter.cs index 78b5bcab7449..d29c69f0c5d1 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AdHocBackupRuleOptions.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AdHocBackupRuleOptions.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IAdHocBackupRuleOptions ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptions ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptions).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptions).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AdHocBackupRuleOptions.cs b/src/DataProtection/generated/api/Models/Api20221201/AdHocBackupRuleOptions.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20220501/AdHocBackupRuleOptions.cs rename to src/DataProtection/generated/api/Models/Api20221201/AdHocBackupRuleOptions.cs index e07a3f831f3b..5818424737a6 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AdHocBackupRuleOptions.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AdHocBackupRuleOptions.cs @@ -3,18 +3,18 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Adhoc backup rules public partial class AdHocBackupRuleOptions : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptions, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptionsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptions, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptionsInternal { /// Internal Acessors for TriggerOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBackupTriggerOption Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptionsInternal.TriggerOption { get => (this._triggerOption = this._triggerOption ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AdhocBackupTriggerOption()); set { {_triggerOption = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBackupTriggerOption Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptionsInternal.TriggerOption { get => (this._triggerOption = this._triggerOption ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AdhocBackupTriggerOption()); set { {_triggerOption = value;} } } /// Backing field for property. private string _ruleName; @@ -23,14 +23,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.Api20220501.IAdhocBackupTriggerOption _triggerOption; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAdhocBackupTriggerOption TriggerOption { get => (this._triggerOption = this._triggerOption ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AdhocBackupTriggerOption()); set => this._triggerOption = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBackupTriggerOption TriggerOption { get => (this._triggerOption = this._triggerOption ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAdhocBackupTriggerOptionInternal)TriggerOption).RetentionTagOverride; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBackupTriggerOptionInternal)TriggerOption).RetentionTagOverride = value ?? null; } + public string TriggerOptionRetentionTagOverride { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBackupTriggerOptionInternal)TriggerOption).RetentionTagOverride; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBackupTriggerOptionInternal)TriggerOption).RetentionTagOverride = value ?? null; } /// Creates an new instance. public AdHocBackupRuleOptions() @@ -65,7 +65,7 @@ internal partial interface IAdHocBackupRuleOptionsInternal { string RuleName { get; set; } /// Adhoc backup trigger option - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBackupTriggerOption TriggerOption { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBackupTriggerOption TriggerOption { get; set; } string TriggerOptionRetentionTagOverride { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AdHocBackupRuleOptions.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AdHocBackupRuleOptions.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/AdHocBackupRuleOptions.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AdHocBackupRuleOptions.json.cs index 048fa4cb7b03..efbf0d507f51 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AdHocBackupRuleOptions.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AdHocBackupRuleOptions.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,19 +65,19 @@ internal AdHocBackupRuleOptions(Microsoft.Azure.PowerShell.Cmdlets.DataProtectio { return; } - {_triggerOption = If( json?.PropertyT("triggerOption"), out var __jsonTriggerOption) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AdhocBackupTriggerOption.FromJson(__jsonTriggerOption) : TriggerOption;} + {_triggerOption = If( json?.PropertyT("triggerOption"), out var __jsonTriggerOption) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAdHocBackupRuleOptions. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptions. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptions. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptions. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptions FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AdhocBackupTriggerOption.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AdhocBackupTriggerOption.PowerShell.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20220501/AdhocBackupTriggerOption.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AdhocBackupTriggerOption.PowerShell.cs index de1cb8840f45..9511de066bb7 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AdhocBackupTriggerOption.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AdhocBackupTriggerOption.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,13 +70,13 @@ internal AdhocBackupTriggerOption(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("RetentionTagOverride")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBackupTriggerOptionInternal)this).RetentionTagOverride = (string) content.GetValueForProperty("RetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBackupTriggerOptionInternal)this).RetentionTagOverride, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBackupTriggerOptionInternal)this).RetentionTagOverride = (string) content.GetValueForProperty("RetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -91,35 +91,35 @@ internal AdhocBackupTriggerOption(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("RetentionTagOverride")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBackupTriggerOptionInternal)this).RetentionTagOverride = (string) content.GetValueForProperty("RetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBackupTriggerOptionInternal)this).RetentionTagOverride, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBackupTriggerOptionInternal)this).RetentionTagOverride = (string) content.GetValueForProperty("RetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAdhocBackupTriggerOption DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAdhocBackupTriggerOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBackupTriggerOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AdhocBackupTriggerOption(content); } @@ -129,7 +129,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBackupTriggerOption FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AdhocBackupTriggerOption.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AdhocBackupTriggerOption.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AdhocBackupTriggerOption.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AdhocBackupTriggerOption.TypeConverter.cs index 2c8039d5083c..a09c74fa1ab8 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AdhocBackupTriggerOption.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AdhocBackupTriggerOption.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IAdhocBackupTriggerOption ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBackupTriggerOption ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBackupTriggerOption).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBackupTriggerOption).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AdhocBackupTriggerOption.cs b/src/DataProtection/generated/api/Models/Api20221201/AdhocBackupTriggerOption.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20220501/AdhocBackupTriggerOption.cs rename to src/DataProtection/generated/api/Models/Api20221201/AdhocBackupTriggerOption.cs index 792f79d34e76..2d5e34b7c2f1 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AdhocBackupTriggerOption.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AdhocBackupTriggerOption.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Adhoc backup trigger option public partial class AdhocBackupTriggerOption : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBackupTriggerOption, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBackupTriggerOptionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBackupTriggerOption, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBackupTriggerOptionInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/AdhocBackupTriggerOption.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AdhocBackupTriggerOption.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/AdhocBackupTriggerOption.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AdhocBackupTriggerOption.json.cs index 809dfc4021fb..01125a89881b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AdhocBackupTriggerOption.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AdhocBackupTriggerOption.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -70,13 +70,13 @@ internal AdhocBackupTriggerOption(Microsoft.Azure.PowerShell.Cmdlets.DataProtect } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBackupTriggerOption. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBackupTriggerOption. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBackupTriggerOption. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBackupTriggerOption. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBackupTriggerOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AdhocBasedTaggingCriteria.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AdhocBasedTaggingCriteria.PowerShell.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20220501/AdhocBasedTaggingCriteria.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AdhocBasedTaggingCriteria.PowerShell.cs index 3cfd766f3709..f67b4f45ec25 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AdhocBasedTaggingCriteria.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AdhocBasedTaggingCriteria.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,25 +70,25 @@ internal AdhocBasedTaggingCriteria(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("TagInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal)this).TagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTag) content.GetValueForProperty("TagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal)this).TagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RetentionTagTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteriaInternal)this).TagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTag) content.GetValueForProperty("TagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteriaInternal)this).TagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RetentionTagTypeConverter.ConvertFrom); } if (content.Contains("TagInfoETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal)this).TagInfoETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteriaInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteriaInternal)this).TagInfoETag, global::System.Convert.ToString); } if (content.Contains("TagInfoId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal)this).TagInfoId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteriaInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteriaInternal)this).TagInfoId, global::System.Convert.ToString); } if (content.Contains("TagInfoTagName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal)this).TagInfoTagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteriaInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -103,47 +103,47 @@ internal AdhocBasedTaggingCriteria(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("TagInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal)this).TagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTag) content.GetValueForProperty("TagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal)this).TagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RetentionTagTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteriaInternal)this).TagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTag) content.GetValueForProperty("TagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteriaInternal)this).TagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RetentionTagTypeConverter.ConvertFrom); } if (content.Contains("TagInfoETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal)this).TagInfoETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteriaInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteriaInternal)this).TagInfoETag, global::System.Convert.ToString); } if (content.Contains("TagInfoId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal)this).TagInfoId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteriaInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteriaInternal)this).TagInfoId, global::System.Convert.ToString); } if (content.Contains("TagInfoTagName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal)this).TagInfoTagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteriaInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAdhocBasedTaggingCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAdhocBasedTaggingCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AdhocBasedTaggingCriteria(content); } @@ -153,7 +153,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteria FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AdhocBasedTaggingCriteria.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AdhocBasedTaggingCriteria.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AdhocBasedTaggingCriteria.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AdhocBasedTaggingCriteria.TypeConverter.cs index bf7439b2d1f2..41a29d5f93f3 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AdhocBasedTaggingCriteria.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AdhocBasedTaggingCriteria.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IAdhocBasedTaggingCriteria ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteria ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteria).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteria).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AdhocBasedTaggingCriteria.cs b/src/DataProtection/generated/api/Models/Api20221201/AdhocBasedTaggingCriteria.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20220501/AdhocBasedTaggingCriteria.cs rename to src/DataProtection/generated/api/Models/Api20221201/AdhocBasedTaggingCriteria.cs index 9442b3fc74a1..d9b117c08110 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AdhocBasedTaggingCriteria.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AdhocBasedTaggingCriteria.cs @@ -3,43 +3,43 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Adhoc backup tagging criteria public partial class AdhocBasedTaggingCriteria : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteria, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteria, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteriaInternal { /// Internal Acessors for TagInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTag Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal.TagInfo { get => (this._tagInfo = this._tagInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RetentionTag()); set { {_tagInfo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTag Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteriaInternal.TagInfo { get => (this._tagInfo = this._tagInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RetentionTag()); set { {_tagInfo = value;} } } /// Internal Acessors for TagInfoETag - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal.TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTagInternal)TagInfo).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTagInternal)TagInfo).ETag = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteriaInternal.TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal)TagInfo).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal)TagInfo).ETag = value; } /// Internal Acessors for TagInfoId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal.TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTagInternal)TagInfo).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTagInternal)TagInfo).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteriaInternal.TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal)TagInfo).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal)TagInfo).Id = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTag _tagInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRetentionTag TagInfo { get => (this._tagInfo = this._tagInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RetentionTag()); set => this._tagInfo = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTag TagInfo { get => (this._tagInfo = this._tagInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRetentionTagInternal)TagInfo).ETag; } + public string TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRetentionTagInternal)TagInfo).Id; } + public string TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRetentionTagInternal)TagInfo).TagName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTagInternal)TagInfo).TagName = value ?? null; } + public string TagInfoTagName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal)TagInfo).TagName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal)TagInfo).TagName = value ?? null; } /// Creates an new instance. public AdhocBasedTaggingCriteria() @@ -82,7 +82,7 @@ internal partial interface IAdhocBasedTaggingCriteriaInternal { /// Retention tag information - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTag TagInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTag TagInfo { get; set; } /// Retention Tag version. string TagInfoETag { get; set; } /// Retention Tag version. diff --git a/src/DataProtection/generated/api/Models/Api20220501/AdhocBasedTaggingCriteria.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AdhocBasedTaggingCriteria.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/AdhocBasedTaggingCriteria.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AdhocBasedTaggingCriteria.json.cs index 31a86eb29a6a..2d2cd014a36a 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AdhocBasedTaggingCriteria.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AdhocBasedTaggingCriteria.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,18 +65,18 @@ internal AdhocBasedTaggingCriteria(Microsoft.Azure.PowerShell.Cmdlets.DataProtec { return; } - {_tagInfo = If( json?.PropertyT("tagInfo"), out var __jsonTagInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RetentionTag.FromJson(__jsonTagInfo) : TagInfo;} + {_tagInfo = If( json?.PropertyT("tagInfo"), out var __jsonTagInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RetentionTag.FromJson(__jsonTagInfo) : TagInfo;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteria. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteria. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteria. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteria. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AdhocBasedTriggerContext.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AdhocBasedTriggerContext.PowerShell.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20220501/AdhocBasedTriggerContext.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AdhocBasedTriggerContext.PowerShell.cs index d39c42fe8317..0f5e7d4f4473 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AdhocBasedTriggerContext.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AdhocBasedTriggerContext.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,33 +70,33 @@ internal AdhocBasedTriggerContext(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("TaggingCriterion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContextInternal)this).TaggingCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteria) content.GetValueForProperty("TaggingCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContextInternal)this).TaggingCriterion, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AdhocBasedTaggingCriteriaTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContextInternal)this).TaggingCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteria) content.GetValueForProperty("TaggingCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContextInternal)this).TaggingCriterion, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AdhocBasedTaggingCriteriaTypeConverter.ConvertFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("TaggingCriterionTagInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContextInternal)this).TaggingCriterionTagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTag) content.GetValueForProperty("TaggingCriterionTagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContextInternal)this).TaggingCriterionTagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RetentionTagTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContextInternal)this).TaggingCriterionTagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTag) content.GetValueForProperty("TaggingCriterionTagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContextInternal)this).TaggingCriterionTagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RetentionTagTypeConverter.ConvertFrom); } if (content.Contains("TagInfoETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContextInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContextInternal)this).TagInfoETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContextInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContextInternal)this).TagInfoETag, global::System.Convert.ToString); } if (content.Contains("TagInfoId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContextInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContextInternal)this).TagInfoId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContextInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContextInternal)this).TagInfoId, global::System.Convert.ToString); } if (content.Contains("TagInfoTagName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContextInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContextInternal)this).TagInfoTagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContextInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -111,55 +111,55 @@ internal AdhocBasedTriggerContext(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("TaggingCriterion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContextInternal)this).TaggingCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteria) content.GetValueForProperty("TaggingCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContextInternal)this).TaggingCriterion, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AdhocBasedTaggingCriteriaTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContextInternal)this).TaggingCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteria) content.GetValueForProperty("TaggingCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContextInternal)this).TaggingCriterion, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AdhocBasedTaggingCriteriaTypeConverter.ConvertFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("TaggingCriterionTagInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContextInternal)this).TaggingCriterionTagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTag) content.GetValueForProperty("TaggingCriterionTagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContextInternal)this).TaggingCriterionTagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RetentionTagTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContextInternal)this).TaggingCriterionTagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTag) content.GetValueForProperty("TaggingCriterionTagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContextInternal)this).TaggingCriterionTagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RetentionTagTypeConverter.ConvertFrom); } if (content.Contains("TagInfoETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContextInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContextInternal)this).TagInfoETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContextInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContextInternal)this).TagInfoETag, global::System.Convert.ToString); } if (content.Contains("TagInfoId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContextInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContextInternal)this).TagInfoId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContextInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContextInternal)this).TagInfoId, global::System.Convert.ToString); } if (content.Contains("TagInfoTagName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContextInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContextInternal)this).TagInfoTagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContextInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAdhocBasedTriggerContext DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAdhocBasedTriggerContext DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContext DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AdhocBasedTriggerContext(content); } @@ -169,7 +169,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContext FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AdhocBasedTriggerContext.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AdhocBasedTriggerContext.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AdhocBasedTriggerContext.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AdhocBasedTriggerContext.TypeConverter.cs index 88674ee2b2f2..b74b0fa846cd 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AdhocBasedTriggerContext.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AdhocBasedTriggerContext.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IAdhocBasedTriggerContext ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContext ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContext).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContext).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AdhocBasedTriggerContext.cs b/src/DataProtection/generated/api/Models/Api20221201/AdhocBasedTriggerContext.cs similarity index 79% rename from src/DataProtection/generated/api/Models/Api20220501/AdhocBasedTriggerContext.cs rename to src/DataProtection/generated/api/Models/Api20221201/AdhocBasedTriggerContext.cs index f8b7b31cb079..f891450c4a9f 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AdhocBasedTriggerContext.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AdhocBasedTriggerContext.cs @@ -3,56 +3,56 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Adhoc trigger context public partial class AdhocBasedTriggerContext : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContext, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContextInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContext, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContextInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContext __triggerContext = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TriggerContext(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContext __triggerContext = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TriggerContext(); /// Internal Acessors for TagInfoETag - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContextInternal.TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoETag = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContextInternal.TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoETag = value; } /// Internal Acessors for TagInfoId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContextInternal.TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContextInternal.TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoId = value; } /// Internal Acessors for TaggingCriterion - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteria Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContextInternal.TaggingCriterion { get => (this._taggingCriterion = this._taggingCriterion ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AdhocBasedTaggingCriteria()); set { {_taggingCriterion = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteria Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContextInternal.TaggingCriterion { get => (this._taggingCriterion = this._taggingCriterion ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AdhocBasedTaggingCriteria()); set { {_taggingCriterion = value;} } } /// Internal Acessors for TaggingCriterionTagInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTag Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContextInternal.TaggingCriterionTagInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTag Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContextInternal.TaggingCriterionTagInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ITriggerContextInternal)__triggerContext).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContextInternal)__triggerContext).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContextInternal)__triggerContext).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoETag; } + public string TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoId; } + public string TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoTagName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoTagName = value ?? null; } + public string TagInfoTagName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoTagName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteriaInternal)TaggingCriterion).TagInfoTagName = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTaggingCriteria _taggingCriterion; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAdhocBasedTaggingCriteria TaggingCriterion { get => (this._taggingCriterion = this._taggingCriterion ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AdhocBasedTaggingCriteria()); set => this._taggingCriterion = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteria TaggingCriterion { get => (this._taggingCriterion = this._taggingCriterion ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AdhocBasedTaggingCriteria()); set => this._taggingCriterion = value; } /// Creates an new instance. public AdhocBasedTriggerContext() @@ -75,7 +75,7 @@ public AdhocBasedTriggerContext() /// Adhoc trigger context public partial interface IAdhocBasedTriggerContext : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContext + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContext { /// Retention Tag version. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -105,7 +105,7 @@ public partial interface IAdhocBasedTriggerContext : } /// Adhoc trigger context internal partial interface IAdhocBasedTriggerContextInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContextInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContextInternal { /// Retention Tag version. string TagInfoETag { get; set; } @@ -114,9 +114,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.Api20220501.IAdhocBasedTaggingCriteria TaggingCriterion { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTaggingCriteria TaggingCriterion { get; set; } /// Retention tag information - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTag TaggingCriterionTagInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTag TaggingCriterionTagInfo { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/AdhocBasedTriggerContext.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AdhocBasedTriggerContext.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/AdhocBasedTriggerContext.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AdhocBasedTriggerContext.json.cs index cac3614a4b73..a2ce9ec53b29 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AdhocBasedTriggerContext.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AdhocBasedTriggerContext.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,19 +65,19 @@ internal AdhocBasedTriggerContext(Microsoft.Azure.PowerShell.Cmdlets.DataProtect { return; } - __triggerContext = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TriggerContext(json); - {_taggingCriterion = If( json?.PropertyT("taggingCriteria"), out var __jsonTaggingCriteria) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AdhocBasedTaggingCriteria.FromJson(__jsonTaggingCriteria) : TaggingCriterion;} + __triggerContext = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TriggerContext(json); + {_taggingCriterion = If( json?.PropertyT("taggingCriteria"), out var __jsonTaggingCriteria) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AdhocBasedTaggingCriteria.FromJson(__jsonTaggingCriteria) : TaggingCriterion;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContext. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContext. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContext. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBasedTriggerContext. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBasedTriggerContext FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AuthCredentials.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AuthCredentials.PowerShell.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20220501/AuthCredentials.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AuthCredentials.PowerShell.cs index 99b6b3392fb5..9b379beb811e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AuthCredentials.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AuthCredentials.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class AuthCredentials partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,13 +70,13 @@ internal AuthCredentials(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentialsInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentialsInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentialsInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentialsInternal)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. @@ -91,33 +91,33 @@ internal AuthCredentials(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentialsInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentialsInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentialsInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentialsInternal)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.Api20220501.IAuthCredentials DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AuthCredentials(content); } /// - /// 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.Api20220501.IAuthCredentials DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AuthCredentials(content); } @@ -127,7 +127,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials 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/Api20220501/AuthCredentials.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AuthCredentials.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AuthCredentials.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AuthCredentials.TypeConverter.cs index 6bc5a308f295..61f22219e365 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AuthCredentials.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AuthCredentials.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IAuthCredentials ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AuthCredentials.cs b/src/DataProtection/generated/api/Models/Api20221201/AuthCredentials.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/AuthCredentials.cs rename to src/DataProtection/generated/api/Models/Api20221201/AuthCredentials.cs index 251572110119..566e0414b82f 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AuthCredentials.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AuthCredentials.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Base class for different types of authentication credentials. public partial class AuthCredentials : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentialsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentialsInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/AuthCredentials.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AuthCredentials.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/AuthCredentials.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AuthCredentials.json.cs index c92f734283c4..21a6b8037b32 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AuthCredentials.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AuthCredentials.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -70,15 +70,15 @@ internal AuthCredentials(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runti } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials 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.Api20220501.IAuthCredentials. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials 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/Api20220501/AzureBackupDiscreteRecoveryPoint.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupDiscreteRecoveryPoint.PowerShell.cs similarity index 75% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupDiscreteRecoveryPoint.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupDiscreteRecoveryPoint.PowerShell.cs index 70a19d852f94..b057be59bafd 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupDiscreteRecoveryPoint.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupDiscreteRecoveryPoint.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class AzureBackupDiscreteRecoveryPoint partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,49 +70,53 @@ internal AzureBackupDiscreteRecoveryPoint(global::System.Collections.IDictionary // actually deserialize if (content.Contains("FriendlyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).FriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).FriendlyName, global::System.Convert.ToString); } if (content.Contains("RecoveryPointDataStoresDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointDataStoresDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetails[]) content.GetValueForProperty("RecoveryPointDataStoresDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointDataStoresDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RecoveryPointDataStoreDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointDataStoresDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetails[]) content.GetValueForProperty("RecoveryPointDataStoresDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointDataStoresDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RecoveryPointDataStoreDetailsTypeConverter.ConvertFrom)); } if (content.Contains("RecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointTime = (global::System.DateTime) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointTime = (global::System.DateTime) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PolicyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyName, global::System.Convert.ToString); } if (content.Contains("PolicyVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyVersion = (string) content.GetValueForProperty("PolicyVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyVersion = (string) content.GetValueForProperty("PolicyVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyVersion, global::System.Convert.ToString); } if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointId, global::System.Convert.ToString); } if (content.Contains("RecoveryPointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointType = (string) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointType = (string) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointType, global::System.Convert.ToString); } if (content.Contains("RetentionTagName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagName = (string) content.GetValueForProperty("RetentionTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagName = (string) content.GetValueForProperty("RetentionTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagName, global::System.Convert.ToString); } if (content.Contains("RetentionTagVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagVersion = (string) content.GetValueForProperty("RetentionTagVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagVersion = (string) content.GetValueForProperty("RetentionTagVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagVersion, global::System.Convert.ToString); + } + if (content.Contains("ExpiryTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).ExpiryTime = (global::System.DateTime?) content.GetValueForProperty("ExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).ExpiryTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -127,71 +131,75 @@ internal AzureBackupDiscreteRecoveryPoint(global::System.Management.Automation.P // actually deserialize if (content.Contains("FriendlyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).FriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).FriendlyName, global::System.Convert.ToString); } if (content.Contains("RecoveryPointDataStoresDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointDataStoresDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetails[]) content.GetValueForProperty("RecoveryPointDataStoresDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointDataStoresDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RecoveryPointDataStoreDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointDataStoresDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetails[]) content.GetValueForProperty("RecoveryPointDataStoresDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointDataStoresDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RecoveryPointDataStoreDetailsTypeConverter.ConvertFrom)); } if (content.Contains("RecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointTime = (global::System.DateTime) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointTime = (global::System.DateTime) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("PolicyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyName, global::System.Convert.ToString); } if (content.Contains("PolicyVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyVersion = (string) content.GetValueForProperty("PolicyVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyVersion = (string) content.GetValueForProperty("PolicyVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).PolicyVersion, global::System.Convert.ToString); } if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointId, global::System.Convert.ToString); } if (content.Contains("RecoveryPointType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointType = (string) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointType = (string) content.GetValueForProperty("RecoveryPointType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).RecoveryPointType, global::System.Convert.ToString); } if (content.Contains("RetentionTagName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagName = (string) content.GetValueForProperty("RetentionTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagName = (string) content.GetValueForProperty("RetentionTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagName, global::System.Convert.ToString); } if (content.Contains("RetentionTagVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagVersion = (string) content.GetValueForProperty("RetentionTagVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagVersion = (string) content.GetValueForProperty("RetentionTagVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).RetentionTagVersion, global::System.Convert.ToString); + } + if (content.Contains("ExpiryTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).ExpiryTime = (global::System.DateTime?) content.GetValueForProperty("ExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal)this).ExpiryTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupDiscreteRecoveryPoint DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPoint DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureBackupDiscreteRecoveryPoint(content); } /// - /// 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.Api20220501.IAzureBackupDiscreteRecoveryPoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupDiscreteRecoveryPoint(content); } @@ -201,7 +209,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPoint 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/Api20220501/AzureBackupDiscreteRecoveryPoint.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupDiscreteRecoveryPoint.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupDiscreteRecoveryPoint.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupDiscreteRecoveryPoint.TypeConverter.cs index 1694ae8bd5d2..5966082c8958 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupDiscreteRecoveryPoint.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupDiscreteRecoveryPoint.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPoint ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPoint ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPoint).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPoint).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupDiscreteRecoveryPoint.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupDiscreteRecoveryPoint.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupDiscreteRecoveryPoint.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupDiscreteRecoveryPoint.cs index 4589be1cd6ed..6cc2695b757f 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupDiscreteRecoveryPoint.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupDiscreteRecoveryPoint.cs @@ -3,21 +3,27 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure backup discrete RecoveryPoint public partial class AzureBackupDiscreteRecoveryPoint : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPoint, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPointInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPoint, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPoint __azureBackupRecoveryPoint = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRecoveryPoint(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPoint __azureBackupRecoveryPoint = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRecoveryPoint(); + + /// Backing field for property. + private global::System.DateTime? _expiryTime; + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public global::System.DateTime? ExpiryTime { get => this._expiryTime; } /// Backing field for property. private string _friendlyName; @@ -25,8 +31,11 @@ public partial class AzureBackupDiscreteRecoveryPoint : [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] public string FriendlyName { get => this._friendlyName; set => this._friendlyName = value; } + /// Internal Acessors for ExpiryTime + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPointInternal.ExpiryTime { get => this._expiryTime; set { {_expiryTime = value;} } } + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointInternal)__azureBackupRecoveryPoint).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointInternal)__azureBackupRecoveryPoint).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointInternal)__azureBackupRecoveryPoint).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointInternal)__azureBackupRecoveryPoint).ObjectType = value ; } /// Backing field for property. private string _policyName; @@ -41,10 +50,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.Api20220501.IRecoveryPointDataStoreDetails[] _recoveryPointDataStoresDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetails[] _recoveryPointDataStoresDetail; [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetails[] RecoveryPointDataStoresDetail { get => this._recoveryPointDataStoresDetail; set => this._recoveryPointDataStoresDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetails[] RecoveryPointDataStoresDetail { get => this._recoveryPointDataStoresDetail; set => this._recoveryPointDataStoresDetail = value; } /// Backing field for property. private string _recoveryPointId; @@ -97,8 +106,16 @@ public AzureBackupDiscreteRecoveryPoint() /// Azure backup discrete RecoveryPoint public partial interface IAzureBackupDiscreteRecoveryPoint : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPoint + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPoint { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"", + SerializedName = @"expiryTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? ExpiryTime { get; } + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, ReadOnly = false, @@ -128,8 +145,8 @@ public partial interface IAzureBackupDiscreteRecoveryPoint : ReadOnly = false, Description = @"", SerializedName = @"recoveryPointDataStoresDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetails[] RecoveryPointDataStoresDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetails[] RecoveryPointDataStoresDetail { get; set; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -174,15 +191,17 @@ public partial interface IAzureBackupDiscreteRecoveryPoint : } /// Azure backup discrete RecoveryPoint internal partial interface IAzureBackupDiscreteRecoveryPointInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointInternal { + global::System.DateTime? ExpiryTime { get; set; } + string FriendlyName { get; set; } string PolicyName { get; set; } string PolicyVersion { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetails[] RecoveryPointDataStoresDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetails[] RecoveryPointDataStoresDetail { get; set; } string RecoveryPointId { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupDiscreteRecoveryPoint.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupDiscreteRecoveryPoint.json.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupDiscreteRecoveryPoint.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupDiscreteRecoveryPoint.json.cs index e5aae9b08684..2342f2e40297 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupDiscreteRecoveryPoint.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupDiscreteRecoveryPoint.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,9 +65,9 @@ internal AzureBackupDiscreteRecoveryPoint(Microsoft.Azure.PowerShell.Cmdlets.Dat { return; } - __azureBackupRecoveryPoint = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRecoveryPoint(json); + __azureBackupRecoveryPoint = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRecoveryPointDataStoreDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IRecoveryPointDataStoreDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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;} @@ -75,17 +75,18 @@ internal AzureBackupDiscreteRecoveryPoint(Microsoft.Azure.PowerShell.Cmdlets.Dat {_recoveryPointType = If( json?.PropertyT("recoveryPointType"), out var __jsonRecoveryPointType) ? (string)__jsonRecoveryPointType : (string)RecoveryPointType;} {_retentionTagName = If( json?.PropertyT("retentionTagName"), out var __jsonRetentionTagName) ? (string)__jsonRetentionTagName : (string)RetentionTagName;} {_retentionTagVersion = If( json?.PropertyT("retentionTagVersion"), out var __jsonRetentionTagVersion) ? (string)__jsonRetentionTagVersion : (string)RetentionTagVersion;} + {_expiryTime = If( json?.PropertyT("expiryTime"), out var __jsonExpiryTime) ? global::System.DateTime.TryParse((string)__jsonExpiryTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonExpiryTimeValue) ? __jsonExpiryTimeValue : ExpiryTime : ExpiryTime;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPoint. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPoint. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPoint. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupDiscreteRecoveryPoint. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupDiscreteRecoveryPoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -127,6 +128,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode T AddIf( null != (((object)this._recoveryPointType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._recoveryPointType.ToString()) : null, "recoveryPointType" ,container.Add ); AddIf( null != (((object)this._retentionTagName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._retentionTagName.ToString()) : null, "retentionTagName" ,container.Add ); AddIf( null != (((object)this._retentionTagVersion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._retentionTagVersion.ToString()) : null, "retentionTagVersion" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._expiryTime ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._expiryTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "expiryTime" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesRequest.PowerShell.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesRequest.PowerShell.cs index a5585dbfa3b9..0cea0f109da8 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,21 +70,21 @@ internal AzureBackupFindRestorableTimeRangesRequest(global::System.Collections.I // actually deserialize if (content.Contains("SourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType.CreateFrom); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestInternal)this).StartTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestInternal)this).StartTime, global::System.Convert.ToString); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestInternal)this).EndTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -99,43 +99,43 @@ internal AzureBackupFindRestorableTimeRangesRequest(global::System.Management.Au // actually deserialize if (content.Contains("SourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType.CreateFrom); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestInternal)this).StartTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestInternal)this).StartTime, global::System.Convert.ToString); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestInternal)this).EndTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupFindRestorableTimeRangesRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupFindRestorableTimeRangesRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupFindRestorableTimeRangesRequest(content); } @@ -148,7 +148,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupFindRestorableTimeRangesRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesRequest.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesRequest.TypeConverter.cs index 307feaec47cf..2863bc074a5e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesRequest.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesRequest.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesRequest.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesRequest.cs index 80a4e0bdce76..97463037ffd0 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesRequest.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesRequest.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// List Restore Ranges Request public partial class AzureBackupFindRestorableTimeRangesRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesRequest.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesRequest.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesRequest.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesRequest.json.cs index 94867dc91683..2c0d83aabaa3 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -72,13 +72,13 @@ internal AzureBackupFindRestorableTimeRangesRequest(Microsoft.Azure.PowerShell.C } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupFindRestorableTimeRangesRequestResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesRequestResource.PowerShell.cs similarity index 78% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesRequestResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesRequestResource.PowerShell.cs index 4bc5fc226808..fe30fc2decc4 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesRequestResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesRequestResource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class AzureBackupFindRestorableTimeRangesRequestResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,53 +70,53 @@ internal AzureBackupFindRestorableTimeRangesRequestResource(global::System.Colle // actually deserialize if (content.Contains("Content")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).Content = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequest) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).Content, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupFindRestorableTimeRangesRequestTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).Content = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequest) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).Content, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupFindRestorableTimeRangesRequestTypeConverter.ConvertFrom); } if (content.Contains("SubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).SubscriptionId, global::System.Convert.ToString); } if (content.Contains("Uri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).Uri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).Uri, global::System.Convert.ToString); } if (content.Contains("Header")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).Header = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestHeaders) content.GetValueForProperty("Header",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).Header, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppWorkerRequestHeadersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).Header = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestHeaders) content.GetValueForProperty("Header",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).Header, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppWorkerRequestHeadersTypeConverter.ConvertFrom); } if (content.Contains("SupportedGroupVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).SupportedGroupVersion = (string[]) content.GetValueForProperty("SupportedGroupVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).SupportedGroupVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).SupportedGroupVersion = (string[]) content.GetValueForProperty("SupportedGroupVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).SupportedGroupVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("CultureInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).CultureInfo = (string) content.GetValueForProperty("CultureInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).CultureInfo, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).CultureInfo = (string) content.GetValueForProperty("CultureInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).CultureInfo, global::System.Convert.ToString); } if (content.Contains("Parameter")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppWorkerRequestParametersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppWorkerRequestParametersTypeConverter.ConvertFrom); } if (content.Contains("HttpMethod")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).HttpMethod = (string) content.GetValueForProperty("HttpMethod",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).HttpMethod, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).HttpMethod = (string) content.GetValueForProperty("HttpMethod",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).HttpMethod, global::System.Convert.ToString); } if (content.Contains("ContentSourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentSourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) content.GetValueForProperty("ContentSourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentSourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentSourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) content.GetValueForProperty("ContentSourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentSourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType.CreateFrom); } if (content.Contains("ContentStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentStartTime = (string) content.GetValueForProperty("ContentStartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentStartTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentStartTime = (string) content.GetValueForProperty("ContentStartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentStartTime, global::System.Convert.ToString); } if (content.Contains("ContentEndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentEndTime = (string) content.GetValueForProperty("ContentEndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentEndTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentEndTime = (string) content.GetValueForProperty("ContentEndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentEndTime, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -131,75 +131,75 @@ internal AzureBackupFindRestorableTimeRangesRequestResource(global::System.Manag // actually deserialize if (content.Contains("Content")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).Content = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequest) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).Content, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupFindRestorableTimeRangesRequestTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).Content = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequest) content.GetValueForProperty("Content",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).Content, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupFindRestorableTimeRangesRequestTypeConverter.ConvertFrom); } if (content.Contains("SubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).SubscriptionId, global::System.Convert.ToString); } if (content.Contains("Uri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).Uri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).Uri, global::System.Convert.ToString); } if (content.Contains("Header")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).Header = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestHeaders) content.GetValueForProperty("Header",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).Header, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppWorkerRequestHeadersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).Header = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestHeaders) content.GetValueForProperty("Header",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).Header, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppWorkerRequestHeadersTypeConverter.ConvertFrom); } if (content.Contains("SupportedGroupVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).SupportedGroupVersion = (string[]) content.GetValueForProperty("SupportedGroupVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).SupportedGroupVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).SupportedGroupVersion = (string[]) content.GetValueForProperty("SupportedGroupVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).SupportedGroupVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("CultureInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).CultureInfo = (string) content.GetValueForProperty("CultureInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).CultureInfo, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).CultureInfo = (string) content.GetValueForProperty("CultureInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).CultureInfo, global::System.Convert.ToString); } if (content.Contains("Parameter")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppWorkerRequestParametersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppWorkerRequestParametersTypeConverter.ConvertFrom); } if (content.Contains("HttpMethod")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).HttpMethod = (string) content.GetValueForProperty("HttpMethod",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).HttpMethod, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).HttpMethod = (string) content.GetValueForProperty("HttpMethod",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).HttpMethod, global::System.Convert.ToString); } if (content.Contains("ContentSourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentSourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) content.GetValueForProperty("ContentSourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentSourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentSourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType) content.GetValueForProperty("ContentSourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentSourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType.CreateFrom); } if (content.Contains("ContentStartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentStartTime = (string) content.GetValueForProperty("ContentStartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentStartTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentStartTime = (string) content.GetValueForProperty("ContentStartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentStartTime, global::System.Convert.ToString); } if (content.Contains("ContentEndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentEndTime = (string) content.GetValueForProperty("ContentEndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentEndTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentEndTime = (string) content.GetValueForProperty("ContentEndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResourceInternal)this).ContentEndTime, 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.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureBackupFindRestorableTimeRangesRequestResource(content); } /// - /// 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.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupFindRestorableTimeRangesRequestResource(content); } @@ -212,7 +212,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResource 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/Api20220501/AzureBackupFindRestorableTimeRangesRequestResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesRequestResource.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesRequestResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesRequestResource.TypeConverter.cs index 45240a27c128..994a285b2f2a 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesRequestResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesRequestResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesRequestResource.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesRequestResource.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesRequestResource.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesRequestResource.cs index fa7abebffc9b..b4a084adfaab 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesRequestResource.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesRequestResource.cs @@ -3,68 +3,68 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// List Restore Ranges Request public partial class AzureBackupFindRestorableTimeRangesRequestResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequest __dppWorkerRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppWorkerRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequest __dppWorkerRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppWorkerRequest(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequest _content; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequest _content; /// AzureBackupFindRestorableTimeRangesRequestResource content [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequest Content { get => (this._content = this._content ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupFindRestorableTimeRangesRequest()); set => this._content = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequest Content { get => (this._content = this._content ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupFindRestorableTimeRangesRequest()); set => this._content = value; } /// End time for the List Restore Ranges request. ISO 8601 format. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string ContentEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).EndTime = value ?? null; } + public string ContentEndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).SourceDataStoreType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreSourceDataStoreType)""); } /// Start time for the List Restore Ranges request. ISO 8601 format. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string ContentStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).StartTime = value ?? null; } + public string ContentStartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestInternal)Content).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppWorkerRequestInternal)__dppWorkerRequest).CultureInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)__dppWorkerRequest).CultureInfo = value ?? null; } + public string CultureInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)__dppWorkerRequest).CultureInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppWorkerRequestHeaders Header { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)__dppWorkerRequest).Header; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)__dppWorkerRequest).Header = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestHeaders Header { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)__dppWorkerRequest).Header; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppWorkerRequestInternal)__dppWorkerRequest).HttpMethod; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)__dppWorkerRequest).HttpMethod = value ?? null; } + public string HttpMethod { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)__dppWorkerRequest).HttpMethod; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)__dppWorkerRequest).HttpMethod = value ?? null; } /// Internal Acessors for Content - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequest Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResourceInternal.Content { get => (this._content = this._content ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupFindRestorableTimeRangesRequest()); set { {_content = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequest Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResourceInternal.Content { get => (this._content = this._content ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppWorkerRequestParameters Parameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)__dppWorkerRequest).Parameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)__dppWorkerRequest).Parameter = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestParameters Parameter { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)__dppWorkerRequest).Parameter; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppWorkerRequestInternal)__dppWorkerRequest).SubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)__dppWorkerRequest).SubscriptionId = value ?? null; } + public string SubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)__dppWorkerRequest).SubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppWorkerRequestInternal)__dppWorkerRequest).SupportedGroupVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)__dppWorkerRequest).SupportedGroupVersion = value ?? null /* arrayOf */; } + public string[] SupportedGroupVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)__dppWorkerRequest).SupportedGroupVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppWorkerRequestInternal)__dppWorkerRequest).Uri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)__dppWorkerRequest).Uri = value ?? null; } + public string Uri { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)__dppWorkerRequest).Uri; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)__dppWorkerRequest).Uri = value ?? null; } /// /// Creates an new instance. @@ -89,7 +89,7 @@ public AzureBackupFindRestorableTimeRangesRequestResource() /// List Restore Ranges Request public partial interface IAzureBackupFindRestorableTimeRangesRequestResource : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequest { /// End time for the List Restore Ranges request. ISO 8601 format. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -119,10 +119,10 @@ public partial interface IAzureBackupFindRestorableTimeRangesRequestResource : } /// List Restore Ranges Request internal partial interface IAzureBackupFindRestorableTimeRangesRequestResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal { /// AzureBackupFindRestorableTimeRangesRequestResource content - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequest Content { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequest Content { get; set; } /// End time for the List Restore Ranges request. ISO 8601 format. string ContentEndTime { get; set; } /// Gets or sets the type of the source data store. diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesRequestResource.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesRequestResource.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesRequestResource.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesRequestResource.json.cs index 720480723292..05795f89f4c5 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesRequestResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesRequestResource.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -66,19 +66,19 @@ internal AzureBackupFindRestorableTimeRangesRequestResource(Microsoft.Azure.Powe { return; } - __dppWorkerRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppWorkerRequest(json); - {_content = If( json?.PropertyT("content"), out var __jsonContent) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupFindRestorableTimeRangesRequest.FromJson(__jsonContent) : Content;} + __dppWorkerRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppWorkerRequest(json); + {_content = If( json?.PropertyT("content"), out var __jsonContent) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupFindRestorableTimeRangesRequest.FromJson(__jsonContent) : Content;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequestResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequestResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupFindRestorableTimeRangesResponse.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesResponse.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesResponse.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesResponse.PowerShell.cs index 35295a2b1bc0..0c5354f9f67c 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesResponse.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesResponse.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,17 +70,17 @@ internal AzureBackupFindRestorableTimeRangesResponse(global::System.Collections. // actually deserialize if (content.Contains("RestorableTimeRange")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseInternal)this).RestorableTimeRange = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRange[]) content.GetValueForProperty("RestorableTimeRange",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseInternal)this).RestorableTimeRange, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestorableTimeRangeTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseInternal)this).RestorableTimeRange = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRange[]) content.GetValueForProperty("RestorableTimeRange",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseInternal)this).RestorableTimeRange, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestorableTimeRangeTypeConverter.ConvertFrom)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -95,39 +95,39 @@ internal AzureBackupFindRestorableTimeRangesResponse(global::System.Management.A // actually deserialize if (content.Contains("RestorableTimeRange")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseInternal)this).RestorableTimeRange = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRange[]) content.GetValueForProperty("RestorableTimeRange",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseInternal)this).RestorableTimeRange, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestorableTimeRangeTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseInternal)this).RestorableTimeRange = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRange[]) content.GetValueForProperty("RestorableTimeRange",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseInternal)this).RestorableTimeRange, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestorableTimeRangeTypeConverter.ConvertFrom)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupFindRestorableTimeRangesResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupFindRestorableTimeRangesResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupFindRestorableTimeRangesResponse(content); } @@ -140,7 +140,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupFindRestorableTimeRangesResponse.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesResponse.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesResponse.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesResponse.TypeConverter.cs index 7ac55826dd24..48885f33ddc5 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesResponse.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesResponse.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponse ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponse ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponse).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponse).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesResponse.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesResponse.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesResponse.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesResponse.cs index cbb84fc7136d..fbf5c8e5e368 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesResponse.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesResponse.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// List Restore Ranges Response public partial class AzureBackupFindRestorableTimeRangesResponse : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponse, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponse, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseInternal { /// Backing field for property. @@ -20,11 +20,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.Api20220501.IRestorableTimeRange[] _restorableTimeRange; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRestorableTimeRange[] RestorableTimeRange { get => this._restorableTimeRange; set => this._restorableTimeRange = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRange[] RestorableTimeRange { get => this._restorableTimeRange; set => this._restorableTimeRange = value; } /// /// Creates an new instance. @@ -51,8 +51,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.Api20220501.IRestorableTimeRange) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRange[] RestorableTimeRange { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRange) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRange[] RestorableTimeRange { get; set; } } /// List Restore Ranges Response @@ -61,7 +61,7 @@ internal partial interface IAzureBackupFindRestorableTimeRangesResponseInternal { string ObjectType { get; set; } /// Returns the Restore Ranges available on the Backup Instance. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRange[] RestorableTimeRange { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRange[] RestorableTimeRange { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesResponse.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesResponse.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesResponse.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesResponse.json.cs index 4fafef2ef5c6..3ba12391b344 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesResponse.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesResponse.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,19 +65,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.Api20220501.IRestorableTimeRange) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IRestorableTimeRange) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupFindRestorableTimeRangesResponse. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponse. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponse. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponse. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupFindRestorableTimeRangesResponseResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesResponseResource.PowerShell.cs similarity index 79% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesResponseResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesResponseResource.PowerShell.cs index 37353866ef63..462d32da7ad6 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesResponseResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesResponseResource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,37 +70,37 @@ internal AzureBackupFindRestorableTimeRangesResponseResource(global::System.Coll // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponse) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupFindRestorableTimeRangesResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponse) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupFindRestorableTimeRangesResponseTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("RestorableTimeRange")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).RestorableTimeRange = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRange[]) content.GetValueForProperty("RestorableTimeRange",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).RestorableTimeRange, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestorableTimeRangeTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).RestorableTimeRange = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRange[]) content.GetValueForProperty("RestorableTimeRange",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).RestorableTimeRange, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestorableTimeRangeTypeConverter.ConvertFrom)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -115,59 +115,59 @@ internal AzureBackupFindRestorableTimeRangesResponseResource(global::System.Mana // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponse) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupFindRestorableTimeRangesResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponse) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupFindRestorableTimeRangesResponseTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("RestorableTimeRange")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).RestorableTimeRange = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRange[]) content.GetValueForProperty("RestorableTimeRange",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).RestorableTimeRange, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestorableTimeRangeTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).RestorableTimeRange = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRange[]) content.GetValueForProperty("RestorableTimeRange",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).RestorableTimeRange, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestorableTimeRangeTypeConverter.ConvertFrom)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupFindRestorableTimeRangesResponseResource(content); } @@ -180,7 +180,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupFindRestorableTimeRangesResponseResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesResponseResource.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesResponseResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesResponseResource.TypeConverter.cs index c89426e0b585..ef890fe42ccc 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesResponseResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesResponseResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesResponseResource.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesResponseResource.cs similarity index 75% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesResponseResource.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesResponseResource.cs index 18bfab4d7d0f..9857f95cbe79 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesResponseResource.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesResponseResource.cs @@ -3,68 +3,68 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// List Restore Ranges Response public partial class AzureBackupFindRestorableTimeRangesResponseResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppResourceInternal)__dppResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Id; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponse Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupFindRestorableTimeRangesResponse()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponse Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupFindRestorableTimeRangesResponse()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppResourceInternal)__dppResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupFindRestorableTimeRangesResponseInternal)Property).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseInternal)Property).ObjectType = value ?? null; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseInternal)Property).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseInternal)Property).ObjectType = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponse _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponse _property; /// AzureBackupFindRestorableTimeRangesResponseResource properties [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponse Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupFindRestorableTimeRangesResponse()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponse Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRestorableTimeRange[] RestorableTimeRange { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseInternal)Property).RestorableTimeRange; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseInternal)Property).RestorableTimeRange = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRange[] RestorableTimeRange { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseInternal)Property).RestorableTimeRange; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppResourceInternal)__dppResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Type; } /// /// Creates an new instance. @@ -89,7 +89,7 @@ public AzureBackupFindRestorableTimeRangesResponseResource() /// List Restore Ranges Response public partial interface IAzureBackupFindRestorableTimeRangesResponseResource : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResource { [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -104,19 +104,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.Api20220501.IRestorableTimeRange) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRange[] RestorableTimeRange { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRange) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRange[] RestorableTimeRange { get; set; } } /// List Restore Ranges Response internal partial interface IAzureBackupFindRestorableTimeRangesResponseResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal { string ObjectType { get; set; } /// AzureBackupFindRestorableTimeRangesResponseResource properties - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponse Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponse Property { get; set; } /// Returns the Restore Ranges available on the Backup Instance. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRange[] RestorableTimeRange { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRange[] RestorableTimeRange { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesResponseResource.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesResponseResource.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesResponseResource.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesResponseResource.json.cs index f3da587ef7c8..33fbffddd6d7 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupFindRestorableTimeRangesResponseResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupFindRestorableTimeRangesResponseResource.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -66,19 +66,19 @@ internal AzureBackupFindRestorableTimeRangesResponseResource(Microsoft.Azure.Pow { return; } - __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupFindRestorableTimeRangesResponse.FromJson(__jsonProperties) : Property;} + __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupFindRestorableTimeRangesResponse.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupJob.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupJob.PowerShell.cs similarity index 72% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupJob.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupJob.PowerShell.cs index dba04a1c354c..ad9c1c06677f 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupJob.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupJob.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class AzureBackupJob partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,173 +70,173 @@ internal AzureBackupJob(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ExtendedInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfo) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobExtendedInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfo) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobExtendedInfoTypeConverter.ConvertFrom); } if (content.Contains("ActivityId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ActivityId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ActivityId, global::System.Convert.ToString); } if (content.Contains("BackupInstanceFriendlyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).BackupInstanceFriendlyName = (string) content.GetValueForProperty("BackupInstanceFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).BackupInstanceFriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).BackupInstanceFriendlyName = (string) content.GetValueForProperty("BackupInstanceFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).BackupInstanceFriendlyName, global::System.Convert.ToString); } if (content.Contains("BackupInstanceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).BackupInstanceId = (string) content.GetValueForProperty("BackupInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).BackupInstanceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).BackupInstanceId = (string) content.GetValueForProperty("BackupInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).BackupInstanceId, global::System.Convert.ToString); } if (content.Contains("DataSourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).DataSourceId = (string) content.GetValueForProperty("DataSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).DataSourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).DataSourceId = (string) content.GetValueForProperty("DataSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).DataSourceId, global::System.Convert.ToString); } if (content.Contains("DataSourceLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).DataSourceLocation = (string) content.GetValueForProperty("DataSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).DataSourceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).DataSourceLocation = (string) content.GetValueForProperty("DataSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).DataSourceLocation, global::System.Convert.ToString); } if (content.Contains("DataSourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).DataSourceName = (string) content.GetValueForProperty("DataSourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).DataSourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).DataSourceName = (string) content.GetValueForProperty("DataSourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).DataSourceName, global::System.Convert.ToString); } if (content.Contains("DataSourceSetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).DataSourceSetName = (string) content.GetValueForProperty("DataSourceSetName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).DataSourceSetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).DataSourceSetName = (string) content.GetValueForProperty("DataSourceSetName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).DataSourceSetName, global::System.Convert.ToString); } if (content.Contains("DataSourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).DataSourceType = (string) content.GetValueForProperty("DataSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).DataSourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).DataSourceType = (string) content.GetValueForProperty("DataSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).DataSourceType, global::System.Convert.ToString); } if (content.Contains("Duration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).Duration, global::System.Convert.ToString); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IAzureBackupJobInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ErrorDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.UserFacingErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingErrorTypeConverter.ConvertFrom)); } if (content.Contains("IsUserTriggered")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).IsUserTriggered = (bool) content.GetValueForProperty("IsUserTriggered",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).IsUserTriggered, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).IsUserTriggered = (bool) content.GetValueForProperty("IsUserTriggered",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).IsUserTriggered, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("OperationCategory")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).OperationCategory = (string) content.GetValueForProperty("OperationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).OperationCategory, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).OperationCategory = (string) content.GetValueForProperty("OperationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).OperationCategory, global::System.Convert.ToString); } if (content.Contains("PolicyId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).PolicyId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).PolicyId, global::System.Convert.ToString); } if (content.Contains("PolicyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).PolicyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).PolicyName, global::System.Convert.ToString); } if (content.Contains("ProgressEnabled")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ProgressEnabled = (bool) content.GetValueForProperty("ProgressEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ProgressEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ProgressEnabled = (bool) content.GetValueForProperty("ProgressEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ProgressEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ProgressUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ProgressUrl = (string) content.GetValueForProperty("ProgressUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ProgressUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ProgressUrl = (string) content.GetValueForProperty("ProgressUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ProgressUrl, global::System.Convert.ToString); } if (content.Contains("RestoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).RestoreType = (string) content.GetValueForProperty("RestoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).RestoreType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).RestoreType = (string) content.GetValueForProperty("RestoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).RestoreType, global::System.Convert.ToString); } if (content.Contains("SourceResourceGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SourceResourceGroup = (string) content.GetValueForProperty("SourceResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SourceResourceGroup, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SourceResourceGroup = (string) content.GetValueForProperty("SourceResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SourceResourceGroup, global::System.Convert.ToString); } if (content.Contains("SourceSubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SourceSubscriptionId = (string) content.GetValueForProperty("SourceSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SourceSubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SourceSubscriptionId = (string) content.GetValueForProperty("SourceSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SourceSubscriptionId, global::System.Convert.ToString); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IAzureBackupJobInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).Status, global::System.Convert.ToString); } if (content.Contains("SubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SubscriptionId, global::System.Convert.ToString); } if (content.Contains("SupportedAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SupportedAction = (string[]) content.GetValueForProperty("SupportedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SupportedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SupportedAction = (string[]) content.GetValueForProperty("SupportedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SupportedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("VaultName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).VaultName = (string) content.GetValueForProperty("VaultName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).VaultName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).VaultName = (string) content.GetValueForProperty("VaultName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).VaultName, global::System.Convert.ToString); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SourceDataStoreName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SourceDataStoreName = (string) content.GetValueForProperty("SourceDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SourceDataStoreName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SourceDataStoreName = (string) content.GetValueForProperty("SourceDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SourceDataStoreName, global::System.Convert.ToString); } if (content.Contains("DestinationDataStoreName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).DestinationDataStoreName = (string) content.GetValueForProperty("DestinationDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).DestinationDataStoreName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).DestinationDataStoreName = (string) content.GetValueForProperty("DestinationDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).DestinationDataStoreName, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoSourceRecoverPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoSourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoSourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoSourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoSourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoSourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoSourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoTargetRecoverPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoTargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoTargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoTargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoTargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoTargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoTargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoAdditionalDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoAdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("ExtendedInfoAdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoAdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoAdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("ExtendedInfoAdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoAdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoBackupInstanceState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoBackupInstanceState = (string) content.GetValueForProperty("ExtendedInfoBackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoBackupInstanceState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoBackupInstanceState = (string) content.GetValueForProperty("ExtendedInfoBackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoBackupInstanceState, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoDataTransferredInByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoDataTransferredInByte = (double?) content.GetValueForProperty("ExtendedInfoDataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoDataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoDataTransferredInByte = (double?) content.GetValueForProperty("ExtendedInfoDataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoDataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("ExtendedInfoRecoveryDestination")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoRecoveryDestination = (string) content.GetValueForProperty("ExtendedInfoRecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoRecoveryDestination, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoRecoveryDestination = (string) content.GetValueForProperty("ExtendedInfoRecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoRecoveryDestination, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoSubTask")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoSubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTask[]) content.GetValueForProperty("ExtendedInfoSubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoSubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobSubTaskTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoSubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask[]) content.GetValueForProperty("ExtendedInfoSubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoSubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobSubTaskTypeConverter.ConvertFrom)); } if (content.Contains("SourceRecoverPointRecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("SourceRecoverPointRecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("TargetRecoverPointRecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("TargetRecoverPointRecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointTime, (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.Api20221201.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -251,193 +251,193 @@ internal AzureBackupJob(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("ExtendedInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfo) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobExtendedInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfo) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobExtendedInfoTypeConverter.ConvertFrom); } if (content.Contains("ActivityId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ActivityId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ActivityId, global::System.Convert.ToString); } if (content.Contains("BackupInstanceFriendlyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).BackupInstanceFriendlyName = (string) content.GetValueForProperty("BackupInstanceFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).BackupInstanceFriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).BackupInstanceFriendlyName = (string) content.GetValueForProperty("BackupInstanceFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).BackupInstanceFriendlyName, global::System.Convert.ToString); } if (content.Contains("BackupInstanceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).BackupInstanceId = (string) content.GetValueForProperty("BackupInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).BackupInstanceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).BackupInstanceId = (string) content.GetValueForProperty("BackupInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).BackupInstanceId, global::System.Convert.ToString); } if (content.Contains("DataSourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).DataSourceId = (string) content.GetValueForProperty("DataSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).DataSourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).DataSourceId = (string) content.GetValueForProperty("DataSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).DataSourceId, global::System.Convert.ToString); } if (content.Contains("DataSourceLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).DataSourceLocation = (string) content.GetValueForProperty("DataSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).DataSourceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).DataSourceLocation = (string) content.GetValueForProperty("DataSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).DataSourceLocation, global::System.Convert.ToString); } if (content.Contains("DataSourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).DataSourceName = (string) content.GetValueForProperty("DataSourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).DataSourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).DataSourceName = (string) content.GetValueForProperty("DataSourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).DataSourceName, global::System.Convert.ToString); } if (content.Contains("DataSourceSetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).DataSourceSetName = (string) content.GetValueForProperty("DataSourceSetName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).DataSourceSetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).DataSourceSetName = (string) content.GetValueForProperty("DataSourceSetName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).DataSourceSetName, global::System.Convert.ToString); } if (content.Contains("DataSourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).DataSourceType = (string) content.GetValueForProperty("DataSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).DataSourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).DataSourceType = (string) content.GetValueForProperty("DataSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).DataSourceType, global::System.Convert.ToString); } if (content.Contains("Duration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).Duration, global::System.Convert.ToString); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IAzureBackupJobInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ErrorDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.UserFacingErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingErrorTypeConverter.ConvertFrom)); } if (content.Contains("IsUserTriggered")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).IsUserTriggered = (bool) content.GetValueForProperty("IsUserTriggered",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).IsUserTriggered, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).IsUserTriggered = (bool) content.GetValueForProperty("IsUserTriggered",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).IsUserTriggered, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("OperationCategory")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).OperationCategory = (string) content.GetValueForProperty("OperationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).OperationCategory, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).OperationCategory = (string) content.GetValueForProperty("OperationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).OperationCategory, global::System.Convert.ToString); } if (content.Contains("PolicyId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).PolicyId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).PolicyId, global::System.Convert.ToString); } if (content.Contains("PolicyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).PolicyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).PolicyName, global::System.Convert.ToString); } if (content.Contains("ProgressEnabled")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ProgressEnabled = (bool) content.GetValueForProperty("ProgressEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ProgressEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ProgressEnabled = (bool) content.GetValueForProperty("ProgressEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ProgressEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ProgressUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ProgressUrl = (string) content.GetValueForProperty("ProgressUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ProgressUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ProgressUrl = (string) content.GetValueForProperty("ProgressUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ProgressUrl, global::System.Convert.ToString); } if (content.Contains("RestoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).RestoreType = (string) content.GetValueForProperty("RestoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).RestoreType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).RestoreType = (string) content.GetValueForProperty("RestoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).RestoreType, global::System.Convert.ToString); } if (content.Contains("SourceResourceGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SourceResourceGroup = (string) content.GetValueForProperty("SourceResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SourceResourceGroup, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SourceResourceGroup = (string) content.GetValueForProperty("SourceResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SourceResourceGroup, global::System.Convert.ToString); } if (content.Contains("SourceSubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SourceSubscriptionId = (string) content.GetValueForProperty("SourceSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SourceSubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SourceSubscriptionId = (string) content.GetValueForProperty("SourceSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SourceSubscriptionId, global::System.Convert.ToString); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IAzureBackupJobInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).Status, global::System.Convert.ToString); } if (content.Contains("SubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SubscriptionId, global::System.Convert.ToString); } if (content.Contains("SupportedAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SupportedAction = (string[]) content.GetValueForProperty("SupportedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SupportedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SupportedAction = (string[]) content.GetValueForProperty("SupportedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SupportedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("VaultName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).VaultName = (string) content.GetValueForProperty("VaultName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).VaultName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).VaultName = (string) content.GetValueForProperty("VaultName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).VaultName, global::System.Convert.ToString); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SourceDataStoreName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SourceDataStoreName = (string) content.GetValueForProperty("SourceDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SourceDataStoreName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SourceDataStoreName = (string) content.GetValueForProperty("SourceDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SourceDataStoreName, global::System.Convert.ToString); } if (content.Contains("DestinationDataStoreName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).DestinationDataStoreName = (string) content.GetValueForProperty("DestinationDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).DestinationDataStoreName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).DestinationDataStoreName = (string) content.GetValueForProperty("DestinationDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).DestinationDataStoreName, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoSourceRecoverPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoSourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoSourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoSourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoSourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoSourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoSourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoTargetRecoverPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoTargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoTargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoTargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoTargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoTargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoTargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoAdditionalDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoAdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("ExtendedInfoAdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoAdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoAdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("ExtendedInfoAdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoAdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoBackupInstanceState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoBackupInstanceState = (string) content.GetValueForProperty("ExtendedInfoBackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoBackupInstanceState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoBackupInstanceState = (string) content.GetValueForProperty("ExtendedInfoBackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoBackupInstanceState, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoDataTransferredInByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoDataTransferredInByte = (double?) content.GetValueForProperty("ExtendedInfoDataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoDataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoDataTransferredInByte = (double?) content.GetValueForProperty("ExtendedInfoDataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoDataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("ExtendedInfoRecoveryDestination")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoRecoveryDestination = (string) content.GetValueForProperty("ExtendedInfoRecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoRecoveryDestination, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoRecoveryDestination = (string) content.GetValueForProperty("ExtendedInfoRecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoRecoveryDestination, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoSubTask")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoSubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTask[]) content.GetValueForProperty("ExtendedInfoSubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).ExtendedInfoSubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobSubTaskTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoSubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask[]) content.GetValueForProperty("ExtendedInfoSubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).ExtendedInfoSubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobSubTaskTypeConverter.ConvertFrom)); } if (content.Contains("SourceRecoverPointRecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("SourceRecoverPointRecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).SourceRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("TargetRecoverPointRecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("TargetRecoverPointRecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointTime, (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.Api20221201.IAzureBackupJobInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 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.Api20220501.IAzureBackupJob DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJob DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureBackupJob(content); } /// - /// 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.Api20220501.IAzureBackupJob DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJob DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupJob(content); } @@ -447,7 +447,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJob FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJob 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/Api20220501/AzureBackupJob.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupJob.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupJob.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupJob.TypeConverter.cs index 03b59780e715..b51ce4c771a0 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupJob.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupJob.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IAzureBackupJob ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJob ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJob).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJob).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupJob.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupJob.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupJob.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupJob.cs index d42b88c84801..866846dc2209 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupJob.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupJob.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// AzureBackup Job Class public partial class AzureBackupJob : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJob, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJob, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal { /// Backing field for property. @@ -90,11 +90,11 @@ public partial class AzureBackupJob : public global::System.DateTime? EndTime { get => this._endTime; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError[] _errorDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IUserFacingError[] ErrorDetail { get => this._errorDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError[] ErrorDetail { get => this._errorDetail; } /// Backing field for property. private string _etag; @@ -103,31 +103,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.Api20220501.IJobExtendedInfo _extendedInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IJobExtendedInfo ExtendedInfo { get => (this._extendedInfo = this._extendedInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobExtendedInfo()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfo ExtendedInfo { get => (this._extendedInfo = this._extendedInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).AdditionalDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).AdditionalDetail = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)ExtendedInfo).AdditionalDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).BackupInstanceState; } + public string ExtendedInfoBackupInstanceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).DataTransferredInByte; } + public double? ExtendedInfoDataTransferredInByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).RecoveryDestination; } + public string ExtendedInfoRecoveryDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IJobSubTask[] ExtendedInfoSubTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).SubTask; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask[] ExtendedInfoSubTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)ExtendedInfo).SubTask; } /// Backing field for property. private bool _isUserTriggered; @@ -137,46 +137,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.Api20220501.IAzureBackupJobInternal.BackupInstanceId { get => this._backupInstanceId; set { {_backupInstanceId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal.BackupInstanceId { get => this._backupInstanceId; set { {_backupInstanceId = value;} } } /// Internal Acessors for EndTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal.EndTime { get => this._endTime; set { {_endTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal.EndTime { get => this._endTime; set { {_endTime = value;} } } /// Internal Acessors for ErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal.ErrorDetail { get => this._errorDetail; set { {_errorDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal.ErrorDetail { get => this._errorDetail; set { {_errorDetail = value;} } } /// Internal Acessors for ExtendedInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfo Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal.ExtendedInfo { get => (this._extendedInfo = this._extendedInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobExtendedInfo()); set { {_extendedInfo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfo Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal.ExtendedInfo { get => (this._extendedInfo = this._extendedInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobExtendedInfo()); set { {_extendedInfo = value;} } } /// Internal Acessors for ExtendedInfoBackupInstanceState - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal.ExtendedInfoBackupInstanceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).BackupInstanceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).BackupInstanceState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal.ExtendedInfoBackupInstanceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)ExtendedInfo).BackupInstanceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)ExtendedInfo).BackupInstanceState = value; } /// Internal Acessors for ExtendedInfoDataTransferredInByte - double? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal.ExtendedInfoDataTransferredInByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).DataTransferredInByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).DataTransferredInByte = value; } + double? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal.ExtendedInfoDataTransferredInByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)ExtendedInfo).DataTransferredInByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)ExtendedInfo).DataTransferredInByte = value; } /// Internal Acessors for ExtendedInfoRecoveryDestination - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal.ExtendedInfoRecoveryDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).RecoveryDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).RecoveryDestination = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal.ExtendedInfoRecoveryDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)ExtendedInfo).RecoveryDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)ExtendedInfo).RecoveryDestination = value; } /// Internal Acessors for ExtendedInfoSourceRecoverPoint - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal.ExtendedInfoSourceRecoverPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPoint = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal.ExtendedInfoSourceRecoverPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPoint = value; } /// Internal Acessors for ExtendedInfoSubTask - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTask[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal.ExtendedInfoSubTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).SubTask; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).SubTask = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal.ExtendedInfoSubTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)ExtendedInfo).SubTask; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)ExtendedInfo).SubTask = value; } /// Internal Acessors for ExtendedInfoTargetRecoverPoint - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal.ExtendedInfoTargetRecoverPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPoint = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal.ExtendedInfoTargetRecoverPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPoint = value; } /// Internal Acessors for PolicyId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal.PolicyId { get => this._policyId; set { {_policyId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal.PolicyId { get => this._policyId; set { {_policyId = value;} } } /// Internal Acessors for PolicyName - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal.PolicyName { get => this._policyName; set { {_policyName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal.PolicyName { get => this._policyName; set { {_policyName = value;} } } /// Internal Acessors for ProgressUrl - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal.ProgressUrl { get => this._progressUrl; set { {_progressUrl = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal.ProgressUrl { get => this._progressUrl; set { {_progressUrl = value;} } } /// Internal Acessors for RestoreType - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal.RestoreType { get => this._restoreType; set { {_restoreType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal.RestoreType { get => this._restoreType; set { {_restoreType = value;} } } /// Backing field for property. private string _operation; @@ -238,10 +238,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.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPointRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPointRecoveryPointId = value ?? null; } + public string SourceRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPointRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPointRecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPointRecoveryPointTime = value ?? default(global::System.DateTime); } + public global::System.DateTime? SourceRecoverPointRecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPointRecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)ExtendedInfo).SourceRecoverPointRecoveryPointTime = value ?? default(global::System.DateTime); } /// Backing field for property. private string _sourceResourceGroup; @@ -286,10 +286,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.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPointRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPointRecoveryPointId = value ?? null; } + public string TargetRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPointRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPointRecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPointRecoveryPointTime = value ?? default(global::System.DateTime); } + public global::System.DateTime? TargetRecoverPointRecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPointRecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)ExtendedInfo).TargetRecoverPointRecoveryPointTime = value ?? default(global::System.DateTime); } /// Backing field for property. private string _vaultName; @@ -402,8 +402,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.Api20220501.IUserFacingError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError[] ErrorDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError[] ErrorDetail { get; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -418,8 +418,8 @@ public partial interface IAzureBackupJob : ReadOnly = false, Description = @"Job's Additional Details", SerializedName = @"additionalDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoAdditionalDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoAdditionalDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get; set; } /// State of the Backup Instance [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -450,8 +450,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.Api20220501.IJobSubTask) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTask[] ExtendedInfoSubTask { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask[] ExtendedInfoSubTask { get; } /// Indicated that whether the job is adhoc(true) or scheduled(false) [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, @@ -645,13 +645,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.Api20220501.IUserFacingError[] ErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError[] ErrorDetail { get; set; } string Etag { get; set; } /// Extended Information about the job - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfo ExtendedInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfo ExtendedInfo { get; set; } /// Job's Additional Details - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get; set; } /// State of the Backup Instance string ExtendedInfoBackupInstanceState { get; set; } /// Number of bytes transferred @@ -659,11 +659,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.Api20220501.IRestoreJobRecoveryPointDetails ExtendedInfoSourceRecoverPoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails ExtendedInfoSourceRecoverPoint { get; set; } /// List of Sub Tasks of the job - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTask[] ExtendedInfoSubTask { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask[] ExtendedInfoSubTask { get; set; } /// Details of the Target Recovery Point - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails ExtendedInfoTargetRecoverPoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupJob.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupJob.json.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupJob.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupJob.json.cs index 906dda29e2bf..7f5b92e5580f 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupJob.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupJob.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,7 +65,7 @@ internal AzureBackupJob(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtim { return; } - {_extendedInfo = If( json?.PropertyT("extendedInfo"), out var __jsonExtendedInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobExtendedInfo.FromJson(__jsonExtendedInfo) : ExtendedInfo;} + {_extendedInfo = If( json?.PropertyT("extendedInfo"), out var __jsonExtendedInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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;} @@ -76,7 +76,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.Api20220501.IUserFacingError) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IUserFacingError) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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;} @@ -99,13 +99,13 @@ internal AzureBackupJob(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtim } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJob. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJob. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJob. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJob. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJob FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupJobResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupJobResource.PowerShell.cs similarity index 72% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupJobResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupJobResource.PowerShell.cs index 8dbd01f8d3ca..4ae8b7bee68c 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupJobResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupJobResource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class AzureBackupJobResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,193 +70,193 @@ internal AzureBackupJobResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJob) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupJobTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJob) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupJobTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfo) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobExtendedInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfo) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobExtendedInfoTypeConverter.ConvertFrom); } if (content.Contains("ActivityId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ActivityId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ActivityId, global::System.Convert.ToString); } if (content.Contains("BackupInstanceFriendlyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).BackupInstanceFriendlyName = (string) content.GetValueForProperty("BackupInstanceFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).BackupInstanceFriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).BackupInstanceFriendlyName = (string) content.GetValueForProperty("BackupInstanceFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).BackupInstanceFriendlyName, global::System.Convert.ToString); } if (content.Contains("BackupInstanceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).BackupInstanceId = (string) content.GetValueForProperty("BackupInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).BackupInstanceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).BackupInstanceId = (string) content.GetValueForProperty("BackupInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).BackupInstanceId, global::System.Convert.ToString); } if (content.Contains("DataSourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).DataSourceId = (string) content.GetValueForProperty("DataSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).DataSourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).DataSourceId = (string) content.GetValueForProperty("DataSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).DataSourceId, global::System.Convert.ToString); } if (content.Contains("DataSourceLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).DataSourceLocation = (string) content.GetValueForProperty("DataSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).DataSourceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).DataSourceLocation = (string) content.GetValueForProperty("DataSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).DataSourceLocation, global::System.Convert.ToString); } if (content.Contains("DataSourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).DataSourceName = (string) content.GetValueForProperty("DataSourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).DataSourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).DataSourceName = (string) content.GetValueForProperty("DataSourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).DataSourceName, global::System.Convert.ToString); } if (content.Contains("DataSourceSetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).DataSourceSetName = (string) content.GetValueForProperty("DataSourceSetName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).DataSourceSetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).DataSourceSetName = (string) content.GetValueForProperty("DataSourceSetName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).DataSourceSetName, global::System.Convert.ToString); } if (content.Contains("DataSourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).DataSourceType = (string) content.GetValueForProperty("DataSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).DataSourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).DataSourceType = (string) content.GetValueForProperty("DataSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).DataSourceType, global::System.Convert.ToString); } if (content.Contains("Duration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).Duration, global::System.Convert.ToString); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IAzureBackupJobResourceInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ErrorDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.UserFacingErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingErrorTypeConverter.ConvertFrom)); } if (content.Contains("IsUserTriggered")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).IsUserTriggered = (bool) content.GetValueForProperty("IsUserTriggered",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).IsUserTriggered, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).IsUserTriggered = (bool) content.GetValueForProperty("IsUserTriggered",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).IsUserTriggered, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("OperationCategory")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).OperationCategory = (string) content.GetValueForProperty("OperationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).OperationCategory, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).OperationCategory = (string) content.GetValueForProperty("OperationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).OperationCategory, global::System.Convert.ToString); } if (content.Contains("PolicyId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).PolicyId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).PolicyId, global::System.Convert.ToString); } if (content.Contains("PolicyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).PolicyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).PolicyName, global::System.Convert.ToString); } if (content.Contains("ProgressEnabled")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ProgressEnabled = (bool) content.GetValueForProperty("ProgressEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ProgressEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ProgressEnabled = (bool) content.GetValueForProperty("ProgressEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ProgressEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ProgressUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ProgressUrl = (string) content.GetValueForProperty("ProgressUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ProgressUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ProgressUrl = (string) content.GetValueForProperty("ProgressUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ProgressUrl, global::System.Convert.ToString); } if (content.Contains("RestoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).RestoreType = (string) content.GetValueForProperty("RestoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).RestoreType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).RestoreType = (string) content.GetValueForProperty("RestoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).RestoreType, global::System.Convert.ToString); } if (content.Contains("SourceResourceGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SourceResourceGroup = (string) content.GetValueForProperty("SourceResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SourceResourceGroup, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SourceResourceGroup = (string) content.GetValueForProperty("SourceResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SourceResourceGroup, global::System.Convert.ToString); } if (content.Contains("SourceSubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SourceSubscriptionId = (string) content.GetValueForProperty("SourceSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SourceSubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SourceSubscriptionId = (string) content.GetValueForProperty("SourceSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SourceSubscriptionId, global::System.Convert.ToString); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IAzureBackupJobResourceInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).Status, global::System.Convert.ToString); } if (content.Contains("SubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SubscriptionId, global::System.Convert.ToString); } if (content.Contains("SupportedAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SupportedAction = (string[]) content.GetValueForProperty("SupportedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SupportedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SupportedAction = (string[]) content.GetValueForProperty("SupportedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SupportedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("VaultName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).VaultName = (string) content.GetValueForProperty("VaultName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).VaultName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).VaultName = (string) content.GetValueForProperty("VaultName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).VaultName, global::System.Convert.ToString); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SourceDataStoreName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SourceDataStoreName = (string) content.GetValueForProperty("SourceDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SourceDataStoreName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SourceDataStoreName = (string) content.GetValueForProperty("SourceDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SourceDataStoreName, global::System.Convert.ToString); } if (content.Contains("DestinationDataStoreName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).DestinationDataStoreName = (string) content.GetValueForProperty("DestinationDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).DestinationDataStoreName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).DestinationDataStoreName = (string) content.GetValueForProperty("DestinationDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).DestinationDataStoreName, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoSourceRecoverPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoSourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoSourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoSourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoSourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoSourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoSourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoTargetRecoverPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoTargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoTargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoTargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoTargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoTargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoTargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoAdditionalDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoAdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("ExtendedInfoAdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoAdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoAdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("ExtendedInfoAdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoAdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoBackupInstanceState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoBackupInstanceState = (string) content.GetValueForProperty("ExtendedInfoBackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoBackupInstanceState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoBackupInstanceState = (string) content.GetValueForProperty("ExtendedInfoBackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoBackupInstanceState, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoDataTransferredInByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoDataTransferredInByte = (double?) content.GetValueForProperty("ExtendedInfoDataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoDataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoDataTransferredInByte = (double?) content.GetValueForProperty("ExtendedInfoDataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoDataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("ExtendedInfoRecoveryDestination")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoRecoveryDestination = (string) content.GetValueForProperty("ExtendedInfoRecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoRecoveryDestination, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoRecoveryDestination = (string) content.GetValueForProperty("ExtendedInfoRecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoRecoveryDestination, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoSubTask")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoSubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTask[]) content.GetValueForProperty("ExtendedInfoSubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoSubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobSubTaskTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoSubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask[]) content.GetValueForProperty("ExtendedInfoSubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoSubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobSubTaskTypeConverter.ConvertFrom)); } if (content.Contains("SourceRecoverPointRecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("SourceRecoverPointRecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("TargetRecoverPointRecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("TargetRecoverPointRecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointTime, (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.Api20221201.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -271,215 +271,215 @@ internal AzureBackupJobResource(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJob) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupJobTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJob) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupJobTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfo) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobExtendedInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfo) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobExtendedInfoTypeConverter.ConvertFrom); } if (content.Contains("ActivityId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ActivityId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ActivityId = (string) content.GetValueForProperty("ActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ActivityId, global::System.Convert.ToString); } if (content.Contains("BackupInstanceFriendlyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).BackupInstanceFriendlyName = (string) content.GetValueForProperty("BackupInstanceFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).BackupInstanceFriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).BackupInstanceFriendlyName = (string) content.GetValueForProperty("BackupInstanceFriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).BackupInstanceFriendlyName, global::System.Convert.ToString); } if (content.Contains("BackupInstanceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).BackupInstanceId = (string) content.GetValueForProperty("BackupInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).BackupInstanceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).BackupInstanceId = (string) content.GetValueForProperty("BackupInstanceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).BackupInstanceId, global::System.Convert.ToString); } if (content.Contains("DataSourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).DataSourceId = (string) content.GetValueForProperty("DataSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).DataSourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).DataSourceId = (string) content.GetValueForProperty("DataSourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).DataSourceId, global::System.Convert.ToString); } if (content.Contains("DataSourceLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).DataSourceLocation = (string) content.GetValueForProperty("DataSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).DataSourceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).DataSourceLocation = (string) content.GetValueForProperty("DataSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).DataSourceLocation, global::System.Convert.ToString); } if (content.Contains("DataSourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).DataSourceName = (string) content.GetValueForProperty("DataSourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).DataSourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).DataSourceName = (string) content.GetValueForProperty("DataSourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).DataSourceName, global::System.Convert.ToString); } if (content.Contains("DataSourceSetName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).DataSourceSetName = (string) content.GetValueForProperty("DataSourceSetName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).DataSourceSetName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).DataSourceSetName = (string) content.GetValueForProperty("DataSourceSetName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).DataSourceSetName, global::System.Convert.ToString); } if (content.Contains("DataSourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).DataSourceType = (string) content.GetValueForProperty("DataSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).DataSourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).DataSourceType = (string) content.GetValueForProperty("DataSourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).DataSourceType, global::System.Convert.ToString); } if (content.Contains("Duration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).Duration, global::System.Convert.ToString); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IAzureBackupJobResourceInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ErrorDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.UserFacingErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingErrorTypeConverter.ConvertFrom)); } if (content.Contains("IsUserTriggered")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).IsUserTriggered = (bool) content.GetValueForProperty("IsUserTriggered",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).IsUserTriggered, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).IsUserTriggered = (bool) content.GetValueForProperty("IsUserTriggered",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).IsUserTriggered, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("OperationCategory")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).OperationCategory = (string) content.GetValueForProperty("OperationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).OperationCategory, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).OperationCategory = (string) content.GetValueForProperty("OperationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).OperationCategory, global::System.Convert.ToString); } if (content.Contains("PolicyId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).PolicyId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).PolicyId, global::System.Convert.ToString); } if (content.Contains("PolicyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).PolicyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).PolicyName = (string) content.GetValueForProperty("PolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).PolicyName, global::System.Convert.ToString); } if (content.Contains("ProgressEnabled")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ProgressEnabled = (bool) content.GetValueForProperty("ProgressEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ProgressEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ProgressEnabled = (bool) content.GetValueForProperty("ProgressEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ProgressEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ProgressUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ProgressUrl = (string) content.GetValueForProperty("ProgressUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ProgressUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ProgressUrl = (string) content.GetValueForProperty("ProgressUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ProgressUrl, global::System.Convert.ToString); } if (content.Contains("RestoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).RestoreType = (string) content.GetValueForProperty("RestoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).RestoreType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).RestoreType = (string) content.GetValueForProperty("RestoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).RestoreType, global::System.Convert.ToString); } if (content.Contains("SourceResourceGroup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SourceResourceGroup = (string) content.GetValueForProperty("SourceResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SourceResourceGroup, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SourceResourceGroup = (string) content.GetValueForProperty("SourceResourceGroup",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SourceResourceGroup, global::System.Convert.ToString); } if (content.Contains("SourceSubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SourceSubscriptionId = (string) content.GetValueForProperty("SourceSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SourceSubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SourceSubscriptionId = (string) content.GetValueForProperty("SourceSubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SourceSubscriptionId, global::System.Convert.ToString); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IAzureBackupJobResourceInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).Status, global::System.Convert.ToString); } if (content.Contains("SubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SubscriptionId, global::System.Convert.ToString); } if (content.Contains("SupportedAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SupportedAction = (string[]) content.GetValueForProperty("SupportedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SupportedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SupportedAction = (string[]) content.GetValueForProperty("SupportedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SupportedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("VaultName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).VaultName = (string) content.GetValueForProperty("VaultName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).VaultName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).VaultName = (string) content.GetValueForProperty("VaultName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).VaultName, global::System.Convert.ToString); } if (content.Contains("Etag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).Etag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).Etag, global::System.Convert.ToString); } if (content.Contains("SourceDataStoreName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SourceDataStoreName = (string) content.GetValueForProperty("SourceDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SourceDataStoreName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SourceDataStoreName = (string) content.GetValueForProperty("SourceDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SourceDataStoreName, global::System.Convert.ToString); } if (content.Contains("DestinationDataStoreName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).DestinationDataStoreName = (string) content.GetValueForProperty("DestinationDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).DestinationDataStoreName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).DestinationDataStoreName = (string) content.GetValueForProperty("DestinationDataStoreName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).DestinationDataStoreName, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoSourceRecoverPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoSourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoSourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoSourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoSourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoSourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoSourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoTargetRecoverPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoTargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoTargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoTargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoTargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("ExtendedInfoTargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoTargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoAdditionalDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoAdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("ExtendedInfoAdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoAdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoAdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("ExtendedInfoAdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoAdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); } if (content.Contains("ExtendedInfoBackupInstanceState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoBackupInstanceState = (string) content.GetValueForProperty("ExtendedInfoBackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoBackupInstanceState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoBackupInstanceState = (string) content.GetValueForProperty("ExtendedInfoBackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoBackupInstanceState, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoDataTransferredInByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoDataTransferredInByte = (double?) content.GetValueForProperty("ExtendedInfoDataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoDataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoDataTransferredInByte = (double?) content.GetValueForProperty("ExtendedInfoDataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoDataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("ExtendedInfoRecoveryDestination")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoRecoveryDestination = (string) content.GetValueForProperty("ExtendedInfoRecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoRecoveryDestination, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoRecoveryDestination = (string) content.GetValueForProperty("ExtendedInfoRecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoRecoveryDestination, global::System.Convert.ToString); } if (content.Contains("ExtendedInfoSubTask")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoSubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTask[]) content.GetValueForProperty("ExtendedInfoSubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).ExtendedInfoSubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobSubTaskTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoSubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask[]) content.GetValueForProperty("ExtendedInfoSubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).ExtendedInfoSubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobSubTaskTypeConverter.ConvertFrom)); } if (content.Contains("SourceRecoverPointRecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("SourceRecoverPointRecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).SourceRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("TargetRecoverPointRecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("TargetRecoverPointRecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointTime, (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.Api20221201.IAzureBackupJobResourceInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 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.Api20220501.IAzureBackupJobResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureBackupJobResource(content); } /// - /// 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.Api20220501.IAzureBackupJobResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupJobResource(content); } @@ -489,7 +489,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResource 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/Api20220501/AzureBackupJobResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupJobResource.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupJobResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupJobResource.TypeConverter.cs index 23babaae1f91..4ea952200fa8 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupJobResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupJobResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IAzureBackupJobResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupJobResource.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupJobResource.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupJobResource.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupJobResource.cs index 373d5708d220..8d63be8d280c 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupJobResource.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupJobResource.cs @@ -3,252 +3,252 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// AzureBackup Job Resource Class public partial class AzureBackupJobResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).ActivityId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).ActivityId = value ?? null; } + public string ActivityId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).ActivityId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).BackupInstanceFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).BackupInstanceFriendlyName = value ?? null; } + public string BackupInstanceFriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).BackupInstanceFriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).BackupInstanceId; } + public string BackupInstanceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).DataSourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).DataSourceId = value ?? null; } + public string DataSourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).DataSourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).DataSourceLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).DataSourceLocation = value ?? null; } + public string DataSourceLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).DataSourceLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).DataSourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).DataSourceName = value ?? null; } + public string DataSourceName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).DataSourceName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).DataSourceSetName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).DataSourceSetName = value ?? null; } + public string DataSourceSetName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).DataSourceSetName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).DataSourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).DataSourceType = value ?? null; } + public string DataSourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).DataSourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).DestinationDataStoreName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).DestinationDataStoreName = value ?? null; } + public string DestinationDataStoreName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).DestinationDataStoreName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).Duration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).Duration = value ?? null; } + public string Duration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).Duration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).EndTime; } + public global::System.DateTime? EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IUserFacingError[] ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).ErrorDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError[] ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).Etag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).Etag = value ?? null; } + public string Etag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).Etag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).ExtendedInfoAdditionalDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).ExtendedInfoAdditionalDetail = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).ExtendedInfoAdditionalDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).ExtendedInfoBackupInstanceState; } + public string ExtendedInfoBackupInstanceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).ExtendedInfoDataTransferredInByte; } + public double? ExtendedInfoDataTransferredInByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).ExtendedInfoRecoveryDestination; } + public string ExtendedInfoRecoveryDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IJobSubTask[] ExtendedInfoSubTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).ExtendedInfoSubTask; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask[] ExtendedInfoSubTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppResourceInternal)__dppResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).IsUserTriggered; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).IsUserTriggered = value ?? default(bool); } + public bool? IsUserTriggered { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).IsUserTriggered; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).IsUserTriggered = value ?? default(bool); } /// Internal Acessors for BackupInstanceId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal.BackupInstanceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).BackupInstanceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).BackupInstanceId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal.BackupInstanceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).BackupInstanceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).BackupInstanceId = value; } /// Internal Acessors for EndTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal.EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).EndTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal.EndTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).EndTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).EndTime = value; } /// Internal Acessors for ErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal.ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).ErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).ErrorDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal.ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).ErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).ErrorDetail = value; } /// Internal Acessors for ExtendedInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfo Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal.ExtendedInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).ExtendedInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).ExtendedInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfo Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal.ExtendedInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).ExtendedInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).ExtendedInfo = value; } /// Internal Acessors for ExtendedInfoBackupInstanceState - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal.ExtendedInfoBackupInstanceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).ExtendedInfoBackupInstanceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).ExtendedInfoBackupInstanceState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal.ExtendedInfoBackupInstanceState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).ExtendedInfoBackupInstanceState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).ExtendedInfoBackupInstanceState = value; } /// Internal Acessors for ExtendedInfoDataTransferredInByte - double? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal.ExtendedInfoDataTransferredInByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).ExtendedInfoDataTransferredInByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).ExtendedInfoDataTransferredInByte = value; } + double? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal.ExtendedInfoDataTransferredInByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).ExtendedInfoDataTransferredInByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).ExtendedInfoDataTransferredInByte = value; } /// Internal Acessors for ExtendedInfoRecoveryDestination - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal.ExtendedInfoRecoveryDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).ExtendedInfoRecoveryDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).ExtendedInfoRecoveryDestination = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal.ExtendedInfoRecoveryDestination { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).ExtendedInfoRecoveryDestination; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).ExtendedInfoRecoveryDestination = value; } /// Internal Acessors for ExtendedInfoSourceRecoverPoint - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal.ExtendedInfoSourceRecoverPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).ExtendedInfoSourceRecoverPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).ExtendedInfoSourceRecoverPoint = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal.ExtendedInfoSourceRecoverPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).ExtendedInfoSourceRecoverPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).ExtendedInfoSourceRecoverPoint = value; } /// Internal Acessors for ExtendedInfoSubTask - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTask[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal.ExtendedInfoSubTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).ExtendedInfoSubTask; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).ExtendedInfoSubTask = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal.ExtendedInfoSubTask { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).ExtendedInfoSubTask; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).ExtendedInfoSubTask = value; } /// Internal Acessors for ExtendedInfoTargetRecoverPoint - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal.ExtendedInfoTargetRecoverPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).ExtendedInfoTargetRecoverPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).ExtendedInfoTargetRecoverPoint = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal.ExtendedInfoTargetRecoverPoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).ExtendedInfoTargetRecoverPoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).ExtendedInfoTargetRecoverPoint = value; } /// Internal Acessors for PolicyId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal.PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).PolicyId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).PolicyId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal.PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).PolicyId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).PolicyId = value; } /// Internal Acessors for PolicyName - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal.PolicyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).PolicyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).PolicyName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal.PolicyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).PolicyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).PolicyName = value; } /// Internal Acessors for ProgressUrl - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal.ProgressUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).ProgressUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).ProgressUrl = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal.ProgressUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).ProgressUrl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).ProgressUrl = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJob Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupJob()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJob Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupJob()); set { {_property = value;} } } /// Internal Acessors for RestoreType - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceInternal.RestoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).RestoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).RestoreType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceInternal.RestoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).RestoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).RestoreType = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppResourceInternal)__dppResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).Operation = value ?? null; } + public string Operation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).OperationCategory; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).OperationCategory = value ?? null; } + public string OperationCategory { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).OperationCategory; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).PolicyId; } + public string PolicyId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).PolicyName; } + public string PolicyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).ProgressEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).ProgressEnabled = value ?? default(bool); } + public bool? ProgressEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).ProgressEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).ProgressUrl; } + public string ProgressUrl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).ProgressUrl; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJob _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJob _property; /// AzureBackupJobResource properties [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJob Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupJob()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJob Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).RestoreType; } + public string RestoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).SourceDataStoreName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).SourceDataStoreName = value ?? null; } + public string SourceDataStoreName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).SourceDataStoreName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).SourceRecoverPointRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).SourceRecoverPointRecoveryPointId = value ?? null; } + public string SourceRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).SourceRecoverPointRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).SourceRecoverPointRecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).SourceRecoverPointRecoveryPointTime = value ?? default(global::System.DateTime); } + public global::System.DateTime? SourceRecoverPointRecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).SourceRecoverPointRecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).SourceResourceGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).SourceResourceGroup = value ?? null; } + public string SourceResourceGroup { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).SourceResourceGroup; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).SourceSubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).SourceSubscriptionId = value ?? null; } + public string SourceSubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).SourceSubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).StartTime = value ?? default(global::System.DateTime); } + public global::System.DateTime? StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).Status = value ?? null; } + public string Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).SubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).SubscriptionId = value ?? null; } + public string SubscriptionId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).SubscriptionId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).SupportedAction; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).SupportedAction = value ?? null /* arrayOf */; } + public string[] SupportedAction { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).SupportedAction; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).TargetRecoverPointRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).TargetRecoverPointRecoveryPointId = value ?? null; } + public string TargetRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).TargetRecoverPointRecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).TargetRecoverPointRecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).TargetRecoverPointRecoveryPointTime = value ?? default(global::System.DateTime); } + public global::System.DateTime? TargetRecoverPointRecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).TargetRecoverPointRecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppResourceInternal)__dppResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobInternal)Property).VaultName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobInternal)Property).VaultName = value ?? null; } + public string VaultName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).VaultName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobInternal)Property).VaultName = value ?? null; } /// Creates an new instance. public AzureBackupJobResource() @@ -271,7 +271,7 @@ public AzureBackupJobResource() /// AzureBackup Job Resource Class public partial interface IAzureBackupJobResource : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResource { /// Job Activity Id [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -367,8 +367,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.Api20220501.IUserFacingError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError[] ErrorDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError[] ErrorDetail { get; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -383,8 +383,8 @@ public partial interface IAzureBackupJobResource : ReadOnly = false, Description = @"Job's Additional Details", SerializedName = @"additionalDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoAdditionalDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoAdditionalDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get; set; } /// State of the Backup Instance [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -415,8 +415,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.Api20220501.IJobSubTask) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTask[] ExtendedInfoSubTask { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask[] ExtendedInfoSubTask { get; } /// Indicated that whether the job is adhoc(true) or scheduled(false) [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -585,7 +585,7 @@ public partial interface IAzureBackupJobResource : } /// AzureBackup Job Resource Class internal partial interface IAzureBackupJobResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal { /// Job Activity Id string ActivityId { get; set; } @@ -610,13 +610,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.Api20220501.IUserFacingError[] ErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError[] ErrorDetail { get; set; } string Etag { get; set; } /// Extended Information about the job - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfo ExtendedInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfo ExtendedInfo { get; set; } /// Job's Additional Details - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoAdditionalDetails ExtendedInfoAdditionalDetail { get; set; } /// State of the Backup Instance string ExtendedInfoBackupInstanceState { get; set; } /// Number of bytes transferred @@ -624,11 +624,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.Api20220501.IRestoreJobRecoveryPointDetails ExtendedInfoSourceRecoverPoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails ExtendedInfoSourceRecoverPoint { get; set; } /// List of Sub Tasks of the job - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTask[] ExtendedInfoSubTask { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask[] ExtendedInfoSubTask { get; set; } /// Details of the Target Recovery Point - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails ExtendedInfoTargetRecoverPoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails ExtendedInfoTargetRecoverPoint { get; set; } /// Indicated that whether the job is adhoc(true) or scheduled(false) bool? IsUserTriggered { get; set; } /// @@ -646,7 +646,7 @@ internal partial interface IAzureBackupJobResourceInternal : /// Url which contains job's progress string ProgressUrl { get; set; } /// AzureBackupJobResource properties - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJob Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupJobResource.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupJobResource.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupJobResource.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupJobResource.json.cs index 509f5336044a..321bdabf5f88 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupJobResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupJobResource.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,19 +65,19 @@ internal AzureBackupJobResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtectio { return; } - __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupJob.FromJson(__jsonProperties) : Property;} + __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupJob.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupJobResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupJobResourceList.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupJobResourceList.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupJobResourceList.PowerShell.cs index d446e905ffd9..13f26b8e709b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupJobResourceList.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupJobResourceList.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,17 +70,17 @@ internal AzureBackupJobResourceList(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupJobResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupJobResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -95,39 +95,39 @@ internal AzureBackupJobResourceList(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupJobResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupJobResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupJobResourceList(content); } @@ -137,7 +137,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupJobResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupJobResourceList.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupJobResourceList.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupJobResourceList.TypeConverter.cs index 73f616188e24..e7490499b457 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupJobResourceList.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupJobResourceList.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IAzureBackupJobResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupJobResourceList.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupJobResourceList.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupJobResourceList.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupJobResourceList.cs index 5072562709e4..82a96c7cd288 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupJobResourceList.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupJobResourceList.cs @@ -3,34 +3,34 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// List of AzureBackup Job resources public partial class AzureBackupJobResourceList : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceListInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceListInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppResourceList(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } + public string NextLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResource[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupJobResource[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResource[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public AzureBackupJobResourceList() @@ -53,7 +53,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.Api20220501.IDppResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceList { /// List of resources. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -61,16 +61,16 @@ public partial interface IAzureBackupJobResourceList : ReadOnly = false, Description = @"List of resources.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResource[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResource[] Value { get; set; } } /// List of AzureBackup Job resources internal partial interface IAzureBackupJobResourceListInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal { /// List of resources. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResource[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResource[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupJobResourceList.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupJobResourceList.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupJobResourceList.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupJobResourceList.json.cs index 137023b16d91..9a0dc72d10d9 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupJobResourceList.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupJobResourceList.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,19 +65,19 @@ internal AzureBackupJobResourceList(Microsoft.Azure.PowerShell.Cmdlets.DataProte { return; } - __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20220501.IAzureBackupJobResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupJobResource.FromJson(__u) )) ))() : null : Value;} + __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20221201.IAzureBackupJobResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupJobResource.FromJson(__u) )) ))() : null : Value;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupParams.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupParams.PowerShell.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupParams.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupParams.PowerShell.cs index 2853fd6119fb..c3e28845fb59 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupParams.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupParams.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,17 +70,17 @@ internal AzureBackupParams(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("BackupType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupParamsInternal)this).BackupType = (string) content.GetValueForProperty("BackupType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupParamsInternal)this).BackupType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupParamsInternal)this).BackupType = (string) content.GetValueForProperty("BackupType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupParamsInternal)this).BackupType, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParametersInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -95,37 +95,37 @@ internal AzureBackupParams(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("BackupType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupParamsInternal)this).BackupType = (string) content.GetValueForProperty("BackupType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupParamsInternal)this).BackupType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupParamsInternal)this).BackupType = (string) content.GetValueForProperty("BackupType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupParamsInternal)this).BackupType, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParametersInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupParams DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupParams DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupParams DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupParams(content); } @@ -135,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupParams FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupParams.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupParams.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupParams.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupParams.TypeConverter.cs index b0daa3d36350..6992d7788672 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupParams.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupParams.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IAzureBackupParams ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupParams ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupParams).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupParams).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupParams.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupParams.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupParams.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupParams.cs index 27a39ac1a87a..29f9cf934b1a 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupParams.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupParams.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure backup parameters public partial class AzureBackupParams : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupParams, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupParamsInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupParams, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupParamsInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParameters __backupParameters = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParameters __backupParameters = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupParameters(); /// Backing field for property. private string _backupType; @@ -28,7 +28,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.Api20220501.IBackupParametersInternal)__backupParameters).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParametersInternal)__backupParameters).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParametersInternal)__backupParameters).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParametersInternal)__backupParameters).ObjectType = value ; } /// Creates an new instance. public AzureBackupParams() @@ -51,7 +51,7 @@ public AzureBackupParams() /// Azure backup parameters public partial interface IAzureBackupParams : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParameters { /// BackupType ; Full/Incremental etc [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -65,7 +65,7 @@ public partial interface IAzureBackupParams : } /// Azure backup parameters internal partial interface IAzureBackupParamsInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParametersInternal { /// BackupType ; Full/Incremental etc string BackupType { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupParams.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupParams.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupParams.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupParams.json.cs index 4d135ab37470..3274bd264bfe 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupParams.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupParams.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,19 +65,19 @@ internal AzureBackupParams(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Run { return; } - __backupParameters = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupParameters(json); + __backupParameters = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupParams. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupParams. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupParams. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupParams. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupParams FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupRecoveryPoint.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPoint.PowerShell.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPoint.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPoint.PowerShell.cs index fc52cede85da..e7e7eeabc62b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPoint.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPoint.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,13 +70,13 @@ internal AzureBackupRecoveryPoint(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -91,35 +91,35 @@ internal AzureBackupRecoveryPoint(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupRecoveryPoint DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupRecoveryPoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRecoveryPoint(content); } @@ -129,7 +129,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupRecoveryPoint.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPoint.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPoint.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPoint.TypeConverter.cs index a85e4180e33d..2483d967bd0e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPoint.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPoint.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IAzureBackupRecoveryPoint ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPoint ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPoint).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPoint).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPoint.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPoint.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPoint.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPoint.cs index 56269954b5e5..18b90b575ecf 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPoint.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPoint.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure backup recoveryPoint public partial class AzureBackupRecoveryPoint : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPoint, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPoint, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPoint.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPoint.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPoint.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPoint.json.cs index 66f57a074b7a..019148fe3d36 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPoint.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPoint.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -70,15 +70,15 @@ internal AzureBackupRecoveryPoint(Microsoft.Azure.PowerShell.Cmdlets.DataProtect } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPoint. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPoint interface is + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPoint. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupRecoveryPoint. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPoint. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupRecoveryPointBasedRestoreRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointBasedRestoreRequest.PowerShell.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointBasedRestoreRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointBasedRestoreRequest.PowerShell.cs index 1d4873eec93e..800b42f3bcb0 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointBasedRestoreRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointBasedRestoreRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,29 +70,29 @@ internal AzureBackupRecoveryPointBasedRestoreRequest(global::System.Collections. // actually deserialize if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RestoreTargetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreTargetInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("SourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); } if (content.Contains("SourceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceResourceId, 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,51 +107,51 @@ internal AzureBackupRecoveryPointBasedRestoreRequest(global::System.Management.A // actually deserialize if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RestoreTargetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreTargetInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("SourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); } if (content.Contains("SourceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceResourceId, 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.Api20220501.IAzureBackupRecoveryPointBasedRestoreRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupRecoveryPointBasedRestoreRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointBasedRestoreRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRecoveryPointBasedRestoreRequest(content); } @@ -164,7 +164,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointBasedRestoreRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupRecoveryPointBasedRestoreRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointBasedRestoreRequest.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointBasedRestoreRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointBasedRestoreRequest.TypeConverter.cs index c764b1c90829..f3135f4ddfd1 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointBasedRestoreRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointBasedRestoreRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointBasedRestoreRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointBasedRestoreRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointBasedRestoreRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointBasedRestoreRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointBasedRestoreRequest.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointBasedRestoreRequest.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointBasedRestoreRequest.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointBasedRestoreRequest.cs index 3a5282580c98..8af9099b301d 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointBasedRestoreRequest.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointBasedRestoreRequest.cs @@ -3,24 +3,24 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IAzureBackupRecoveryPointBasedRestoreRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointBasedRestoreRequestInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointBasedRestoreRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointBasedRestoreRequestInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest __azureBackupRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRestoreRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest __azureBackupRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRestoreRequest(); [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).ObjectType = value ; } /// Backing field for property. private string _recoveryPointId; @@ -30,17 +30,17 @@ 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.Api20220501.IRestoreTargetInfoBase RestoreTargetInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfo = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase RestoreTargetInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfo = value ; } /// 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.Api20220501.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceDataStoreType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType SourceDataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceDataStoreType = value ; } /// /// Fully qualified Azure Resource Manager ID of the datasource which is being recovered. /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string SourceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceResourceId = value ?? null; } + public string SourceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceResourceId = value ?? null; } /// /// Creates an new instance. @@ -65,7 +65,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.Api20220501.IAzureBackupRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest { [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, @@ -78,7 +78,7 @@ public partial interface IAzureBackupRecoveryPointBasedRestoreRequest : } /// Azure backup recoveryPoint based restore request internal partial interface IAzureBackupRecoveryPointBasedRestoreRequestInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal { string RecoveryPointId { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointBasedRestoreRequest.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointBasedRestoreRequest.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointBasedRestoreRequest.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointBasedRestoreRequest.json.cs index b66d7635e835..45d11ce53932 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointBasedRestoreRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointBasedRestoreRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,22 +65,22 @@ internal AzureBackupRecoveryPointBasedRestoreRequest(Microsoft.Azure.PowerShell. { return; } - __azureBackupRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRestoreRequest(json); + __azureBackupRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupRecoveryPointBasedRestoreRequest. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointBasedRestoreRequest + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointBasedRestoreRequest. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupRecoveryPointBasedRestoreRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointBasedRestoreRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointBasedRestoreRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupRecoveryPointResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointResource.PowerShell.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointResource.PowerShell.cs index a8d3b40d905f..f559c73eeb74 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointResource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,33 +70,33 @@ internal AzureBackupRecoveryPointResource(global::System.Collections.IDictionary // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPoint) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRecoveryPointTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPoint) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRecoveryPointTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -111,55 +111,55 @@ internal AzureBackupRecoveryPointResource(global::System.Management.Automation.P // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPoint) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRecoveryPointTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPoint) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRecoveryPointTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupRecoveryPointResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupRecoveryPointResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRecoveryPointResource(content); } @@ -169,7 +169,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupRecoveryPointResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointResource.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointResource.TypeConverter.cs index b3f794661ba2..582b36408aad 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointResource.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointResource.cs similarity index 75% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointResource.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointResource.cs index 2a596bc412e3..6384b5036a7b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointResource.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointResource.cs @@ -3,64 +3,64 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure backup recoveryPoint resource public partial class AzureBackupRecoveryPointResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppResourceInternal)__dppResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Id; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPoint Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRecoveryPoint()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPoint Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRecoveryPoint()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppResourceInternal)__dppResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupRecoveryPointInternal)Property).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointInternal)Property).ObjectType = value ?? null; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointInternal)Property).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointInternal)Property).ObjectType = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPoint _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPoint _property; /// AzureBackupRecoveryPointResource properties [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPoint Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRecoveryPoint()); set => this._property = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPoint Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppResourceInternal)__dppResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Type; } /// Creates an new instance. public AzureBackupRecoveryPointResource() @@ -83,7 +83,7 @@ public AzureBackupRecoveryPointResource() /// Azure backup recoveryPoint resource public partial interface IAzureBackupRecoveryPointResource : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResource { [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -96,11 +96,11 @@ public partial interface IAzureBackupRecoveryPointResource : } /// Azure backup recoveryPoint resource internal partial interface IAzureBackupRecoveryPointResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal { string ObjectType { get; set; } /// AzureBackupRecoveryPointResource properties - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPoint Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPoint Property { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointResource.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointResource.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointResource.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointResource.json.cs index b3b94027cf9e..f0381a4edd82 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointResource.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,19 +65,19 @@ internal AzureBackupRecoveryPointResource(Microsoft.Azure.PowerShell.Cmdlets.Dat { return; } - __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRecoveryPoint.FromJson(__jsonProperties) : Property;} + __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRecoveryPoint.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupRecoveryPointResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointResourceList.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointResourceList.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointResourceList.PowerShell.cs index 2f52e70ede65..91d0e23850c3 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointResourceList.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointResourceList.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,17 +70,17 @@ internal AzureBackupRecoveryPointResourceList(global::System.Collections.IDictio // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRecoveryPointResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRecoveryPointResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -95,39 +95,39 @@ internal AzureBackupRecoveryPointResourceList(global::System.Management.Automati // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRecoveryPointResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRecoveryPointResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupRecoveryPointResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupRecoveryPointResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRecoveryPointResourceList(content); } @@ -139,7 +139,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupRecoveryPointResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointResourceList.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointResourceList.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointResourceList.TypeConverter.cs index a8bcc6029a78..34894917b324 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointResourceList.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointResourceList.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -109,14 +109,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointResourceList.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointResourceList.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointResourceList.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointResourceList.cs index 678e9145152d..72d3c180a92d 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointResourceList.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointResourceList.cs @@ -3,34 +3,34 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure backup recoveryPoint resource list public partial class AzureBackupRecoveryPointResourceList : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResourceListInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResourceListInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppResourceList(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } + public string NextLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupRecoveryPointResource[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public AzureBackupRecoveryPointResourceList() @@ -53,7 +53,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.Api20220501.IDppResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceList { /// List of resources. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -61,16 +61,16 @@ public partial interface IAzureBackupRecoveryPointResourceList : ReadOnly = false, Description = @"List of resources.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource[] Value { get; set; } } /// Azure backup recoveryPoint resource list internal partial interface IAzureBackupRecoveryPointResourceListInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal { /// List of resources. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointResourceList.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointResourceList.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointResourceList.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointResourceList.json.cs index 3c3d8551746f..31c885d408ff 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryPointResourceList.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryPointResourceList.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,19 +65,19 @@ internal AzureBackupRecoveryPointResourceList(Microsoft.Azure.PowerShell.Cmdlets { return; } - __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20220501.IAzureBackupRecoveryPointResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRecoveryPointResource.FromJson(__u) )) ))() : null : Value;} + __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20221201.IAzureBackupRecoveryPointResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRecoveryPointResource.FromJson(__u) )) ))() : null : Value;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupRecoveryTimeBasedRestoreRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryTimeBasedRestoreRequest.PowerShell.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryTimeBasedRestoreRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryTimeBasedRestoreRequest.PowerShell.cs index d1d225ea96d5..2b41c2ebe654 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryTimeBasedRestoreRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryTimeBasedRestoreRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,29 +70,29 @@ internal AzureBackupRecoveryTimeBasedRestoreRequest(global::System.Collections.I // actually deserialize if (content.Contains("RecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryTimeBasedRestoreRequestInternal)this).RecoveryPointTime = (string) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryTimeBasedRestoreRequestInternal)this).RecoveryPointTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryTimeBasedRestoreRequestInternal)this).RecoveryPointTime = (string) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryTimeBasedRestoreRequestInternal)this).RecoveryPointTime, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RestoreTargetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreTargetInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("SourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); } if (content.Contains("SourceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceResourceId, 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,51 +107,51 @@ internal AzureBackupRecoveryTimeBasedRestoreRequest(global::System.Management.Au // actually deserialize if (content.Contains("RecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryTimeBasedRestoreRequestInternal)this).RecoveryPointTime = (string) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryTimeBasedRestoreRequestInternal)this).RecoveryPointTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryTimeBasedRestoreRequestInternal)this).RecoveryPointTime = (string) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryTimeBasedRestoreRequestInternal)this).RecoveryPointTime, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RestoreTargetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreTargetInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("SourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); } if (content.Contains("SourceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceResourceId, 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.Api20220501.IAzureBackupRecoveryTimeBasedRestoreRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupRecoveryTimeBasedRestoreRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryTimeBasedRestoreRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRecoveryTimeBasedRestoreRequest(content); } @@ -164,7 +164,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryTimeBasedRestoreRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupRecoveryTimeBasedRestoreRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryTimeBasedRestoreRequest.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryTimeBasedRestoreRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryTimeBasedRestoreRequest.TypeConverter.cs index 9683731d3a84..d19669978597 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryTimeBasedRestoreRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryTimeBasedRestoreRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryTimeBasedRestoreRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryTimeBasedRestoreRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryTimeBasedRestoreRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryTimeBasedRestoreRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryTimeBasedRestoreRequest.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryTimeBasedRestoreRequest.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryTimeBasedRestoreRequest.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryTimeBasedRestoreRequest.cs index c1267f406343..65aedef34c67 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryTimeBasedRestoreRequest.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryTimeBasedRestoreRequest.cs @@ -3,24 +3,24 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// AzureBackup RecoveryPointTime Based Restore Request public partial class AzureBackupRecoveryTimeBasedRestoreRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryTimeBasedRestoreRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryTimeBasedRestoreRequestInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryTimeBasedRestoreRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryTimeBasedRestoreRequestInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest __azureBackupRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRestoreRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest __azureBackupRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRestoreRequest(); [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).ObjectType = value ; } /// Backing field for property. private string _recoveryPointTime; @@ -31,17 +31,17 @@ 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.Api20220501.IRestoreTargetInfoBase RestoreTargetInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfo = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase RestoreTargetInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).RestoreTargetInfo = value ; } /// 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.Api20220501.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceDataStoreType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType SourceDataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceDataStoreType = value ; } /// /// Fully qualified Azure Resource Manager ID of the datasource which is being recovered. /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string SourceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceResourceId = value ?? null; } + public string SourceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)__azureBackupRestoreRequest).SourceResourceId = value ?? null; } /// /// Creates an new instance. @@ -66,7 +66,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.Api20220501.IAzureBackupRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest { /// The recovery time in ISO 8601 format example - 2020-08-14T17:30:00.0000000Z. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -80,7 +80,7 @@ public partial interface IAzureBackupRecoveryTimeBasedRestoreRequest : } /// AzureBackup RecoveryPointTime Based Restore Request internal partial interface IAzureBackupRecoveryTimeBasedRestoreRequestInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupRecoveryTimeBasedRestoreRequest.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryTimeBasedRestoreRequest.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryTimeBasedRestoreRequest.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryTimeBasedRestoreRequest.json.cs index 2c88040e8660..4e15c2a41290 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRecoveryTimeBasedRestoreRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRecoveryTimeBasedRestoreRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,19 +65,19 @@ internal AzureBackupRecoveryTimeBasedRestoreRequest(Microsoft.Azure.PowerShell.C { return; } - __azureBackupRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRestoreRequest(json); + __azureBackupRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupRecoveryTimeBasedRestoreRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryTimeBasedRestoreRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryTimeBasedRestoreRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryTimeBasedRestoreRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryTimeBasedRestoreRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupRehydrationRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRehydrationRequest.PowerShell.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRehydrationRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRehydrationRequest.PowerShell.cs index 9a09a677fe50..6354a7465186 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRehydrationRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRehydrationRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,21 +70,21 @@ internal AzureBackupRehydrationRequest(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRehydrationRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRehydrationRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRehydrationRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRehydrationRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); } if (content.Contains("RehydrationPriority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRehydrationRequestInternal)this).RehydrationPriority = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority?) content.GetValueForProperty("RehydrationPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRehydrationRequestInternal)this).RehydrationPriority, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRehydrationRequestInternal)this).RehydrationPriority = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority?) content.GetValueForProperty("RehydrationPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRehydrationRequestInternal)this).RehydrationPriority, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority.CreateFrom); } if (content.Contains("RehydrationRetentionDuration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRehydrationRequestInternal)this).RehydrationRetentionDuration = (string) content.GetValueForProperty("RehydrationRetentionDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRehydrationRequestInternal)this).RehydrationRetentionDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRehydrationRequestInternal)this).RehydrationRetentionDuration = (string) content.GetValueForProperty("RehydrationRetentionDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -99,43 +99,43 @@ internal AzureBackupRehydrationRequest(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRehydrationRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRehydrationRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRehydrationRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRehydrationRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); } if (content.Contains("RehydrationPriority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRehydrationRequestInternal)this).RehydrationPriority = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority?) content.GetValueForProperty("RehydrationPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRehydrationRequestInternal)this).RehydrationPriority, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRehydrationRequestInternal)this).RehydrationPriority = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority?) content.GetValueForProperty("RehydrationPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRehydrationRequestInternal)this).RehydrationPriority, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority.CreateFrom); } if (content.Contains("RehydrationRetentionDuration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRehydrationRequestInternal)this).RehydrationRetentionDuration = (string) content.GetValueForProperty("RehydrationRetentionDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRehydrationRequestInternal)this).RehydrationRetentionDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRehydrationRequestInternal)this).RehydrationRetentionDuration = (string) content.GetValueForProperty("RehydrationRetentionDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupRehydrationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupRehydrationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRehydrationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRehydrationRequest(content); } @@ -145,7 +145,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRehydrationRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupRehydrationRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRehydrationRequest.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRehydrationRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRehydrationRequest.TypeConverter.cs index 4dced310d3e3..f7187b3074fd 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRehydrationRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRehydrationRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IAzureBackupRehydrationRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRehydrationRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRehydrationRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRehydrationRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRehydrationRequest.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRehydrationRequest.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRehydrationRequest.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRehydrationRequest.cs index 3a26c389017c..f69f5cf4a8b4 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRehydrationRequest.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRehydrationRequest.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure Backup Rehydrate Request public partial class AzureBackupRehydrationRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRehydrationRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRehydrationRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRehydrationRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRehydrationRequestInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRehydrationRequest.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRehydrationRequest.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRehydrationRequest.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRehydrationRequest.json.cs index 62eb49828d31..5c599415b177 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRehydrationRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRehydrationRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -72,13 +72,13 @@ internal AzureBackupRehydrationRequest(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRehydrationRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRehydrationRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRehydrationRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRehydrationRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRehydrationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupRestoreRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRestoreRequest.PowerShell.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRestoreRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRestoreRequest.PowerShell.cs index 37814c855cbb..fd30c9811c68 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRestoreRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRestoreRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,25 +70,25 @@ internal AzureBackupRestoreRequest(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RestoreTargetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreTargetInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("SourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); } if (content.Contains("SourceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceResourceId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,47 +103,47 @@ internal AzureBackupRestoreRequest(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RestoreTargetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreTargetInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("SourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); } if (content.Contains("SourceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceResourceId, 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.Api20220501.IAzureBackupRestoreRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupRestoreRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRestoreRequest(content); } @@ -153,7 +153,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupRestoreRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRestoreRequest.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRestoreRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRestoreRequest.TypeConverter.cs index 57e914dfe9b7..ecab80171f3e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRestoreRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRestoreRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IAzureBackupRestoreRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRestoreRequest.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRestoreRequest.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRestoreRequest.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRestoreRequest.cs index 9cce7fb909cb..79f6759f731a 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRestoreRequest.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRestoreRequest.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure backup restore request public partial class AzureBackupRestoreRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal { /// Backing field for property. @@ -20,11 +20,11 @@ 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.Api20220501.IRestoreTargetInfoBase _restoreTargetInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase _restoreTargetInfo; /// Gets or sets the restore target information. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase RestoreTargetInfo { get => (this._restoreTargetInfo = this._restoreTargetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreTargetInfoBase()); set => this._restoreTargetInfo = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase RestoreTargetInfo { get => (this._restoreTargetInfo = this._restoreTargetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreTargetInfoBase()); set => this._restoreTargetInfo = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType _sourceDataStoreType; @@ -65,8 +65,8 @@ public partial interface IAzureBackupRestoreRequest : ReadOnly = false, Description = @"Gets or sets the restore target information.", SerializedName = @"restoreTargetInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase RestoreTargetInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase RestoreTargetInfo { get; set; } /// Gets or sets the type of the source data store. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, @@ -93,7 +93,7 @@ internal partial interface IAzureBackupRestoreRequestInternal { string ObjectType { get; set; } /// Gets or sets the restore target information. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase RestoreTargetInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase RestoreTargetInfo { get; set; } /// Gets or sets the type of the source data store. Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType SourceDataStoreType { get; set; } /// diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRestoreRequest.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRestoreRequest.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRestoreRequest.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRestoreRequest.json.cs index 9130fafd1112..50b09126330a 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRestoreRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRestoreRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -66,22 +66,22 @@ internal AzureBackupRestoreRequest(Microsoft.Azure.PowerShell.Cmdlets.DataProtec return; } {_objectType = If( json?.PropertyT("objectType"), out var __jsonObjectType) ? (string)__jsonObjectType : (string)ObjectType;} - {_restoreTargetInfo = If( json?.PropertyT("restoreTargetInfo"), out var __jsonRestoreTargetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreTargetInfoBase.FromJson(__jsonRestoreTargetInfo) : RestoreTargetInfo;} + {_restoreTargetInfo = If( json?.PropertyT("restoreTargetInfo"), out var __jsonRestoreTargetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreTargetInfoBase.FromJson(__jsonRestoreTargetInfo) : RestoreTargetInfo;} {_sourceDataStoreType = If( json?.PropertyT("sourceDataStoreType"), out var __jsonSourceDataStoreType) ? (string)__jsonSourceDataStoreType : (string)SourceDataStoreType;} {_sourceResourceId = If( json?.PropertyT("sourceResourceId"), out var __jsonSourceResourceId) ? (string)__jsonSourceResourceId : (string)SourceResourceId;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest interface is + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupRestoreRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupRestoreWithRehydrationRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRestoreWithRehydrationRequest.PowerShell.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRestoreWithRehydrationRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRestoreWithRehydrationRequest.PowerShell.cs index fa1463cf9c1d..9645b11363fb 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRestoreWithRehydrationRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRestoreWithRehydrationRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class AzureBackupRestoreWithRehydrationRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,37 +70,37 @@ internal AzureBackupRestoreWithRehydrationRequest(global::System.Collections.IDi // actually deserialize if (content.Contains("RehydrationPriority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationPriority = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority) content.GetValueForProperty("RehydrationPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationPriority, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationPriority = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority) content.GetValueForProperty("RehydrationPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationPriority, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority.CreateFrom); } if (content.Contains("RehydrationRetentionDuration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationRetentionDuration = (string) content.GetValueForProperty("RehydrationRetentionDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationRetentionDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationRetentionDuration = (string) content.GetValueForProperty("RehydrationRetentionDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationRetentionDuration, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RestoreTargetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreTargetInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("SourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); } if (content.Contains("SourceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceResourceId, global::System.Convert.ToString); } if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId, 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,59 +115,59 @@ internal AzureBackupRestoreWithRehydrationRequest(global::System.Management.Auto // actually deserialize if (content.Contains("RehydrationPriority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationPriority = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority) content.GetValueForProperty("RehydrationPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationPriority, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationPriority = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority) content.GetValueForProperty("RehydrationPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationPriority, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority.CreateFrom); } if (content.Contains("RehydrationRetentionDuration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationRetentionDuration = (string) content.GetValueForProperty("RehydrationRetentionDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationRetentionDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationRetentionDuration = (string) content.GetValueForProperty("RehydrationRetentionDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreWithRehydrationRequestInternal)this).RehydrationRetentionDuration, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RestoreTargetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreTargetInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase) content.GetValueForProperty("RestoreTargetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).RestoreTargetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreTargetInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("SourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType.CreateFrom); } if (content.Contains("SourceResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)this).SourceResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceResourceId = (string) content.GetValueForProperty("SourceResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)this).SourceResourceId, global::System.Convert.ToString); } if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointBasedRestoreRequestInternal)this).RecoveryPointId, 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.Api20220501.IAzureBackupRestoreWithRehydrationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreWithRehydrationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureBackupRestoreWithRehydrationRequest(content); } /// - /// 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.Api20220501.IAzureBackupRestoreWithRehydrationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreWithRehydrationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRestoreWithRehydrationRequest(content); } @@ -180,7 +180,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreWithRehydrationRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreWithRehydrationRequest 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/Api20220501/AzureBackupRestoreWithRehydrationRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRestoreWithRehydrationRequest.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRestoreWithRehydrationRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRestoreWithRehydrationRequest.TypeConverter.cs index e169680f1a82..b729511d0fe3 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRestoreWithRehydrationRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRestoreWithRehydrationRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreWithRehydrationRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreWithRehydrationRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreWithRehydrationRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreWithRehydrationRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRestoreWithRehydrationRequest.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRestoreWithRehydrationRequest.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRestoreWithRehydrationRequest.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRestoreWithRehydrationRequest.cs index 58a976803cb5..e9b9cbca2978 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRestoreWithRehydrationRequest.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRestoreWithRehydrationRequest.cs @@ -3,27 +3,27 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// AzureBackup Restore with Rehydration Request public partial class AzureBackupRestoreWithRehydrationRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreWithRehydrationRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreWithRehydrationRequestInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreWithRehydrationRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreWithRehydrationRequestInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointBasedRestoreRequest __azureBackupRecoveryPointBasedRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRecoveryPointBasedRestoreRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointBasedRestoreRequest __azureBackupRecoveryPointBasedRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRecoveryPointBasedRestoreRequest(); [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupRecoveryPointBasedRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointBasedRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RecoveryPointId = value ; } + public string RecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointBasedRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointBasedRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RecoveryPointId = value ; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationPriority _rehydrationPriority; @@ -41,17 +41,17 @@ 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.Api20220501.IRestoreTargetInfoBase RestoreTargetInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RestoreTargetInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RestoreTargetInfo = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase RestoreTargetInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RestoreTargetInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).RestoreTargetInfo = value ; } /// 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.Api20220501.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).SourceDataStoreType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType SourceDataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).SourceDataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).SourceDataStoreType = value ; } /// /// Fully qualified Azure Resource Manager ID of the datasource which is being recovered. /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string SourceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).SourceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).SourceResourceId = value ?? null; } + public string SourceResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).SourceResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequestInternal)__azureBackupRecoveryPointBasedRestoreRequest).SourceResourceId = value ?? null; } /// /// Creates an new instance. @@ -76,7 +76,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.Api20220501.IAzureBackupRecoveryPointBasedRestoreRequest + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointBasedRestoreRequest { /// Priority to be used for rehydration. Values High or Standard [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -98,7 +98,7 @@ public partial interface IAzureBackupRestoreWithRehydrationRequest : } /// AzureBackup Restore with Rehydration Request internal partial interface IAzureBackupRestoreWithRehydrationRequestInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointBasedRestoreRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupRestoreWithRehydrationRequest.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRestoreWithRehydrationRequest.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRestoreWithRehydrationRequest.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRestoreWithRehydrationRequest.json.cs index 7a9d2f5789e8..16c263d31d34 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRestoreWithRehydrationRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRestoreWithRehydrationRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,20 +65,20 @@ internal AzureBackupRestoreWithRehydrationRequest(Microsoft.Azure.PowerShell.Cmd { return; } - __azureBackupRecoveryPointBasedRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRecoveryPointBasedRestoreRequest(json); + __azureBackupRecoveryPointBasedRestoreRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupRestoreWithRehydrationRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreWithRehydrationRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreWithRehydrationRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreWithRehydrationRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreWithRehydrationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupRule.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRule.PowerShell.cs similarity index 76% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRule.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRule.PowerShell.cs index d752cbadba12..a91b5701b711 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRule.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRule.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,45 +70,45 @@ internal AzureBackupRule(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("BackupParameter")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).BackupParameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParameters) content.GetValueForProperty("BackupParameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).BackupParameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupParametersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).BackupParameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParameters) content.GetValueForProperty("BackupParameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).BackupParameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupParametersTypeConverter.ConvertFrom); } if (content.Contains("DataStore")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBase) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).DataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DataStoreInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBase) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).DataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DataStoreInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("Trigger")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).Trigger = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContext) content.GetValueForProperty("Trigger",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).Trigger, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TriggerContextTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).Trigger = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContext) content.GetValueForProperty("Trigger",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).Trigger, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TriggerContextTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("BackupParameterObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).BackupParameterObjectType = (string) content.GetValueForProperty("BackupParameterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).BackupParameterObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).BackupParameterObjectType = (string) content.GetValueForProperty("BackupParameterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).BackupParameterObjectType, global::System.Convert.ToString); } if (content.Contains("DataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); } if (content.Contains("DataStoreObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).DataStoreObjectType = (string) content.GetValueForProperty("DataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).DataStoreObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).DataStoreObjectType = (string) content.GetValueForProperty("DataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).DataStoreObjectType, global::System.Convert.ToString); } if (content.Contains("TriggerObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).TriggerObjectType = (string) content.GetValueForProperty("TriggerObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).TriggerObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).TriggerObjectType = (string) content.GetValueForProperty("TriggerObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -123,65 +123,65 @@ internal AzureBackupRule(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("BackupParameter")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).BackupParameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParameters) content.GetValueForProperty("BackupParameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).BackupParameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupParametersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).BackupParameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParameters) content.GetValueForProperty("BackupParameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).BackupParameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupParametersTypeConverter.ConvertFrom); } if (content.Contains("DataStore")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBase) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).DataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DataStoreInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBase) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).DataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DataStoreInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("Trigger")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).Trigger = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContext) content.GetValueForProperty("Trigger",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).Trigger, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TriggerContextTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).Trigger = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContext) content.GetValueForProperty("Trigger",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).Trigger, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TriggerContextTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("BackupParameterObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).BackupParameterObjectType = (string) content.GetValueForProperty("BackupParameterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).BackupParameterObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).BackupParameterObjectType = (string) content.GetValueForProperty("BackupParameterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).BackupParameterObjectType, global::System.Convert.ToString); } if (content.Contains("DataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); } if (content.Contains("DataStoreObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).DataStoreObjectType = (string) content.GetValueForProperty("DataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).DataStoreObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).DataStoreObjectType = (string) content.GetValueForProperty("DataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).DataStoreObjectType, global::System.Convert.ToString); } if (content.Contains("TriggerObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).TriggerObjectType = (string) content.GetValueForProperty("TriggerObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal)this).TriggerObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal)this).TriggerObjectType = (string) content.GetValueForProperty("TriggerObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupRule DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureBackupRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBackupRule(content); } @@ -191,7 +191,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureBackupRule.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRule.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRule.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRule.TypeConverter.cs index decd6d8774db..bac09abba4f8 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRule.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRule.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IAzureBackupRule ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRule ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRule).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRule).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRule.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRule.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRule.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRule.cs index bddadd9ce32b..2a932e4d6ff8 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRule.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRule.cs @@ -3,73 +3,73 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure backup rule public partial class AzureBackupRule : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRule, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRule, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRule __basePolicyRule = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BasePolicyRule(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRule __basePolicyRule = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BasePolicyRule(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParameters _backupParameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParameters _backupParameter; /// BackupParameters base [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParameters BackupParameter { get => (this._backupParameter = this._backupParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupParameters()); set => this._backupParameter = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParameters BackupParameter { get => (this._backupParameter = this._backupParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupParametersInternal)BackupParameter).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParametersInternal)BackupParameter).ObjectType = value ?? null; } + public string BackupParameterObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParametersInternal)BackupParameter).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParametersInternal)BackupParameter).ObjectType = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBase _dataStore; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBase _dataStore; /// DataStoreInfo base [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBase DataStore { get => (this._dataStore = this._dataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DataStoreInfoBase()); set => this._dataStore = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBase DataStore { get => (this._dataStore = this._dataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDataStoreInfoBaseInternal)DataStore).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBaseInternal)DataStore).ObjectType = value ; } + public string DataStoreObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBaseInternal)DataStore).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDataStoreInfoBaseInternal)DataStore).DataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBaseInternal)DataStore).DataStoreType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes DataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBaseInternal)DataStore).DataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBaseInternal)DataStore).DataStoreType = value ; } /// Internal Acessors for BackupParameter - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParameters Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal.BackupParameter { get => (this._backupParameter = this._backupParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupParameters()); set { {_backupParameter = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParameters Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal.BackupParameter { get => (this._backupParameter = this._backupParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupParameters()); set { {_backupParameter = value;} } } /// Internal Acessors for DataStore - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBase Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal.DataStore { get => (this._dataStore = this._dataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DataStoreInfoBase()); set { {_dataStore = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBase Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal.DataStore { get => (this._dataStore = this._dataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DataStoreInfoBase()); set { {_dataStore = value;} } } /// Internal Acessors for Trigger - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContext Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRuleInternal.Trigger { get => (this._trigger = this._trigger ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TriggerContext()); set { {_trigger = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContext Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRuleInternal.Trigger { get => (this._trigger = this._trigger ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBasePolicyRuleInternal)__basePolicyRule).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)__basePolicyRule).Name = value ; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)__basePolicyRule).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBasePolicyRuleInternal)__basePolicyRule).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)__basePolicyRule).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)__basePolicyRule).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)__basePolicyRule).ObjectType = value ; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContext _trigger; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContext _trigger; /// Trigger context [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContext Trigger { get => (this._trigger = this._trigger ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TriggerContext()); set => this._trigger = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContext Trigger { get => (this._trigger = this._trigger ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ITriggerContextInternal)Trigger).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContextInternal)Trigger).ObjectType = value ; } + public string TriggerObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContextInternal)Trigger).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContextInternal)Trigger).ObjectType = value ; } /// Creates an new instance. public AzureBackupRule() @@ -92,7 +92,7 @@ public AzureBackupRule() /// Azure backup rule public partial interface IAzureBackupRule : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRule { /// Type of the specific object - used for deserializing [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -130,20 +130,20 @@ public partial interface IAzureBackupRule : } /// Azure backup rule internal partial interface IAzureBackupRuleInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal { /// BackupParameters base - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParameters BackupParameter { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParameters BackupParameter { get; set; } /// Type of the specific object - used for deserializing string BackupParameterObjectType { get; set; } /// DataStoreInfo base - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBase DataStore { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ITriggerContext Trigger { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContext Trigger { get; set; } /// Type of the specific object - used for deserializing string TriggerObjectType { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRule.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRule.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/AzureBackupRule.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureBackupRule.json.cs index 282276441342..6673b60c3410 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureBackupRule.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureBackupRule.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,21 +65,21 @@ internal AzureBackupRule(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runti { return; } - __basePolicyRule = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BasePolicyRule(json); - {_backupParameter = If( json?.PropertyT("backupParameters"), out var __jsonBackupParameters) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupParameters.FromJson(__jsonBackupParameters) : BackupParameter;} - {_dataStore = If( json?.PropertyT("dataStore"), out var __jsonDataStore) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DataStoreInfoBase.FromJson(__jsonDataStore) : DataStore;} - {_trigger = If( json?.PropertyT("trigger"), out var __jsonTrigger) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TriggerContext.FromJson(__jsonTrigger) : Trigger;} + __basePolicyRule = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BasePolicyRule(json); + {_backupParameter = If( json?.PropertyT("backupParameters"), out var __jsonBackupParameters) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupParameters.FromJson(__jsonBackupParameters) : BackupParameter;} + {_dataStore = If( json?.PropertyT("dataStore"), out var __jsonDataStore) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DataStoreInfoBase.FromJson(__jsonDataStore) : DataStore;} + {_trigger = If( json?.PropertyT("trigger"), out var __jsonTrigger) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TriggerContext.FromJson(__jsonTrigger) : Trigger;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRule. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRule. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRule. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRule. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureMonitorAlertSettings.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureMonitorAlertSettings.PowerShell.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20220501/AzureMonitorAlertSettings.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureMonitorAlertSettings.PowerShell.cs index 9014e58c7bfe..bd986eebf253 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureMonitorAlertSettings.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureMonitorAlertSettings.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class AzureMonitorAlertSettings partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,13 +70,13 @@ internal AzureMonitorAlertSettings(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("AlertsForAllJobFailure")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettingsInternal)this).AlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettingsInternal)this).AlertsForAllJobFailure, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettingsInternal)this).AlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettingsInternal)this).AlertsForAllJobFailure, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState.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. @@ -91,35 +91,35 @@ internal AzureMonitorAlertSettings(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("AlertsForAllJobFailure")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettingsInternal)this).AlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettingsInternal)this).AlertsForAllJobFailure, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettingsInternal)this).AlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettingsInternal)this).AlertsForAllJobFailure, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState.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.Api20220501.IAzureMonitorAlertSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureMonitorAlertSettings(content); } /// - /// 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.Api20220501.IAzureMonitorAlertSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureMonitorAlertSettings(content); } @@ -129,7 +129,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings 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/Api20220501/AzureMonitorAlertSettings.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureMonitorAlertSettings.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AzureMonitorAlertSettings.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureMonitorAlertSettings.TypeConverter.cs index 4b9cbcfd61cb..5694ea49bdba 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureMonitorAlertSettings.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureMonitorAlertSettings.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IAzureMonitorAlertSettings ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureMonitorAlertSettings.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureMonitorAlertSettings.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/AzureMonitorAlertSettings.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureMonitorAlertSettings.cs index 247bcf85392b..7dac0f5a7a9b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureMonitorAlertSettings.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureMonitorAlertSettings.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Settings for Azure Monitor based alerts public partial class AzureMonitorAlertSettings : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettingsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettingsInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureMonitorAlertSettings.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureMonitorAlertSettings.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/AzureMonitorAlertSettings.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureMonitorAlertSettings.json.cs index 6405a71b39ee..a7e9909943d5 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureMonitorAlertSettings.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureMonitorAlertSettings.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -70,13 +70,13 @@ internal AzureMonitorAlertSettings(Microsoft.Azure.PowerShell.Cmdlets.DataProtec } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new AzureMonitorAlertSettings(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureOperationalStoreParameters.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureOperationalStoreParameters.PowerShell.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20220501/AzureOperationalStoreParameters.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureOperationalStoreParameters.PowerShell.cs index 53a1abf87ad7..e71327369bd5 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureOperationalStoreParameters.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureOperationalStoreParameters.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,21 +70,21 @@ internal AzureOperationalStoreParameters(global::System.Collections.IDictionary // actually deserialize if (content.Contains("ResourceGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureOperationalStoreParametersInternal)this).ResourceGroupId = (string) content.GetValueForProperty("ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureOperationalStoreParametersInternal)this).ResourceGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureOperationalStoreParametersInternal)this).ResourceGroupId = (string) content.GetValueForProperty("ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureOperationalStoreParametersInternal)this).ResourceGroupId, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParametersInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParametersInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("DataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParametersInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParametersInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParametersInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -99,43 +99,43 @@ internal AzureOperationalStoreParameters(global::System.Management.Automation.PS // actually deserialize if (content.Contains("ResourceGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureOperationalStoreParametersInternal)this).ResourceGroupId = (string) content.GetValueForProperty("ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureOperationalStoreParametersInternal)this).ResourceGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureOperationalStoreParametersInternal)this).ResourceGroupId = (string) content.GetValueForProperty("ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureOperationalStoreParametersInternal)this).ResourceGroupId, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParametersInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParametersInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("DataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParametersInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParametersInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParametersInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureOperationalStoreParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureOperationalStoreParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureOperationalStoreParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureOperationalStoreParameters(content); } @@ -145,7 +145,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureOperationalStoreParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureOperationalStoreParameters.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureOperationalStoreParameters.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AzureOperationalStoreParameters.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureOperationalStoreParameters.TypeConverter.cs index fe775923b319..689a116c4e70 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureOperationalStoreParameters.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureOperationalStoreParameters.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureOperationalStoreParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureOperationalStoreParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureOperationalStoreParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureOperationalStoreParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureOperationalStoreParameters.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureOperationalStoreParameters.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20220501/AzureOperationalStoreParameters.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureOperationalStoreParameters.cs index ef75206f41e0..5b9ef25ef640 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureOperationalStoreParameters.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureOperationalStoreParameters.cs @@ -3,29 +3,29 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Parameters for Operational-Tier DataStore public partial class AzureOperationalStoreParameters : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureOperationalStoreParameters, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureOperationalStoreParametersInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureOperationalStoreParameters, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureOperationalStoreParametersInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParameters __dataStoreParameters = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DataStoreParameters(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParameters __dataStoreParameters = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDataStoreParametersInternal)__dataStoreParameters).DataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParametersInternal)__dataStoreParameters).DataStoreType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes DataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParametersInternal)__dataStoreParameters).DataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDataStoreParametersInternal)__dataStoreParameters).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParametersInternal)__dataStoreParameters).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParametersInternal)__dataStoreParameters).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParametersInternal)__dataStoreParameters).ObjectType = value ; } /// Backing field for property. private string _resourceGroupId; @@ -55,7 +55,7 @@ public AzureOperationalStoreParameters() /// Parameters for Operational-Tier DataStore public partial interface IAzureOperationalStoreParameters : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParameters + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParameters { /// Gets or sets the Snapshot Resource Group Uri. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -69,7 +69,7 @@ public partial interface IAzureOperationalStoreParameters : } /// Parameters for Operational-Tier DataStore internal partial interface IAzureOperationalStoreParametersInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParametersInternal { /// Gets or sets the Snapshot Resource Group Uri. string ResourceGroupId { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureOperationalStoreParameters.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureOperationalStoreParameters.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/AzureOperationalStoreParameters.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureOperationalStoreParameters.json.cs index bf17f6e34158..04826093d3f7 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureOperationalStoreParameters.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureOperationalStoreParameters.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,19 +65,19 @@ internal AzureOperationalStoreParameters(Microsoft.Azure.PowerShell.Cmdlets.Data { return; } - __dataStoreParameters = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DataStoreParameters(json); + __dataStoreParameters = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureOperationalStoreParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureOperationalStoreParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureOperationalStoreParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureOperationalStoreParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureOperationalStoreParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureRetentionRule.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureRetentionRule.PowerShell.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20220501/AzureRetentionRule.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureRetentionRule.PowerShell.cs index 80047dc0617e..c57d717d4e35 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureRetentionRule.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureRetentionRule.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,25 +70,25 @@ internal AzureRetentionRule(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("IsDefault")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureRetentionRuleInternal)this).IsDefault = (bool?) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureRetentionRuleInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureRetentionRuleInternal)this).IsDefault = (bool?) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureRetentionRuleInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Lifecycle")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureRetentionRuleInternal)this).Lifecycle = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycle[]) content.GetValueForProperty("Lifecycle",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureRetentionRuleInternal)this).Lifecycle, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SourceLifeCycleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureRetentionRuleInternal)this).Lifecycle = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycle[]) content.GetValueForProperty("Lifecycle",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureRetentionRuleInternal)this).Lifecycle, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SourceLifeCycleTypeConverter.ConvertFrom)); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -103,45 +103,45 @@ internal AzureRetentionRule(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("IsDefault")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureRetentionRuleInternal)this).IsDefault = (bool?) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureRetentionRuleInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureRetentionRuleInternal)this).IsDefault = (bool?) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureRetentionRuleInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Lifecycle")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureRetentionRuleInternal)this).Lifecycle = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycle[]) content.GetValueForProperty("Lifecycle",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureRetentionRuleInternal)this).Lifecycle, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SourceLifeCycleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureRetentionRuleInternal)this).Lifecycle = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycle[]) content.GetValueForProperty("Lifecycle",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureRetentionRuleInternal)this).Lifecycle, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SourceLifeCycleTypeConverter.ConvertFrom)); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureRetentionRule DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAzureRetentionRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureRetentionRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureRetentionRule(content); } @@ -151,7 +151,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureRetentionRule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/AzureRetentionRule.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureRetentionRule.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/AzureRetentionRule.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureRetentionRule.TypeConverter.cs index 9669f823fabe..cacdb733a691 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureRetentionRule.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureRetentionRule.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IAzureRetentionRule ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureRetentionRule ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureRetentionRule).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureRetentionRule).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureRetentionRule.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureRetentionRule.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20220501/AzureRetentionRule.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureRetentionRule.cs index e9fb7461ee2a..3520fdb32260 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureRetentionRule.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureRetentionRule.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Azure retention rule public partial class AzureRetentionRule : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureRetentionRule, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureRetentionRuleInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureRetentionRule, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureRetentionRuleInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRule __basePolicyRule = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BasePolicyRule(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRule __basePolicyRule = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BasePolicyRule(); /// Backing field for property. private bool? _isDefault; @@ -26,16 +26,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.Api20220501.ISourceLifeCycle[] _lifecycle; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycle[] _lifecycle; [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycle[] Lifecycle { get => this._lifecycle; set => this._lifecycle = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBasePolicyRuleInternal)__basePolicyRule).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)__basePolicyRule).Name = value ; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)__basePolicyRule).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBasePolicyRuleInternal)__basePolicyRule).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)__basePolicyRule).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)__basePolicyRule).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)__basePolicyRule).ObjectType = value ; } /// Creates an new instance. public AzureRetentionRule() @@ -58,7 +58,7 @@ public AzureRetentionRule() /// Azure retention rule public partial interface IAzureRetentionRule : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRule + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRule { [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -73,17 +73,17 @@ public partial interface IAzureRetentionRule : ReadOnly = false, Description = @"", SerializedName = @"lifecycles", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycle) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycle[] Lifecycle { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycle) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycle[] Lifecycle { get; set; } } /// Azure retention rule internal partial interface IAzureRetentionRuleInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal { bool? IsDefault { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycle[] Lifecycle { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycle[] Lifecycle { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/AzureRetentionRule.json.cs b/src/DataProtection/generated/api/Models/Api20221201/AzureRetentionRule.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/AzureRetentionRule.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/AzureRetentionRule.json.cs index 41638048a4e0..f5b31215127e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/AzureRetentionRule.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/AzureRetentionRule.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,20 +65,20 @@ internal AzureRetentionRule(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Ru { return; } - __basePolicyRule = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BasePolicyRule(json); + __basePolicyRule = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ISourceLifeCycle) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.ISourceLifeCycle) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SourceLifeCycle.FromJson(__u) )) ))() : null : Lifecycle;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureRetentionRule. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureRetentionRule. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureRetentionRule. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureRetentionRule. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureRetentionRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/BackupCriteria.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupCriteria.PowerShell.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20220501/BackupCriteria.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupCriteria.PowerShell.cs index 99427c0da693..7aa093bded70 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupCriteria.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupCriteria.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,13 +70,13 @@ internal BackupCriteria(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -91,33 +91,33 @@ internal BackupCriteria(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupCriteria(content); } @@ -127,7 +127,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupCriteria FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/BackupCriteria.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupCriteria.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/BackupCriteria.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupCriteria.TypeConverter.cs index a499d73dcc5d..3791a8a5d93b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupCriteria.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupCriteria.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IBackupCriteria ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupCriteria ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupCriteria).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupCriteria).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/BackupCriteria.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupCriteria.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/BackupCriteria.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupCriteria.cs index 013503e31eea..5c97c84cdbb0 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupCriteria.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupCriteria.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// BackupCriteria base class public partial class BackupCriteria : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupCriteria, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupCriteriaInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupCriteria, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupCriteriaInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/BackupCriteria.json.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupCriteria.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/BackupCriteria.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupCriteria.json.cs index 3ee48dfcdfa3..9a1ba4bbc874 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupCriteria.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupCriteria.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -70,15 +70,15 @@ internal BackupCriteria(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtim } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupCriteria. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupCriteria interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupCriteria. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupCriteria. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupCriteria. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/BackupInstance.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupInstance.PowerShell.cs similarity index 74% rename from src/DataProtection/generated/api/Models/Api20220501/BackupInstance.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupInstance.PowerShell.cs index c56fbd132b30..d5d4e982ff77 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupInstance.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupInstance.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class BackupInstance partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,53 +70,53 @@ internal BackupInstance(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("FriendlyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).FriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).FriendlyName, global::System.Convert.ToString); } if (content.Contains("DataSourceInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).DataSourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasource) content.GetValueForProperty("DataSourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).DataSourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DatasourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).DataSourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource) content.GetValueForProperty("DataSourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).DataSourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceTypeConverter.ConvertFrom); } if (content.Contains("DataSourceSetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).DataSourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSet) content.GetValueForProperty("DataSourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).DataSourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DatasourceSetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).DataSourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet) content.GetValueForProperty("DataSourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).DataSourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceSetTypeConverter.ConvertFrom); } if (content.Contains("PolicyInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).PolicyInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyInfo) content.GetValueForProperty("PolicyInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).PolicyInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.PolicyInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).PolicyInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfo) content.GetValueForProperty("PolicyInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).PolicyInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PolicyInfoTypeConverter.ConvertFrom); } if (content.Contains("ProtectionStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).ProtectionStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IProtectionStatusDetails) content.GetValueForProperty("ProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).ProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ProtectionStatusDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ProtectionStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetails) content.GetValueForProperty("ProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ProtectionStatusDetailsTypeConverter.ConvertFrom); } if (content.Contains("CurrentProtectionState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).CurrentProtectionState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState?) content.GetValueForProperty("CurrentProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).CurrentProtectionState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).CurrentProtectionState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState?) content.GetValueForProperty("CurrentProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).CurrentProtectionState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState.CreateFrom); } if (content.Contains("ProtectionErrorDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).ProtectionErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError) content.GetValueForProperty("ProtectionErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).ProtectionErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.UserFacingErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ProtectionErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError) content.GetValueForProperty("ProtectionErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ProtectionErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingErrorTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ProvisioningState, global::System.Convert.ToString); } if (content.Contains("DatasourceAuthCredentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AuthCredentialsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AuthCredentialsTypeConverter.ConvertFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType?) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType?) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType.CreateFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)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. @@ -131,73 +131,73 @@ internal BackupInstance(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("FriendlyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).FriendlyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).FriendlyName, global::System.Convert.ToString); } if (content.Contains("DataSourceInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).DataSourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasource) content.GetValueForProperty("DataSourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).DataSourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DatasourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).DataSourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource) content.GetValueForProperty("DataSourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).DataSourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceTypeConverter.ConvertFrom); } if (content.Contains("DataSourceSetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).DataSourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSet) content.GetValueForProperty("DataSourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).DataSourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DatasourceSetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).DataSourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet) content.GetValueForProperty("DataSourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).DataSourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceSetTypeConverter.ConvertFrom); } if (content.Contains("PolicyInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).PolicyInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyInfo) content.GetValueForProperty("PolicyInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).PolicyInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.PolicyInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).PolicyInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfo) content.GetValueForProperty("PolicyInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).PolicyInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PolicyInfoTypeConverter.ConvertFrom); } if (content.Contains("ProtectionStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).ProtectionStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IProtectionStatusDetails) content.GetValueForProperty("ProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).ProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ProtectionStatusDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ProtectionStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetails) content.GetValueForProperty("ProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ProtectionStatusDetailsTypeConverter.ConvertFrom); } if (content.Contains("CurrentProtectionState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).CurrentProtectionState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState?) content.GetValueForProperty("CurrentProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).CurrentProtectionState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).CurrentProtectionState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState?) content.GetValueForProperty("CurrentProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).CurrentProtectionState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState.CreateFrom); } if (content.Contains("ProtectionErrorDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).ProtectionErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError) content.GetValueForProperty("ProtectionErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).ProtectionErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.UserFacingErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ProtectionErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError) content.GetValueForProperty("ProtectionErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ProtectionErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingErrorTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ProvisioningState, global::System.Convert.ToString); } if (content.Contains("DatasourceAuthCredentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AuthCredentialsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AuthCredentialsTypeConverter.ConvertFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType?) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType?) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType.CreateFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)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.Api20220501.IBackupInstance DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new BackupInstance(content); } /// - /// 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.Api20220501.IBackupInstance DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupInstance(content); } @@ -207,7 +207,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance 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/Api20220501/BackupInstance.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupInstance.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/BackupInstance.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupInstance.TypeConverter.cs index 180d90cdef8f..f4e50f0173e0 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupInstance.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupInstance.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IBackupInstance ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/BackupInstance.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupInstance.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20220501/BackupInstance.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupInstance.cs index 3dea030eae62..a6ce58c9fb0c 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupInstance.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupInstance.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Backup Instance public partial class BackupInstance : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal { /// Backing field for property. @@ -21,25 +21,25 @@ 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.Api20220501.IDatasource _dataSourceInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDatasource DataSourceInfo { get => (this._dataSourceInfo = this._dataSourceInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.Datasource()); set => this._dataSourceInfo = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource DataSourceInfo { get => (this._dataSourceInfo = this._dataSourceInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.Datasource()); set => this._dataSourceInfo = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSet _dataSourceSetInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDatasourceSet DataSourceSetInfo { get => (this._dataSourceSetInfo = this._dataSourceSetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DatasourceSet()); set => this._dataSourceSetInfo = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet DataSourceSetInfo { get => (this._dataSourceSetInfo = this._dataSourceSetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceSet()); set => this._dataSourceSetInfo = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials _datasourceAuthCredentials; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials _datasourceAuthCredentials; /// Credentials to use to authenticate with data source provider. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials DatasourceAuthCredentials { get => (this._datasourceAuthCredentials = this._datasourceAuthCredentials ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AuthCredentials()); set => this._datasourceAuthCredentials = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials DatasourceAuthCredentials { get => (this._datasourceAuthCredentials = this._datasourceAuthCredentials ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AuthCredentials()); set => this._datasourceAuthCredentials = value; } /// Backing field for property. private string _friendlyName; @@ -49,16 +49,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.Api20220501.IBackupInstanceInternal.CurrentProtectionState { get => this._currentProtectionState; set { {_currentProtectionState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal.CurrentProtectionState { get => this._currentProtectionState; set { {_currentProtectionState = value;} } } /// Internal Acessors for ProtectionErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal.ProtectionErrorDetail { get => (this._protectionErrorDetail = this._protectionErrorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.UserFacingError()); set { {_protectionErrorDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal.ProtectionErrorDetail { get => (this._protectionErrorDetail = this._protectionErrorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingError()); set { {_protectionErrorDetail = value;} } } /// Internal Acessors for ProtectionStatus - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IProtectionStatusDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal.ProtectionStatus { get => (this._protectionStatus = this._protectionStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ProtectionStatusDetails()); set { {_protectionStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal.ProtectionStatus { get => (this._protectionStatus = this._protectionStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ProtectionStatusDetails()); set { {_protectionStatus = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Backing field for property. private string _objectType; @@ -67,25 +67,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.Api20220501.IPolicyInfo _policyInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IPolicyInfo PolicyInfo { get => (this._policyInfo = this._policyInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.PolicyInfo()); set => this._policyInfo = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfo PolicyInfo { get => (this._policyInfo = this._policyInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PolicyInfo()); set => this._policyInfo = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError _protectionErrorDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IUserFacingError ProtectionErrorDetail { get => (this._protectionErrorDetail = this._protectionErrorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.UserFacingError()); } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError ProtectionErrorDetail { get => (this._protectionErrorDetail = this._protectionErrorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingError()); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IProtectionStatusDetails _protectionStatus; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IProtectionStatusDetails ProtectionStatus { get => (this._protectionStatus = this._protectionStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ProtectionStatusDetails()); } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetails ProtectionStatus { get => (this._protectionStatus = this._protectionStatus ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ProtectionStatusDetails()); } /// Backing field for property. private string _provisioningState; @@ -129,24 +129,24 @@ 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.Api20220501.IDatasource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasource DataSourceInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDatasourceSet) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSet DataSourceSetInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet DataSourceSetInfo { get; set; } /// Credentials to use to authenticate with data source provider. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, ReadOnly = false, Description = @"Credentials to use to authenticate with data source provider.", SerializedName = @"datasourceAuthCredentials", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials DatasourceAuthCredentials { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials DatasourceAuthCredentials { get; set; } /// Gets or sets the Backup Instance friendly name. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -169,24 +169,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.Api20220501.IPolicyInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyInfo PolicyInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IUserFacingError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError ProtectionErrorDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IProtectionStatusDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IProtectionStatusDetails ProtectionStatus { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetails ProtectionStatus { get; } /// /// Specifies the provisioning state of the resource i.e. provisioning/updating/Succeeded/Failed /// @@ -216,21 +216,21 @@ 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.Api20220501.IDatasource DataSourceInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource DataSourceInfo { get; set; } /// Gets or sets the data source set information. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSet DataSourceSetInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet DataSourceSetInfo { get; set; } /// Credentials to use to authenticate with data source provider. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials DatasourceAuthCredentials { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials DatasourceAuthCredentials { 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.Api20220501.IPolicyInfo PolicyInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfo PolicyInfo { get; set; } /// Specifies the protection error of the resource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError ProtectionErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError ProtectionErrorDetail { get; set; } /// Specifies the protection status of the resource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IProtectionStatusDetails ProtectionStatus { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/BackupInstance.json.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupInstance.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/BackupInstance.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupInstance.json.cs index c106e6dc6307..0df347b5dd94 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupInstance.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupInstance.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -66,27 +66,27 @@ 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.Api20220501.Datasource.FromJson(__jsonDataSourceInfo) : DataSourceInfo;} - {_dataSourceSetInfo = If( json?.PropertyT("dataSourceSetInfo"), out var __jsonDataSourceSetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DatasourceSet.FromJson(__jsonDataSourceSetInfo) : DataSourceSetInfo;} - {_policyInfo = If( json?.PropertyT("policyInfo"), out var __jsonPolicyInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.PolicyInfo.FromJson(__jsonPolicyInfo) : PolicyInfo;} - {_protectionStatus = If( json?.PropertyT("protectionStatus"), out var __jsonProtectionStatus) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ProtectionStatusDetails.FromJson(__jsonProtectionStatus) : ProtectionStatus;} + {_dataSourceInfo = If( json?.PropertyT("dataSourceInfo"), out var __jsonDataSourceInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.Datasource.FromJson(__jsonDataSourceInfo) : DataSourceInfo;} + {_dataSourceSetInfo = If( json?.PropertyT("dataSourceSetInfo"), out var __jsonDataSourceSetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceSet.FromJson(__jsonDataSourceSetInfo) : DataSourceSetInfo;} + {_policyInfo = If( json?.PropertyT("policyInfo"), out var __jsonPolicyInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PolicyInfo.FromJson(__jsonPolicyInfo) : PolicyInfo;} + {_protectionStatus = If( json?.PropertyT("protectionStatus"), out var __jsonProtectionStatus) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.UserFacingError.FromJson(__jsonProtectionErrorDetails) : ProtectionErrorDetail;} + {_protectionErrorDetail = If( json?.PropertyT("protectionErrorDetails"), out var __jsonProtectionErrorDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingError.FromJson(__jsonProtectionErrorDetails) : ProtectionErrorDetail;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} - {_datasourceAuthCredentials = If( json?.PropertyT("datasourceAuthCredentials"), out var __jsonDatasourceAuthCredentials) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AuthCredentials.FromJson(__jsonDatasourceAuthCredentials) : DatasourceAuthCredentials;} + {_datasourceAuthCredentials = If( json?.PropertyT("datasourceAuthCredentials"), out var __jsonDatasourceAuthCredentials) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AuthCredentials.FromJson(__jsonDatasourceAuthCredentials) : DatasourceAuthCredentials;} {_validationType = If( json?.PropertyT("validationType"), out var __jsonValidationType) ? (string)__jsonValidationType : (string)ValidationType;} {_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.Api20220501.IBackupInstance. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/BackupInstanceResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupInstanceResource.PowerShell.cs similarity index 78% rename from src/DataProtection/generated/api/Models/Api20220501/BackupInstanceResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupInstanceResource.PowerShell.cs index 40c27cffc520..573bf45577eb 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupInstanceResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupInstanceResource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,33 +70,33 @@ internal BackupInstanceResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupInstanceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupInstanceTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppProxyResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppProxyResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -111,55 +111,55 @@ internal BackupInstanceResource(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupInstanceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupInstanceTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppProxyResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppProxyResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupInstanceResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupInstanceResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupInstanceResource(content); } @@ -169,7 +169,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/BackupInstanceResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupInstanceResource.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/BackupInstanceResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupInstanceResource.TypeConverter.cs index f61f0b204093..0caa72f37c2e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupInstanceResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupInstanceResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IBackupInstanceResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/BackupInstanceResource.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupInstanceResource.cs similarity index 76% rename from src/DataProtection/generated/api/Models/Api20220501/BackupInstanceResource.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupInstanceResource.cs index 0cfee97883e3..016eb5814715 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupInstanceResource.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupInstanceResource.cs @@ -3,62 +3,62 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// BackupInstance Resource public partial class BackupInstanceResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResource __dppProxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppProxyResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResource __dppProxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppProxyResource(); /// Proxy 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.Api20220501.IDppProxyResourceInternal)__dppProxyResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)__dppProxyResource).Id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)__dppProxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)__dppProxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)__dppProxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)__dppProxyResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)__dppProxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)__dppProxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)__dppProxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)__dppProxyResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)__dppProxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)__dppProxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)__dppProxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)__dppProxyResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)__dppProxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)__dppProxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)__dppProxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)__dppProxyResource).Type = value; } /// Proxy 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.Api20220501.IDppProxyResourceInternal)__dppProxyResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)__dppProxyResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance _property; /// BackupInstanceResource properties [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupInstance()); set => this._property = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)__dppProxyResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)__dppProxyResource).SystemData; } /// Proxy Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)__dppProxyResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)__dppProxyResource).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)__dppProxyResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)__dppProxyResource).Tag = value ?? null /* model class */; } /// /// Proxy 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.Api20220501.IDppProxyResourceInternal)__dppProxyResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)__dppProxyResource).Type; } /// Creates an new instance. public BackupInstanceResource() @@ -81,7 +81,7 @@ public BackupInstanceResource() /// BackupInstance Resource public partial interface IBackupInstanceResource : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResource { /// BackupInstanceResource properties [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -89,16 +89,16 @@ public partial interface IBackupInstanceResource : ReadOnly = false, Description = @"BackupInstanceResource properties", SerializedName = @"properties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance Property { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance Property { get; set; } } /// BackupInstance Resource internal partial interface IBackupInstanceResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal { /// BackupInstanceResource properties - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance Property { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/BackupInstanceResource.json.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupInstanceResource.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/BackupInstanceResource.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupInstanceResource.json.cs index 807508718ae3..4cb134688063 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupInstanceResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupInstanceResource.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,19 +65,19 @@ internal BackupInstanceResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtectio { return; } - __dppProxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppProxyResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupInstance.FromJson(__jsonProperties) : Property;} + __dppProxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppProxyResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupInstance.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/BackupInstanceResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupInstanceResourceList.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20220501/BackupInstanceResourceList.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupInstanceResourceList.PowerShell.cs index dd4b857dc8d0..76923339a693 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupInstanceResourceList.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupInstanceResourceList.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,17 +70,17 @@ internal BackupInstanceResourceList(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupInstanceResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupInstanceResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -95,39 +95,39 @@ internal BackupInstanceResourceList(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupInstanceResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupInstanceResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupInstanceResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupInstanceResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupInstanceResourceList(content); } @@ -137,7 +137,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/BackupInstanceResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupInstanceResourceList.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/BackupInstanceResourceList.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupInstanceResourceList.TypeConverter.cs index 0c5c4adfca50..4fffc8c92808 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupInstanceResourceList.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupInstanceResourceList.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IBackupInstanceResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/BackupInstanceResourceList.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupInstanceResourceList.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20220501/BackupInstanceResourceList.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupInstanceResourceList.cs index 9b0e272005a9..1dfb70ca80b4 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupInstanceResourceList.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupInstanceResourceList.cs @@ -3,34 +3,34 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// BackupInstance Resource list response public partial class BackupInstanceResourceList : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResourceListInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResourceListInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppResourceList(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } + public string NextLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupInstanceResource[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public BackupInstanceResourceList() @@ -53,7 +53,7 @@ public BackupInstanceResourceList() /// BackupInstance Resource list response public partial interface IBackupInstanceResourceList : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceList { /// List of resources. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -61,16 +61,16 @@ public partial interface IBackupInstanceResourceList : ReadOnly = false, Description = @"List of resources.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource[] Value { get; set; } } /// BackupInstance Resource list response internal partial interface IBackupInstanceResourceListInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal { /// List of resources. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/BackupInstanceResourceList.json.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupInstanceResourceList.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20220501/BackupInstanceResourceList.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupInstanceResourceList.json.cs index 298dc86fe623..33511e8264f7 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupInstanceResourceList.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupInstanceResourceList.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,19 +65,19 @@ internal BackupInstanceResourceList(Microsoft.Azure.PowerShell.Cmdlets.DataProte { return; } - __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20220501.IBackupInstanceResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupInstanceResource.FromJson(__u) )) ))() : null : Value;} + __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20221201.IBackupInstanceResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupInstanceResource.FromJson(__u) )) ))() : null : Value;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/BackupParameters.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupParameters.PowerShell.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20220501/BackupParameters.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupParameters.PowerShell.cs index daf3bd4f875d..fe39ac811eba 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupParameters.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupParameters.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,13 +70,13 @@ internal BackupParameters(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParametersInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -91,33 +91,33 @@ internal BackupParameters(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParametersInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupParameters(content); } @@ -127,7 +127,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/BackupParameters.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupParameters.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/BackupParameters.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupParameters.TypeConverter.cs index d18f28b680fc..2bd2ca0e55f2 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupParameters.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupParameters.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IBackupParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/BackupParameters.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupParameters.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/BackupParameters.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupParameters.cs index fdd460355d25..542db5ff82ad 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupParameters.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupParameters.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// BackupParameters base public partial class BackupParameters : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParameters, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParameters, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParametersInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/BackupParameters.json.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupParameters.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/BackupParameters.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupParameters.json.cs index bf3f20668963..d39dc9f31793 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupParameters.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupParameters.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -70,15 +70,15 @@ internal BackupParameters(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runt } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParameters. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParameters interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParameters. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/BackupPolicy.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupPolicy.PowerShell.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20220501/BackupPolicy.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupPolicy.PowerShell.cs index b1d875c9e1ab..03944e0a7ae1 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupPolicy.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupPolicy.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,21 +70,21 @@ internal BackupPolicy(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("PolicyRule")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicyInternal)this).PolicyRule = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRule[]) content.GetValueForProperty("PolicyRule",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicyInternal)this).PolicyRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BasePolicyRuleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicyInternal)this).PolicyRule = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRule[]) content.GetValueForProperty("PolicyRule",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicyInternal)this).PolicyRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BasePolicyRuleTypeConverter.ConvertFrom)); } if (content.Contains("DatasourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -99,41 +99,41 @@ internal BackupPolicy(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("PolicyRule")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicyInternal)this).PolicyRule = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRule[]) content.GetValueForProperty("PolicyRule",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicyInternal)this).PolicyRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BasePolicyRuleTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicyInternal)this).PolicyRule = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRule[]) content.GetValueForProperty("PolicyRule",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicyInternal)this).PolicyRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BasePolicyRuleTypeConverter.ConvertFrom)); } if (content.Contains("DatasourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupPolicy DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupPolicy DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupPolicy(content); } @@ -143,7 +143,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/BackupPolicy.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupPolicy.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/BackupPolicy.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupPolicy.TypeConverter.cs index 5ee5279e3d0a..56b24f4a65d5 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupPolicy.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupPolicy.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IBackupPolicy ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/BackupPolicy.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupPolicy.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20220501/BackupPolicy.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupPolicy.cs index 055c9b5c74d4..658839b25985 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupPolicy.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupPolicy.cs @@ -3,37 +3,37 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Rule based backup policy public partial class BackupPolicy : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicyInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicyInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicy __baseBackupPolicy = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BaseBackupPolicy(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicy __baseBackupPolicy = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBaseBackupPolicyInternal)__baseBackupPolicy).DatasourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyInternal)__baseBackupPolicy).DatasourceType = value ; } + public string[] DatasourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyInternal)__baseBackupPolicy).DatasourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBaseBackupPolicyInternal)__baseBackupPolicy).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyInternal)__baseBackupPolicy).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyInternal)__baseBackupPolicy).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyInternal)__baseBackupPolicy).ObjectType = value ; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRule[] _policyRule; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBasePolicyRule[] PolicyRule { get => this._policyRule; set => this._policyRule = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRule[] PolicyRule { get => this._policyRule; set => this._policyRule = value; } /// Creates an new instance. public BackupPolicy() @@ -56,7 +56,7 @@ public BackupPolicy() /// Rule based backup policy public partial interface IBackupPolicy : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicy + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicy { /// /// Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc @@ -66,18 +66,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.Api20220501.IBasePolicyRule),typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRule),typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureRetentionRule) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRule[] PolicyRule { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRule),typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRule),typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureRetentionRule) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRule[] PolicyRule { get; set; } } /// Rule based backup policy internal partial interface IBackupPolicyInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyInternal { /// /// Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc /// - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRule[] PolicyRule { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRule[] PolicyRule { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/BackupPolicy.json.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupPolicy.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20220501/BackupPolicy.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupPolicy.json.cs index 28a2b9900fc2..ba767fcaf737 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupPolicy.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupPolicy.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,19 +65,19 @@ internal BackupPolicy(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime. { return; } - __baseBackupPolicy = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20220501.IBasePolicyRule) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BasePolicyRule.FromJson(__u) )) ))() : null : PolicyRule;} + __baseBackupPolicy = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20221201.IBasePolicyRule) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BasePolicyRule.FromJson(__u) )) ))() : null : PolicyRule;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/BackupSchedule.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupSchedule.PowerShell.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20220501/BackupSchedule.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupSchedule.PowerShell.cs index 7f7a5fe0a121..bc0ea2d33b43 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupSchedule.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupSchedule.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,17 +70,17 @@ internal BackupSchedule(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("RepeatingTimeInterval")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupScheduleInternal)this).RepeatingTimeInterval = (string[]) content.GetValueForProperty("RepeatingTimeInterval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupScheduleInternal)this).RepeatingTimeInterval, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupScheduleInternal)this).RepeatingTimeInterval = (string[]) content.GetValueForProperty("RepeatingTimeInterval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupScheduleInternal)this).RepeatingTimeInterval, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("TimeZone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupScheduleInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupScheduleInternal)this).TimeZone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupScheduleInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupScheduleInternal)this).TimeZone, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -95,37 +95,37 @@ internal BackupSchedule(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("RepeatingTimeInterval")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupScheduleInternal)this).RepeatingTimeInterval = (string[]) content.GetValueForProperty("RepeatingTimeInterval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupScheduleInternal)this).RepeatingTimeInterval, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupScheduleInternal)this).RepeatingTimeInterval = (string[]) content.GetValueForProperty("RepeatingTimeInterval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupScheduleInternal)this).RepeatingTimeInterval, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("TimeZone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupScheduleInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupScheduleInternal)this).TimeZone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupScheduleInternal)this).TimeZone = (string) content.GetValueForProperty("TimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupScheduleInternal)this).TimeZone, 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.Api20220501.IBackupSchedule DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupSchedule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupSchedule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupSchedule(content); } @@ -135,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupSchedule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/BackupSchedule.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupSchedule.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/BackupSchedule.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupSchedule.TypeConverter.cs index 256e1e0ed3f7..97f62a15be02 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupSchedule.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupSchedule.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IBackupSchedule ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupSchedule ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupSchedule).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupSchedule).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/BackupSchedule.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupSchedule.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/BackupSchedule.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupSchedule.cs index 60ea4a000684..757d155868ae 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupSchedule.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupSchedule.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Schedule for backup public partial class BackupSchedule : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupSchedule, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupScheduleInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupSchedule, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupScheduleInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/BackupSchedule.json.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupSchedule.json.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/BackupSchedule.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupSchedule.json.cs index 457206ac5b6a..5c4ef5f43ec4 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupSchedule.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupSchedule.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -71,13 +71,13 @@ internal BackupSchedule(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtim } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupSchedule. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupSchedule. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupSchedule. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupSchedule. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupSchedule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20221201/BackupVault.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupVault.PowerShell.cs new file mode 100644 index 000000000000..f856ea3f97bf --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupVault.PowerShell.cs @@ -0,0 +1,312 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Backup Vault + [System.ComponentModel.TypeConverter(typeof(BackupVaultTypeConverter))] + public partial class BackupVault + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should 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 BackupVault(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MonitoringSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).MonitoringSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings) content.GetValueForProperty("MonitoringSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).MonitoringSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.MonitoringSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("ResourceMoveDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetails) content.GetValueForProperty("ResourceMoveDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceMoveDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("SecuritySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).SecuritySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettings) content.GetValueForProperty("SecuritySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).SecuritySetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecuritySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FeatureSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).FeatureSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings) content.GetValueForProperty("FeatureSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).FeatureSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.FeatureSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ResourceMoveState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState?) content.GetValueForProperty("ResourceMoveState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState.CreateFrom); + } + if (content.Contains("StorageSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).StorageSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSetting[]) content.GetValueForProperty("StorageSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).StorageSetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.StorageSettingTypeConverter.ConvertFrom)); + } + if (content.Contains("IsVaultProtectedByResourceGuard")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).IsVaultProtectedByResourceGuard = (bool?) content.GetValueForProperty("IsVaultProtectedByResourceGuard",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).IsVaultProtectedByResourceGuard, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("ResourceMoveDetailOperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveDetailOperationId = (string) content.GetValueForProperty("ResourceMoveDetailOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveDetailOperationId, global::System.Convert.ToString); + } + if (content.Contains("SecuritySettingImmutabilitySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).SecuritySettingImmutabilitySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings) content.GetValueForProperty("SecuritySettingImmutabilitySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).SecuritySettingImmutabilitySetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ImmutabilitySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("MonitoringSettingAzureMonitorAlertSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).MonitoringSettingAzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings) content.GetValueForProperty("MonitoringSettingAzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).MonitoringSettingAzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("ResourceMoveDetailStartTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveDetailStartTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailStartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveDetailStartTimeUtc, global::System.Convert.ToString); + } + if (content.Contains("ResourceMoveDetailCompletionTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveDetailCompletionTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailCompletionTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveDetailCompletionTimeUtc, global::System.Convert.ToString); + } + if (content.Contains("ResourceMoveDetailSourceResourcePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveDetailSourceResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailSourceResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveDetailSourceResourcePath, global::System.Convert.ToString); + } + if (content.Contains("ResourceMoveDetailTargetResourcePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveDetailTargetResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailTargetResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveDetailTargetResourcePath, global::System.Convert.ToString); + } + if (content.Contains("SoftDeleteSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).SoftDeleteSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings) content.GetValueForProperty("SoftDeleteSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).SoftDeleteSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SoftDeleteSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FeatureSettingCrossSubscriptionRestoreSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).FeatureSettingCrossSubscriptionRestoreSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings) content.GetValueForProperty("FeatureSettingCrossSubscriptionRestoreSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).FeatureSettingCrossSubscriptionRestoreSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CrossSubscriptionRestoreSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("AzureMonitorAlertsForAllJobFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).AzureMonitorAlertsForAllJobFailure, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState.CreateFrom); + } + if (content.Contains("SoftDeleteState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).SoftDeleteState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState?) content.GetValueForProperty("SoftDeleteState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).SoftDeleteState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState.CreateFrom); + } + if (content.Contains("SoftDeleteRetentionDurationInDay")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).SoftDeleteRetentionDurationInDay = (double?) content.GetValueForProperty("SoftDeleteRetentionDurationInDay",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).SoftDeleteRetentionDurationInDay, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("ImmutabilityState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ImmutabilityState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState?) content.GetValueForProperty("ImmutabilityState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ImmutabilityState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState.CreateFrom); + } + if (content.Contains("CrossSubscriptionRestoreState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).CrossSubscriptionRestoreState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState?) content.GetValueForProperty("CrossSubscriptionRestoreState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).CrossSubscriptionRestoreState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal BackupVault(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MonitoringSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).MonitoringSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings) content.GetValueForProperty("MonitoringSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).MonitoringSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.MonitoringSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("ResourceMoveDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetails) content.GetValueForProperty("ResourceMoveDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceMoveDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("SecuritySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).SecuritySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettings) content.GetValueForProperty("SecuritySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).SecuritySetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecuritySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FeatureSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).FeatureSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings) content.GetValueForProperty("FeatureSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).FeatureSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.FeatureSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ResourceMoveState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState?) content.GetValueForProperty("ResourceMoveState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState.CreateFrom); + } + if (content.Contains("StorageSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).StorageSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSetting[]) content.GetValueForProperty("StorageSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).StorageSetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.StorageSettingTypeConverter.ConvertFrom)); + } + if (content.Contains("IsVaultProtectedByResourceGuard")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).IsVaultProtectedByResourceGuard = (bool?) content.GetValueForProperty("IsVaultProtectedByResourceGuard",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).IsVaultProtectedByResourceGuard, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("ResourceMoveDetailOperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveDetailOperationId = (string) content.GetValueForProperty("ResourceMoveDetailOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveDetailOperationId, global::System.Convert.ToString); + } + if (content.Contains("SecuritySettingImmutabilitySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).SecuritySettingImmutabilitySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings) content.GetValueForProperty("SecuritySettingImmutabilitySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).SecuritySettingImmutabilitySetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ImmutabilitySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("MonitoringSettingAzureMonitorAlertSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).MonitoringSettingAzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings) content.GetValueForProperty("MonitoringSettingAzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).MonitoringSettingAzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("ResourceMoveDetailStartTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveDetailStartTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailStartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveDetailStartTimeUtc, global::System.Convert.ToString); + } + if (content.Contains("ResourceMoveDetailCompletionTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveDetailCompletionTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailCompletionTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveDetailCompletionTimeUtc, global::System.Convert.ToString); + } + if (content.Contains("ResourceMoveDetailSourceResourcePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveDetailSourceResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailSourceResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveDetailSourceResourcePath, global::System.Convert.ToString); + } + if (content.Contains("ResourceMoveDetailTargetResourcePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveDetailTargetResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailTargetResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ResourceMoveDetailTargetResourcePath, global::System.Convert.ToString); + } + if (content.Contains("SoftDeleteSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).SoftDeleteSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings) content.GetValueForProperty("SoftDeleteSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).SoftDeleteSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SoftDeleteSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FeatureSettingCrossSubscriptionRestoreSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).FeatureSettingCrossSubscriptionRestoreSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings) content.GetValueForProperty("FeatureSettingCrossSubscriptionRestoreSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).FeatureSettingCrossSubscriptionRestoreSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CrossSubscriptionRestoreSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("AzureMonitorAlertsForAllJobFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).AzureMonitorAlertsForAllJobFailure, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState.CreateFrom); + } + if (content.Contains("SoftDeleteState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).SoftDeleteState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState?) content.GetValueForProperty("SoftDeleteState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).SoftDeleteState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState.CreateFrom); + } + if (content.Contains("SoftDeleteRetentionDurationInDay")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).SoftDeleteRetentionDurationInDay = (double?) content.GetValueForProperty("SoftDeleteRetentionDurationInDay",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).SoftDeleteRetentionDurationInDay, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("ImmutabilityState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ImmutabilityState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState?) content.GetValueForProperty("ImmutabilityState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).ImmutabilityState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState.CreateFrom); + } + if (content.Contains("CrossSubscriptionRestoreState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).CrossSubscriptionRestoreState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState?) content.GetValueForProperty("CrossSubscriptionRestoreState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)this).CrossSubscriptionRestoreState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVault DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new BackupVault(content); + } + + /// + /// Deserializes a 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.Api20221201.IBackupVault DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new BackupVault(content); + } + + /// + /// Creates a new instance of , deserializing the content from a 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.Api20221201.IBackupVault 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 + [System.ComponentModel.TypeConverter(typeof(BackupVaultTypeConverter))] + public partial interface IBackupVault + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/BackupVault.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupVault.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/BackupVault.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupVault.TypeConverter.cs index a5a9226f6db0..c3037fd20d4f 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupVault.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupVault.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IBackupVault ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVault ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVault).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVault).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20221201/BackupVault.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupVault.cs new file mode 100644 index 000000000000..a126d5a406b2 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupVault.cs @@ -0,0 +1,322 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by 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.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Backup Vault + public partial class BackupVault : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVault, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal + { + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettingsInternal)MonitoringSetting).AzureMonitorAlertsForAllJobFailure; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettingsInternal)MonitoringSetting).AzureMonitorAlertsForAllJobFailure = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState)""); } + + /// CrossSubscriptionRestore state + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState? CrossSubscriptionRestoreState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettingsInternal)FeatureSetting).CrossSubscriptionRestoreState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettingsInternal)FeatureSetting).CrossSubscriptionRestoreState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState)""); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings _featureSetting; + + /// Feature Settings + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings FeatureSetting { get => (this._featureSetting = this._featureSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.FeatureSettings()); set => this._featureSetting = value; } + + /// Immutability state + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState? ImmutabilityState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)SecuritySetting).ImmutabilityState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)SecuritySetting).ImmutabilityState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState)""); } + + /// Backing field for property. + private bool? _isVaultProtectedByResourceGuard; + + /// Is vault protected by resource guard + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public bool? IsVaultProtectedByResourceGuard { get => this._isVaultProtectedByResourceGuard; } + + /// Internal Acessors for FeatureSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal.FeatureSetting { get => (this._featureSetting = this._featureSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.FeatureSettings()); set { {_featureSetting = value;} } } + + /// Internal Acessors for FeatureSettingCrossSubscriptionRestoreSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal.FeatureSettingCrossSubscriptionRestoreSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettingsInternal)FeatureSetting).CrossSubscriptionRestoreSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettingsInternal)FeatureSetting).CrossSubscriptionRestoreSetting = value; } + + /// Internal Acessors for IsVaultProtectedByResourceGuard + bool? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal.IsVaultProtectedByResourceGuard { get => this._isVaultProtectedByResourceGuard; set { {_isVaultProtectedByResourceGuard = value;} } } + + /// Internal Acessors for MonitoringSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal.MonitoringSetting { get => (this._monitoringSetting = this._monitoringSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.MonitoringSettings()); set { {_monitoringSetting = value;} } } + + /// Internal Acessors for MonitoringSettingAzureMonitorAlertSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal.MonitoringSettingAzureMonitorAlertSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettingsInternal)MonitoringSetting).AzureMonitorAlertSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettingsInternal)MonitoringSetting).AzureMonitorAlertSetting = value; } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Internal Acessors for ResourceMoveDetail + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal.ResourceMoveDetail { get => (this._resourceMoveDetail = this._resourceMoveDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceMoveDetails()); set { {_resourceMoveDetail = value;} } } + + /// Internal Acessors for ResourceMoveState + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal.ResourceMoveState { get => this._resourceMoveState; set { {_resourceMoveState = value;} } } + + /// Internal Acessors for SecuritySetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal.SecuritySetting { get => (this._securitySetting = this._securitySetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecuritySettings()); set { {_securitySetting = value;} } } + + /// Internal Acessors for SecuritySettingImmutabilitySetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal.SecuritySettingImmutabilitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)SecuritySetting).ImmutabilitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)SecuritySetting).ImmutabilitySetting = value; } + + /// Internal Acessors for SoftDeleteSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal.SoftDeleteSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)SecuritySetting).SoftDeleteSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)SecuritySetting).SoftDeleteSetting = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings _monitoringSetting; + + /// Monitoring Settings + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings MonitoringSetting { get => (this._monitoringSetting = this._monitoringSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.MonitoringSettings()); set => this._monitoringSetting = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? _provisioningState; + + /// Provisioning state of the BackupVault resource + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetails _resourceMoveDetail; + + /// Resource move details for backup vault + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetails ResourceMoveDetail { get => (this._resourceMoveDetail = this._resourceMoveDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceMoveDetails()); } + + /// + /// Completion time in UTC of latest ResourceMove operation attempted. ISO 8601 format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public string ResourceMoveDetailCompletionTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)ResourceMoveDetail).CompletionTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)ResourceMoveDetail).CompletionTimeUtc = value ?? null; } + + /// CorrelationId of latest ResourceMove operation attempted + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public string ResourceMoveDetailOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)ResourceMoveDetail).OperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)ResourceMoveDetail).OperationId = value ?? null; } + + /// ARM resource path of source resource + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public string ResourceMoveDetailSourceResourcePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)ResourceMoveDetail).SourceResourcePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)ResourceMoveDetail).SourceResourcePath = value ?? null; } + + /// Start time in UTC of latest ResourceMove operation attempted. ISO 8601 format. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public string ResourceMoveDetailStartTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)ResourceMoveDetail).StartTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)ResourceMoveDetail).StartTimeUtc = value ?? null; } + + /// ARM resource path of target resource used in latest ResourceMove operation + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public string ResourceMoveDetailTargetResourcePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)ResourceMoveDetail).TargetResourcePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)ResourceMoveDetail).TargetResourcePath = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState? _resourceMoveState; + + /// Resource move state for backup vault + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState? ResourceMoveState { get => this._resourceMoveState; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettings _securitySetting; + + /// Security Settings + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettings SecuritySetting { get => (this._securitySetting = this._securitySetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecuritySettings()); set => this._securitySetting = value; } + + /// Soft delete retention duration + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public double? SoftDeleteRetentionDurationInDay { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)SecuritySetting).SoftDeleteRetentionDurationInDay; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)SecuritySetting).SoftDeleteRetentionDurationInDay = value ?? default(double); } + + /// State of soft delete + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState? SoftDeleteState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)SecuritySetting).SoftDeleteState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)SecuritySetting).SoftDeleteState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState)""); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSetting[] _storageSetting; + + /// Storage Settings + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSetting[] StorageSetting { get => this._storageSetting; set => this._storageSetting = value; } + + /// Creates an new instance. + public BackupVault() + { + + } + } + /// Backup Vault + public partial interface IBackupVault : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable + { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"alertsForAllJobFailures", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { get; set; } + /// CrossSubscriptionRestore state + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"CrossSubscriptionRestore state", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState? CrossSubscriptionRestoreState { get; set; } + /// Immutability state + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Immutability state", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState? ImmutabilityState { get; set; } + /// Is vault protected by resource guard + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Is vault protected by resource guard", + SerializedName = @"isVaultProtectedByResourceGuard", + PossibleTypes = new [] { typeof(bool) })] + bool? IsVaultProtectedByResourceGuard { get; } + /// Provisioning state of the BackupVault resource + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Provisioning state of the BackupVault resource", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? ProvisioningState { get; } + /// + /// Completion time in UTC of latest ResourceMove operation attempted. ISO 8601 format. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Completion time in UTC of latest ResourceMove operation attempted. ISO 8601 format.", + SerializedName = @"completionTimeUtc", + PossibleTypes = new [] { typeof(string) })] + string ResourceMoveDetailCompletionTimeUtc { get; set; } + /// CorrelationId of latest ResourceMove operation attempted + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"CorrelationId of latest ResourceMove operation attempted", + SerializedName = @"operationId", + PossibleTypes = new [] { typeof(string) })] + string ResourceMoveDetailOperationId { get; set; } + /// ARM resource path of source resource + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ARM resource path of source resource", + SerializedName = @"sourceResourcePath", + PossibleTypes = new [] { typeof(string) })] + string ResourceMoveDetailSourceResourcePath { get; set; } + /// Start time in UTC of latest ResourceMove operation attempted. ISO 8601 format. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Start time in UTC of latest ResourceMove operation attempted. ISO 8601 format.", + SerializedName = @"startTimeUtc", + PossibleTypes = new [] { typeof(string) })] + string ResourceMoveDetailStartTimeUtc { get; set; } + /// ARM resource path of target resource used in latest ResourceMove operation + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ARM resource path of target resource used in latest ResourceMove operation", + SerializedName = @"targetResourcePath", + PossibleTypes = new [] { typeof(string) })] + string ResourceMoveDetailTargetResourcePath { get; set; } + /// Resource move state for backup vault + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource move state for backup vault", + SerializedName = @"resourceMoveState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState? ResourceMoveState { get; } + /// Soft delete retention duration + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Soft delete retention duration", + SerializedName = @"retentionDurationInDays", + PossibleTypes = new [] { typeof(double) })] + double? SoftDeleteRetentionDurationInDay { get; set; } + /// State of soft delete + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"State of soft delete", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState? SoftDeleteState { get; set; } + /// Storage Settings + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Storage Settings", + SerializedName = @"storageSettings", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSetting) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSetting[] StorageSetting { get; set; } + + } + /// Backup Vault + internal partial interface IBackupVaultInternal + + { + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { get; set; } + /// CrossSubscriptionRestore state + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState? CrossSubscriptionRestoreState { get; set; } + /// Feature Settings + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings FeatureSetting { get; set; } + /// CrossSubscriptionRestore Settings + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings FeatureSettingCrossSubscriptionRestoreSetting { get; set; } + /// Immutability state + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState? ImmutabilityState { get; set; } + /// Is vault protected by resource guard + bool? IsVaultProtectedByResourceGuard { get; set; } + /// Monitoring Settings + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings MonitoringSetting { get; set; } + /// Settings for Azure Monitor based alerts + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings MonitoringSettingAzureMonitorAlertSetting { get; set; } + /// Provisioning state of the BackupVault resource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? ProvisioningState { get; set; } + /// Resource move details for backup vault + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetails ResourceMoveDetail { get; set; } + /// + /// Completion time in UTC of latest ResourceMove operation attempted. ISO 8601 format. + /// + string ResourceMoveDetailCompletionTimeUtc { get; set; } + /// CorrelationId of latest ResourceMove operation attempted + string ResourceMoveDetailOperationId { get; set; } + /// ARM resource path of source resource + string ResourceMoveDetailSourceResourcePath { get; set; } + /// Start time in UTC of latest ResourceMove operation attempted. ISO 8601 format. + string ResourceMoveDetailStartTimeUtc { get; set; } + /// ARM resource path of target resource used in latest ResourceMove operation + string ResourceMoveDetailTargetResourcePath { get; set; } + /// Resource move state for backup vault + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState? ResourceMoveState { get; set; } + /// Security Settings + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettings SecuritySetting { get; set; } + /// Immutability Settings at vault level + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings SecuritySettingImmutabilitySetting { get; set; } + /// Soft delete retention duration + double? SoftDeleteRetentionDurationInDay { get; set; } + /// Soft delete related settings + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings SoftDeleteSetting { get; set; } + /// State of soft delete + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState? SoftDeleteState { get; set; } + /// Storage Settings + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSetting[] StorageSetting { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/BackupVault.json.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupVault.json.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20220501/BackupVault.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupVault.json.cs index 2c42f3e1cab9..45af245d0811 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupVault.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupVault.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,22 +65,25 @@ internal BackupVault(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.J { return; } - {_monitoringSetting = If( json?.PropertyT("monitoringSettings"), out var __jsonMonitoringSettings) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.MonitoringSettings.FromJson(__jsonMonitoringSettings) : MonitoringSetting;} - {_resourceMoveDetail = If( json?.PropertyT("resourceMoveDetails"), out var __jsonResourceMoveDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceMoveDetails.FromJson(__jsonResourceMoveDetails) : ResourceMoveDetail;} + {_monitoringSetting = If( json?.PropertyT("monitoringSettings"), out var __jsonMonitoringSettings) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.MonitoringSettings.FromJson(__jsonMonitoringSettings) : MonitoringSetting;} + {_resourceMoveDetail = If( json?.PropertyT("resourceMoveDetails"), out var __jsonResourceMoveDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceMoveDetails.FromJson(__jsonResourceMoveDetails) : ResourceMoveDetail;} + {_securitySetting = If( json?.PropertyT("securitySettings"), out var __jsonSecuritySettings) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecuritySettings.FromJson(__jsonSecuritySettings) : SecuritySetting;} + {_featureSetting = If( json?.PropertyT("featureSettings"), out var __jsonFeatureSettings) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.FeatureSettings.FromJson(__jsonFeatureSettings) : FeatureSetting;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} {_resourceMoveState = If( json?.PropertyT("resourceMoveState"), out var __jsonResourceMoveState) ? (string)__jsonResourceMoveState : (string)ResourceMoveState;} - {_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.Api20220501.IStorageSetting) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IStorageSetting) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.StorageSetting.FromJson(__u) )) ))() : null : StorageSetting;} + {_isVaultProtectedByResourceGuard = If( json?.PropertyT("isVaultProtectedByResourceGuard"), out var __jsonIsVaultProtectedByResourceGuard) ? (bool?)__jsonIsVaultProtectedByResourceGuard : IsVaultProtectedByResourceGuard;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVault. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVault. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVault. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVault. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVault FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -109,6 +112,8 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode T { AddIf( null != this._resourceMoveDetail ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) this._resourceMoveDetail.ToJson(null,serializationMode) : null, "resourceMoveDetails" ,container.Add ); } + AddIf( null != this._securitySetting ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) this._securitySetting.ToJson(null,serializationMode) : null, "securitySettings" ,container.Add ); + AddIf( null != this._featureSetting ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) this._featureSetting.ToJson(null,serializationMode) : null, "featureSettings" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); @@ -126,6 +131,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode T } container.Add("storageSettings",__w); } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._isVaultProtectedByResourceGuard ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonBoolean((bool)this._isVaultProtectedByResourceGuard) : null, "isVaultProtectedByResourceGuard" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/src/DataProtection/generated/api/Models/Api20221201/BackupVaultResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupVaultResource.PowerShell.cs new file mode 100644 index 000000000000..74c530134dc6 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupVaultResource.PowerShell.cs @@ -0,0 +1,408 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by 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.Models.Api20221201 +{ + 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 + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVault) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupVaultTypeConverter.ConvertFrom); + } + if (content.Contains("ETag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).ETag, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseTrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); + } + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppIdentityDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("MonitoringSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).MonitoringSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings) content.GetValueForProperty("MonitoringSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).MonitoringSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.MonitoringSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("SecuritySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).SecuritySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettings) content.GetValueForProperty("SecuritySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).SecuritySetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecuritySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FeatureSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).FeatureSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings) content.GetValueForProperty("FeatureSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).FeatureSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.FeatureSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ResourceMoveDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetails) content.GetValueForProperty("ResourceMoveDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceMoveDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ResourceMoveState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState?) content.GetValueForProperty("ResourceMoveState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState.CreateFrom); + } + if (content.Contains("StorageSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).StorageSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSetting[]) content.GetValueForProperty("StorageSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).StorageSetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.StorageSettingTypeConverter.ConvertFrom)); + } + if (content.Contains("IsVaultProtectedByResourceGuard")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).IsVaultProtectedByResourceGuard = (bool?) content.GetValueForProperty("IsVaultProtectedByResourceGuard",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).IsVaultProtectedByResourceGuard, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("ResourceMoveDetailOperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveDetailOperationId = (string) content.GetValueForProperty("ResourceMoveDetailOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveDetailOperationId, global::System.Convert.ToString); + } + if (content.Contains("SecuritySettingImmutabilitySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).SecuritySettingImmutabilitySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings) content.GetValueForProperty("SecuritySettingImmutabilitySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).SecuritySettingImmutabilitySetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ImmutabilitySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("MonitoringSettingAzureMonitorAlertSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).MonitoringSettingAzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings) content.GetValueForProperty("MonitoringSettingAzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).MonitoringSettingAzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("ResourceMoveDetailStartTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveDetailStartTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailStartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveDetailStartTimeUtc, global::System.Convert.ToString); + } + if (content.Contains("ResourceMoveDetailCompletionTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveDetailCompletionTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailCompletionTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveDetailCompletionTimeUtc, global::System.Convert.ToString); + } + if (content.Contains("ResourceMoveDetailSourceResourcePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveDetailSourceResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailSourceResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveDetailSourceResourcePath, global::System.Convert.ToString); + } + if (content.Contains("ResourceMoveDetailTargetResourcePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveDetailTargetResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailTargetResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveDetailTargetResourcePath, global::System.Convert.ToString); + } + if (content.Contains("SoftDeleteSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).SoftDeleteSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings) content.GetValueForProperty("SoftDeleteSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).SoftDeleteSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SoftDeleteSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FeatureSettingCrossSubscriptionRestoreSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).FeatureSettingCrossSubscriptionRestoreSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings) content.GetValueForProperty("FeatureSettingCrossSubscriptionRestoreSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).FeatureSettingCrossSubscriptionRestoreSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CrossSubscriptionRestoreSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("AzureMonitorAlertsForAllJobFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).AzureMonitorAlertsForAllJobFailure, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState.CreateFrom); + } + if (content.Contains("SoftDeleteState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).SoftDeleteState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState?) content.GetValueForProperty("SoftDeleteState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).SoftDeleteState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState.CreateFrom); + } + if (content.Contains("SoftDeleteRetentionDurationInDay")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).SoftDeleteRetentionDurationInDay = (double?) content.GetValueForProperty("SoftDeleteRetentionDurationInDay",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).SoftDeleteRetentionDurationInDay, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("ImmutabilityState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ImmutabilityState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState?) content.GetValueForProperty("ImmutabilityState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ImmutabilityState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState.CreateFrom); + } + if (content.Contains("CrossSubscriptionRestoreState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).CrossSubscriptionRestoreState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState?) content.GetValueForProperty("CrossSubscriptionRestoreState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).CrossSubscriptionRestoreState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState.CreateFrom); + } + 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 + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVault) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupVaultTypeConverter.ConvertFrom); + } + if (content.Contains("ETag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).ETag, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseTrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); + } + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppIdentityDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("MonitoringSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).MonitoringSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings) content.GetValueForProperty("MonitoringSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).MonitoringSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.MonitoringSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("SecuritySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).SecuritySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettings) content.GetValueForProperty("SecuritySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).SecuritySetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecuritySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FeatureSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).FeatureSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings) content.GetValueForProperty("FeatureSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).FeatureSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.FeatureSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ResourceMoveDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetails) content.GetValueForProperty("ResourceMoveDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceMoveDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("ResourceMoveState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState?) content.GetValueForProperty("ResourceMoveState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState.CreateFrom); + } + if (content.Contains("StorageSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).StorageSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSetting[]) content.GetValueForProperty("StorageSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).StorageSetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.StorageSettingTypeConverter.ConvertFrom)); + } + if (content.Contains("IsVaultProtectedByResourceGuard")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).IsVaultProtectedByResourceGuard = (bool?) content.GetValueForProperty("IsVaultProtectedByResourceGuard",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).IsVaultProtectedByResourceGuard, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("ResourceMoveDetailOperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveDetailOperationId = (string) content.GetValueForProperty("ResourceMoveDetailOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveDetailOperationId, global::System.Convert.ToString); + } + if (content.Contains("SecuritySettingImmutabilitySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).SecuritySettingImmutabilitySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings) content.GetValueForProperty("SecuritySettingImmutabilitySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).SecuritySettingImmutabilitySetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ImmutabilitySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("MonitoringSettingAzureMonitorAlertSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).MonitoringSettingAzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings) content.GetValueForProperty("MonitoringSettingAzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).MonitoringSettingAzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("ResourceMoveDetailStartTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveDetailStartTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailStartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveDetailStartTimeUtc, global::System.Convert.ToString); + } + if (content.Contains("ResourceMoveDetailCompletionTimeUtc")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveDetailCompletionTimeUtc = (string) content.GetValueForProperty("ResourceMoveDetailCompletionTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveDetailCompletionTimeUtc, global::System.Convert.ToString); + } + if (content.Contains("ResourceMoveDetailSourceResourcePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveDetailSourceResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailSourceResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveDetailSourceResourcePath, global::System.Convert.ToString); + } + if (content.Contains("ResourceMoveDetailTargetResourcePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveDetailTargetResourcePath = (string) content.GetValueForProperty("ResourceMoveDetailTargetResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ResourceMoveDetailTargetResourcePath, global::System.Convert.ToString); + } + if (content.Contains("SoftDeleteSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).SoftDeleteSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings) content.GetValueForProperty("SoftDeleteSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).SoftDeleteSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SoftDeleteSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FeatureSettingCrossSubscriptionRestoreSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).FeatureSettingCrossSubscriptionRestoreSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings) content.GetValueForProperty("FeatureSettingCrossSubscriptionRestoreSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).FeatureSettingCrossSubscriptionRestoreSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CrossSubscriptionRestoreSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("AzureMonitorAlertsForAllJobFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).AzureMonitorAlertsForAllJobFailure, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState.CreateFrom); + } + if (content.Contains("SoftDeleteState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).SoftDeleteState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState?) content.GetValueForProperty("SoftDeleteState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).SoftDeleteState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState.CreateFrom); + } + if (content.Contains("SoftDeleteRetentionDurationInDay")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).SoftDeleteRetentionDurationInDay = (double?) content.GetValueForProperty("SoftDeleteRetentionDurationInDay",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).SoftDeleteRetentionDurationInDay, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("ImmutabilityState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ImmutabilityState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState?) content.GetValueForProperty("ImmutabilityState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).ImmutabilityState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState.CreateFrom); + } + if (content.Contains("CrossSubscriptionRestoreState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).CrossSubscriptionRestoreState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState?) content.GetValueForProperty("CrossSubscriptionRestoreState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal)this).CrossSubscriptionRestoreState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20221201.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.Api20221201.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/Api20220501/BackupVaultResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupVaultResource.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/BackupVaultResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupVaultResource.TypeConverter.cs index d743716e773d..d5fdfbac20ba 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupVaultResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupVaultResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IBackupVaultResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/BackupVaultResource.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupVaultResource.cs similarity index 54% rename from src/DataProtection/generated/api/Models/Api20220501/BackupVaultResource.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupVaultResource.cs index fe0b5c1a30c5..f7002a0cccd3 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupVaultResource.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupVaultResource.cs @@ -3,40 +3,45 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Backup Vault Resource public partial class BackupVaultResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResource __dppTrackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppTrackedResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResource __dppTrackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppTrackedResource(); [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.AlertsState? AzureMonitorAlertsForAllJobFailure { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)Property).AzureMonitorAlertsForAllJobFailure; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)Property).AzureMonitorAlertsForAllJobFailure = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).AzureMonitorAlertsForAllJobFailure; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).AzureMonitorAlertsForAllJobFailure = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState)""); } + + /// CrossSubscriptionRestore state + [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.CrossSubscriptionRestoreState? CrossSubscriptionRestoreState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).CrossSubscriptionRestoreState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).CrossSubscriptionRestoreState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState)""); } /// 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.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).ETag = value ?? null; } + public string ETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppTrackedResource).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__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.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__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.Api20220501.IDppIdentityDetails Identity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Identity = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetails Identity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)__dppTrackedResource).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 @@ -44,132 +49,170 @@ 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.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).IdentityPrincipalId; } + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).IdentityTenantId; } + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).IdentityType = value ?? null; } + public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)__dppTrackedResource).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)__dppTrackedResource).IdentityType = value ?? null; } + + /// Immutability state + [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.ImmutabilityState? ImmutabilityState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).ImmutabilityState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).ImmutabilityState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState)""); } + + /// Is vault protected by resource guard + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DoNotFormat] + public bool? IsVaultProtectedByResourceGuard { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).IsVaultProtectedByResourceGuard; } /// 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.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Location = value ?? null; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppTrackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppTrackedResource).Location = value ?? null; } + + /// Internal Acessors for FeatureSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal.FeatureSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).FeatureSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).FeatureSetting = value; } + + /// Internal Acessors for FeatureSettingCrossSubscriptionRestoreSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal.FeatureSettingCrossSubscriptionRestoreSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).FeatureSettingCrossSubscriptionRestoreSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).FeatureSettingCrossSubscriptionRestoreSetting = value; } + + /// Internal Acessors for IsVaultProtectedByResourceGuard + bool? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal.IsVaultProtectedByResourceGuard { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).IsVaultProtectedByResourceGuard; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).IsVaultProtectedByResourceGuard = value; } /// Internal Acessors for MonitoringSetting - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal.MonitoringSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)Property).MonitoringSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)Property).MonitoringSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal.MonitoringSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).MonitoringSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).MonitoringSetting = value; } /// Internal Acessors for MonitoringSettingAzureMonitorAlertSetting - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal.MonitoringSettingAzureMonitorAlertSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)Property).MonitoringSettingAzureMonitorAlertSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)Property).MonitoringSettingAzureMonitorAlertSetting = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal.MonitoringSettingAzureMonitorAlertSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).MonitoringSettingAzureMonitorAlertSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).MonitoringSettingAzureMonitorAlertSetting = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVault Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupVault()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVault Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupVault()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).ProvisioningState = value; } /// Internal Acessors for ResourceMoveDetail - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal.ResourceMoveDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)Property).ResourceMoveDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)Property).ResourceMoveDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal.ResourceMoveDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).ResourceMoveDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).ResourceMoveDetail = value; } /// Internal Acessors for ResourceMoveState - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceInternal.ResourceMoveState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)Property).ResourceMoveState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)Property).ResourceMoveState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal.ResourceMoveState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).ResourceMoveState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).ResourceMoveState = value; } - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Id = value; } + /// Internal Acessors for SecuritySetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal.SecuritySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).SecuritySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).SecuritySetting = value; } - /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).IdentityPrincipalId = value; } + /// Internal Acessors for SecuritySettingImmutabilitySetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal.SecuritySettingImmutabilitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).SecuritySettingImmutabilitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).SecuritySettingImmutabilitySetting = value; } - /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).IdentityTenantId = value; } + /// Internal Acessors for SoftDeleteSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceInternal.SoftDeleteSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).SoftDeleteSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).SoftDeleteSetting = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppTrackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppTrackedResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppTrackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppTrackedResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppTrackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppTrackedResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppTrackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppTrackedResource).Type = value; } + + /// Internal Acessors for IdentityPrincipalId + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)__dppTrackedResource).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)__dppTrackedResource).IdentityPrincipalId = value; } + + /// Internal Acessors for IdentityTenantId + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)__dppTrackedResource).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)__dppTrackedResource).IdentityTenantId = 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.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppTrackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVault _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupVault Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupVault()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVault Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupVaultInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).ProvisioningState; } /// /// Completion time in UTC of latest ResourceMove operation attempted. ISO 8601 format. /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DoNotFormat] - public string ResourceMoveDetailCompletionTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)Property).ResourceMoveDetailCompletionTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)Property).ResourceMoveDetailCompletionTimeUtc = value ?? null; } + public string ResourceMoveDetailCompletionTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).ResourceMoveDetailCompletionTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).ResourceMoveDetailCompletionTimeUtc = value ?? null; } /// CorrelationId of latest ResourceMove operation attempted [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DoNotFormat] - public string ResourceMoveDetailOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)Property).ResourceMoveDetailOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)Property).ResourceMoveDetailOperationId = value ?? null; } + public string ResourceMoveDetailOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).ResourceMoveDetailOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).ResourceMoveDetailOperationId = value ?? null; } /// ARM resource path of source resource [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DoNotFormat] - public string ResourceMoveDetailSourceResourcePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)Property).ResourceMoveDetailSourceResourcePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)Property).ResourceMoveDetailSourceResourcePath = value ?? null; } + public string ResourceMoveDetailSourceResourcePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).ResourceMoveDetailSourceResourcePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).ResourceMoveDetailSourceResourcePath = value ?? null; } /// Start time in UTC of latest ResourceMove operation attempted. ISO 8601 format. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DoNotFormat] - public string ResourceMoveDetailStartTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)Property).ResourceMoveDetailStartTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)Property).ResourceMoveDetailStartTimeUtc = value ?? null; } + public string ResourceMoveDetailStartTimeUtc { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).ResourceMoveDetailStartTimeUtc; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).ResourceMoveDetailStartTimeUtc = value ?? null; } /// ARM resource path of target resource used in latest ResourceMove operation [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DoNotFormat] - public string ResourceMoveDetailTargetResourcePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)Property).ResourceMoveDetailTargetResourcePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)Property).ResourceMoveDetailTargetResourcePath = value ?? null; } + public string ResourceMoveDetailTargetResourcePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).ResourceMoveDetailTargetResourcePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).ResourceMoveDetailTargetResourcePath = value ?? null; } /// Resource move state for backup vault [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.ResourceMoveState? ResourceMoveState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)Property).ResourceMoveState; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState? ResourceMoveState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).ResourceMoveState; } + + /// Soft delete retention duration + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DoNotFormat] + public double? SoftDeleteRetentionDurationInDay { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).SoftDeleteRetentionDurationInDay; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).SoftDeleteRetentionDurationInDay = value ?? default(double); } + + /// State of soft delete + [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.SoftDeleteState? SoftDeleteState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).SoftDeleteState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).SoftDeleteState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState)""); } /// 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.Api20220501.IStorageSetting[] StorageSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)Property).StorageSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultInternal)Property).StorageSetting = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSetting[] StorageSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultInternal)Property).StorageSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__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.Api20220501.IDppTrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppTrackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__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.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppTrackedResource).Type; } /// Creates an new instance. public BackupVaultResource() @@ -192,7 +235,7 @@ public BackupVaultResource() /// Backup Vault Resource public partial interface IBackupVaultResource : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResource { [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -201,6 +244,30 @@ public partial interface IBackupVaultResource : SerializedName = @"alertsForAllJobFailures", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState) })] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { get; set; } + /// CrossSubscriptionRestore state + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"CrossSubscriptionRestore state", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState? CrossSubscriptionRestoreState { get; set; } + /// Immutability state + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Immutability state", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState? ImmutabilityState { get; set; } + /// Is vault protected by resource guard + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Is vault protected by resource guard", + SerializedName = @"isVaultProtectedByResourceGuard", + PossibleTypes = new [] { typeof(bool) })] + bool? IsVaultProtectedByResourceGuard { get; } /// Provisioning state of the BackupVault resource [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -259,31 +326,57 @@ public partial interface IBackupVaultResource : SerializedName = @"resourceMoveState", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState) })] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState? ResourceMoveState { get; } + /// Soft delete retention duration + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Soft delete retention duration", + SerializedName = @"retentionDurationInDays", + PossibleTypes = new [] { typeof(double) })] + double? SoftDeleteRetentionDurationInDay { get; set; } + /// State of soft delete + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"State of soft delete", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState? SoftDeleteState { get; set; } /// Storage Settings [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, Description = @"Storage Settings", SerializedName = @"storageSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSetting) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSetting[] StorageSetting { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSetting) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSetting[] StorageSetting { get; set; } } /// Backup Vault Resource internal partial interface IBackupVaultResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal { Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { get; set; } + /// CrossSubscriptionRestore state + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState? CrossSubscriptionRestoreState { get; set; } + /// Feature Settings + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings FeatureSetting { get; set; } + /// CrossSubscriptionRestore Settings + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings FeatureSettingCrossSubscriptionRestoreSetting { get; set; } + /// Immutability state + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState? ImmutabilityState { get; set; } + /// Is vault protected by resource guard + bool? IsVaultProtectedByResourceGuard { get; set; } /// Monitoring Settings - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettings MonitoringSetting { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings MonitoringSetting { get; set; } /// Settings for Azure Monitor based alerts - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings MonitoringSettingAzureMonitorAlertSetting { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings MonitoringSettingAzureMonitorAlertSetting { get; set; } /// BackupVaultResource properties - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVault Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVault Property { get; set; } /// Provisioning state of the BackupVault resource Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? ProvisioningState { get; set; } /// Resource move details for backup vault - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetails ResourceMoveDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetails ResourceMoveDetail { get; set; } /// /// Completion time in UTC of latest ResourceMove operation attempted. ISO 8601 format. /// @@ -298,8 +391,18 @@ internal partial interface IBackupVaultResourceInternal : string ResourceMoveDetailTargetResourcePath { get; set; } /// Resource move state for backup vault Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ResourceMoveState? ResourceMoveState { get; set; } + /// Security Settings + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettings SecuritySetting { get; set; } + /// Immutability Settings at vault level + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings SecuritySettingImmutabilitySetting { get; set; } + /// Soft delete retention duration + double? SoftDeleteRetentionDurationInDay { get; set; } + /// Soft delete related settings + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings SoftDeleteSetting { get; set; } + /// State of soft delete + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState? SoftDeleteState { get; set; } /// Storage Settings - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSetting[] StorageSetting { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSetting[] StorageSetting { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/BackupVaultResource.json.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupVaultResource.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/BackupVaultResource.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupVaultResource.json.cs index 144b11f7cc15..b529200e7177 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupVaultResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupVaultResource.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,19 +65,19 @@ internal BackupVaultResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.R { return; } - __dppTrackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppTrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupVault.FromJson(__jsonProperties) : Property;} + __dppTrackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppTrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupVault.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/BackupVaultResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupVaultResourceList.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20220501/BackupVaultResourceList.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupVaultResourceList.PowerShell.cs index f7043e7d4c17..77838ce6bdf8 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupVaultResourceList.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupVaultResourceList.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,17 +70,17 @@ internal BackupVaultResourceList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupVaultResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupVaultResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -95,39 +95,39 @@ internal BackupVaultResourceList(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupVaultResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupVaultResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupVaultResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupVaultResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BackupVaultResourceList(content); } @@ -137,7 +137,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/BackupVaultResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupVaultResourceList.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/BackupVaultResourceList.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupVaultResourceList.TypeConverter.cs index cb2ad623fb19..fb0e67e005ed 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupVaultResourceList.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupVaultResourceList.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IBackupVaultResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/BackupVaultResourceList.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupVaultResourceList.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20220501/BackupVaultResourceList.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupVaultResourceList.cs index f5ef6bfc7917..8da62c2df7be 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupVaultResourceList.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupVaultResourceList.cs @@ -3,34 +3,34 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// List of BackupVault resources public partial class BackupVaultResourceList : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceListInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceListInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppResourceList(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } + public string NextLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupVaultResource[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public BackupVaultResourceList() @@ -53,7 +53,7 @@ public BackupVaultResourceList() /// List of BackupVault resources public partial interface IBackupVaultResourceList : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceList { /// List of resources. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -61,16 +61,16 @@ public partial interface IBackupVaultResourceList : ReadOnly = false, Description = @"List of resources.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource[] Value { get; set; } } /// List of BackupVault resources internal partial interface IBackupVaultResourceListInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal { /// List of resources. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/BackupVaultResourceList.json.cs b/src/DataProtection/generated/api/Models/Api20221201/BackupVaultResourceList.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20220501/BackupVaultResourceList.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/BackupVaultResourceList.json.cs index 06bcee7b2081..3f25e9c5e9cb 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BackupVaultResourceList.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BackupVaultResourceList.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,19 +65,19 @@ internal BackupVaultResourceList(Microsoft.Azure.PowerShell.Cmdlets.DataProtecti { return; } - __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20220501.IBackupVaultResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupVaultResource.FromJson(__u) )) ))() : null : Value;} + __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20221201.IBackupVaultResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupVaultResource.FromJson(__u) )) ))() : null : Value;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/BaseBackupPolicy.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicy.PowerShell.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicy.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicy.PowerShell.cs index 0d1dbc4dec18..927864f5eebc 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicy.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicy.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,17 +70,17 @@ internal BaseBackupPolicy(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DatasourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -95,37 +95,37 @@ internal BaseBackupPolicy(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("DatasourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBaseBackupPolicy DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBaseBackupPolicy DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicy DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BaseBackupPolicy(content); } @@ -135,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicy FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/BaseBackupPolicy.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicy.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicy.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicy.TypeConverter.cs index bd88e9ea53bc..73b151b2a2bc 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicy.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicy.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IBaseBackupPolicy ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicy ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicy).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicy).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicy.cs b/src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicy.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicy.cs rename to src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicy.cs index 306469a48083..f1a5a2ea0256 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicy.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicy.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// BackupPolicy base public partial class BaseBackupPolicy : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicy, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicy, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicy.json.cs b/src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicy.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicy.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicy.json.cs index 2c1510e181bf..de0fb501a630 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicy.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicy.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -71,15 +71,15 @@ internal BaseBackupPolicy(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runt } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicy. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicy interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicy. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBaseBackupPolicy. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicy. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicy FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/BaseBackupPolicyResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicyResource.PowerShell.cs similarity index 79% rename from src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicyResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicyResource.PowerShell.cs index 1f0cf239f0b0..6b916e1b533d 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicyResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicyResource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,37 +70,37 @@ internal BaseBackupPolicyResource(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicy) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BaseBackupPolicyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicy) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BaseBackupPolicyTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("DatasourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResourceInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResourceInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -115,59 +115,59 @@ internal BaseBackupPolicyResource(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicy) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BaseBackupPolicyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicy) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BaseBackupPolicyTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("DatasourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResourceInternal)this).DatasourceType = (string[]) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResourceInternal)this).DatasourceType, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBaseBackupPolicyResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBaseBackupPolicyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BaseBackupPolicyResource(content); } @@ -177,7 +177,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/BaseBackupPolicyResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicyResource.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicyResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicyResource.TypeConverter.cs index 0906d807d9cb..f2db677c8b8c 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicyResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicyResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IBaseBackupPolicyResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicyResource.cs b/src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicyResource.cs similarity index 76% rename from src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicyResource.cs rename to src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicyResource.cs index c0f28b8cfde9..f29ff4bc73d2 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicyResource.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicyResource.cs @@ -3,68 +3,68 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// BaseBackupPolicy resource public partial class BaseBackupPolicyResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBaseBackupPolicyInternal)Property).DatasourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyInternal)Property).DatasourceType = value ?? null /* arrayOf */; } + public string[] DatasourceType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyInternal)Property).DatasourceType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppResourceInternal)__dppResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Id; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicy Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BaseBackupPolicy()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicy Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BaseBackupPolicy()); set { {_property = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppResourceInternal)__dppResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBaseBackupPolicyInternal)Property).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyInternal)Property).ObjectType = value ?? null; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyInternal)Property).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyInternal)Property).ObjectType = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicy _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicy _property; /// BaseBackupPolicyResource properties [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicy Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BaseBackupPolicy()); set => this._property = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicy Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)__dppResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppResourceInternal)__dppResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Type; } /// Creates an new instance. public BaseBackupPolicyResource() @@ -87,7 +87,7 @@ public BaseBackupPolicyResource() /// BaseBackupPolicy resource public partial interface IBaseBackupPolicyResource : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResource { /// Type of datasource for the backup management [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -109,14 +109,14 @@ public partial interface IBaseBackupPolicyResource : } /// BaseBackupPolicy resource internal partial interface IBaseBackupPolicyResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal { /// Type of datasource for the backup management string[] DatasourceType { get; set; } string ObjectType { get; set; } /// BaseBackupPolicyResource properties - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicy Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicy Property { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicyResource.json.cs b/src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicyResource.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicyResource.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicyResource.json.cs index 378abf020601..b9ae60f2e7db 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicyResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicyResource.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,19 +65,19 @@ internal BaseBackupPolicyResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtect { return; } - __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BaseBackupPolicy.FromJson(__jsonProperties) : Property;} + __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BaseBackupPolicy.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/BaseBackupPolicyResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicyResourceList.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicyResourceList.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicyResourceList.PowerShell.cs index d1eb50432c9a..0784e526a2b3 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicyResourceList.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicyResourceList.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,17 +70,17 @@ internal BaseBackupPolicyResourceList(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BaseBackupPolicyResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BaseBackupPolicyResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -95,39 +95,39 @@ internal BaseBackupPolicyResourceList(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BaseBackupPolicyResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BaseBackupPolicyResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBaseBackupPolicyResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBaseBackupPolicyResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BaseBackupPolicyResourceList(content); } @@ -137,7 +137,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/BaseBackupPolicyResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicyResourceList.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicyResourceList.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicyResourceList.TypeConverter.cs index 4e45a7d95fbe..90080ff74797 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicyResourceList.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicyResourceList.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IBaseBackupPolicyResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicyResourceList.cs b/src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicyResourceList.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicyResourceList.cs rename to src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicyResourceList.cs index 7a082bc9222a..8cf63b23b92f 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicyResourceList.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicyResourceList.cs @@ -3,34 +3,34 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// List of BaseBackupPolicy resources public partial class BaseBackupPolicyResourceList : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceListInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResourceListInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppResourceList(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } + public string NextLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBaseBackupPolicyResource[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public BaseBackupPolicyResourceList() @@ -53,7 +53,7 @@ public BaseBackupPolicyResourceList() /// List of BaseBackupPolicy resources public partial interface IBaseBackupPolicyResourceList : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceList { /// List of resources. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -61,16 +61,16 @@ public partial interface IBaseBackupPolicyResourceList : ReadOnly = false, Description = @"List of resources.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource[] Value { get; set; } } /// List of BaseBackupPolicy resources internal partial interface IBaseBackupPolicyResourceListInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal { /// List of resources. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicyResourceList.json.cs b/src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicyResourceList.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicyResourceList.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicyResourceList.json.cs index 15556f96bf93..43b1c93ea482 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BaseBackupPolicyResourceList.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BaseBackupPolicyResourceList.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,19 +65,19 @@ internal BaseBackupPolicyResourceList(Microsoft.Azure.PowerShell.Cmdlets.DataPro { return; } - __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20220501.IBaseBackupPolicyResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BaseBackupPolicyResource.FromJson(__u) )) ))() : null : Value;} + __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20221201.IBaseBackupPolicyResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BaseBackupPolicyResource.FromJson(__u) )) ))() : null : Value;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/BasePolicyRule.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/BasePolicyRule.PowerShell.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20220501/BasePolicyRule.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/BasePolicyRule.PowerShell.cs index 181c8675bcef..6eaa14b5b72f 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BasePolicyRule.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BasePolicyRule.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,17 +70,17 @@ internal BasePolicyRule(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -95,37 +95,37 @@ internal BasePolicyRule(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBasePolicyRule DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBasePolicyRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BasePolicyRule(content); } @@ -135,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRule FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/BasePolicyRule.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/BasePolicyRule.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/BasePolicyRule.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/BasePolicyRule.TypeConverter.cs index 375103a0073c..05a87237ec00 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BasePolicyRule.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BasePolicyRule.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IBasePolicyRule ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRule ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRule).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRule).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/BasePolicyRule.cs b/src/DataProtection/generated/api/Models/Api20221201/BasePolicyRule.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/BasePolicyRule.cs rename to src/DataProtection/generated/api/Models/Api20221201/BasePolicyRule.cs index 5663f4375451..b2c514baf78d 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BasePolicyRule.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BasePolicyRule.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// BasePolicy Rule public partial class BasePolicyRule : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRule, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRuleInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRule, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRuleInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/BasePolicyRule.json.cs b/src/DataProtection/generated/api/Models/Api20221201/BasePolicyRule.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/BasePolicyRule.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/BasePolicyRule.json.cs index 4f4f76a9b6ff..9120fe7f071e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/BasePolicyRule.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/BasePolicyRule.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -71,15 +71,15 @@ internal BasePolicyRule(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtim } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRule. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRule interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRule. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBasePolicyRule. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBasePolicyRule. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBasePolicyRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/CheckNameAvailabilityRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/CheckNameAvailabilityRequest.PowerShell.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20220501/CheckNameAvailabilityRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/CheckNameAvailabilityRequest.PowerShell.cs index eaeb6408eb66..cc854c93f213 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/CheckNameAvailabilityRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/CheckNameAvailabilityRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,17 +70,17 @@ internal CheckNameAvailabilityRequest(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityRequestInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityRequestInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityRequestInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityRequestInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityRequestInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityRequestInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityRequestInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -95,39 +95,39 @@ internal CheckNameAvailabilityRequest(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityRequestInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityRequestInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityRequestInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityRequestInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityRequestInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityRequestInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityRequestInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ICheckNameAvailabilityRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ICheckNameAvailabilityRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CheckNameAvailabilityRequest(content); } @@ -137,7 +137,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/CheckNameAvailabilityRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/CheckNameAvailabilityRequest.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/CheckNameAvailabilityRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/CheckNameAvailabilityRequest.TypeConverter.cs index 71c6a4b383bc..7c71202e223a 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/CheckNameAvailabilityRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/CheckNameAvailabilityRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.ICheckNameAvailabilityRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/CheckNameAvailabilityRequest.cs b/src/DataProtection/generated/api/Models/Api20221201/CheckNameAvailabilityRequest.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/CheckNameAvailabilityRequest.cs rename to src/DataProtection/generated/api/Models/Api20221201/CheckNameAvailabilityRequest.cs index 96a88bf64a18..2958f458d835 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/CheckNameAvailabilityRequest.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/CheckNameAvailabilityRequest.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// CheckNameAvailability Request public partial class CheckNameAvailabilityRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityRequestInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/CheckNameAvailabilityRequest.json.cs b/src/DataProtection/generated/api/Models/Api20221201/CheckNameAvailabilityRequest.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/CheckNameAvailabilityRequest.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/CheckNameAvailabilityRequest.json.cs index f0c290b11502..3f9093f9ccb2 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/CheckNameAvailabilityRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/CheckNameAvailabilityRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -71,13 +71,13 @@ internal CheckNameAvailabilityRequest(Microsoft.Azure.PowerShell.Cmdlets.DataPro } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/CheckNameAvailabilityResult.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/CheckNameAvailabilityResult.PowerShell.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20220501/CheckNameAvailabilityResult.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/CheckNameAvailabilityResult.PowerShell.cs index 062fc063ce11..0073888ae206 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/CheckNameAvailabilityResult.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/CheckNameAvailabilityResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,21 +70,21 @@ internal CheckNameAvailabilityResult(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityResultInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityResultInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("NameAvailable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityResultInternal)this).NameAvailable = (bool?) content.GetValueForProperty("NameAvailable",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityResultInternal)this).NameAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityResultInternal)this).NameAvailable = (bool?) content.GetValueForProperty("NameAvailable",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityResultInternal)this).NameAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Reason")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityResultInternal)this).Reason = (string) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityResultInternal)this).Reason, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityResultInternal)this).Reason = (string) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -99,43 +99,43 @@ internal CheckNameAvailabilityResult(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityResultInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityResultInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityResultInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("NameAvailable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityResultInternal)this).NameAvailable = (bool?) content.GetValueForProperty("NameAvailable",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityResultInternal)this).NameAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityResultInternal)this).NameAvailable = (bool?) content.GetValueForProperty("NameAvailable",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityResultInternal)this).NameAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Reason")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityResultInternal)this).Reason = (string) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityResultInternal)this).Reason, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityResultInternal)this).Reason = (string) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ICheckNameAvailabilityResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ICheckNameAvailabilityResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CheckNameAvailabilityResult(content); } @@ -145,7 +145,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/CheckNameAvailabilityResult.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/CheckNameAvailabilityResult.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/CheckNameAvailabilityResult.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/CheckNameAvailabilityResult.TypeConverter.cs index ae5d5857a3ec..26b3f73352f8 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/CheckNameAvailabilityResult.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/CheckNameAvailabilityResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.ICheckNameAvailabilityResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/CheckNameAvailabilityResult.cs b/src/DataProtection/generated/api/Models/Api20221201/CheckNameAvailabilityResult.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/CheckNameAvailabilityResult.cs rename to src/DataProtection/generated/api/Models/Api20221201/CheckNameAvailabilityResult.cs index a7b3d58a5a45..50479a693d7e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/CheckNameAvailabilityResult.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/CheckNameAvailabilityResult.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// CheckNameAvailability Result public partial class CheckNameAvailabilityResult : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityResult, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityResult, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityResultInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/CheckNameAvailabilityResult.json.cs b/src/DataProtection/generated/api/Models/Api20221201/CheckNameAvailabilityResult.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/CheckNameAvailabilityResult.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/CheckNameAvailabilityResult.json.cs index 617ea026874e..e47c1ae660a0 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/CheckNameAvailabilityResult.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/CheckNameAvailabilityResult.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -72,13 +72,13 @@ internal CheckNameAvailabilityResult(Microsoft.Azure.PowerShell.Cmdlets.DataProt } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICheckNameAvailabilityResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICheckNameAvailabilityResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/ClientDiscoveryDisplay.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryDisplay.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryDisplay.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryDisplay.PowerShell.cs index dc4db55a2528..04b615314ba1 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryDisplay.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryDisplay.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,25 +70,25 @@ internal ClientDiscoveryDisplay(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplayInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplayInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplayInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("Provider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplayInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplayInternal)this).Provider, global::System.Convert.ToString); } if (content.Contains("Resource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -103,47 +103,47 @@ internal ClientDiscoveryDisplay(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplayInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplayInternal)this).Description, global::System.Convert.ToString); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplayInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("Provider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplayInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplayInternal)this).Provider, global::System.Convert.ToString); } if (content.Contains("Resource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IClientDiscoveryDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IClientDiscoveryDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ClientDiscoveryDisplay(content); } @@ -153,7 +153,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/ClientDiscoveryDisplay.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryDisplay.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryDisplay.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryDisplay.TypeConverter.cs index 00b8db052fba..0d0758e21cbd 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryDisplay.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryDisplay.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IClientDiscoveryDisplay ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplay ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplay).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplay).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryDisplay.cs b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryDisplay.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryDisplay.cs rename to src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryDisplay.cs index d162c335d195..f6f1cf380768 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryDisplay.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryDisplay.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IClientDiscoveryDisplay, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplayInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplay, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplayInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryDisplay.json.cs b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryDisplay.json.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryDisplay.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryDisplay.json.cs index 49fe801cfaea..d9b897563097 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryDisplay.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryDisplay.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -73,13 +73,13 @@ internal ClientDiscoveryDisplay(Microsoft.Azure.PowerShell.Cmdlets.DataProtectio } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplay. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplay. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplay. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplay. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/ClientDiscoveryForLogSpecification.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForLogSpecification.PowerShell.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForLogSpecification.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForLogSpecification.PowerShell.cs index 6501403e3b26..92c948842ebf 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForLogSpecification.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForLogSpecification.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,21 +70,21 @@ internal ClientDiscoveryForLogSpecification(global::System.Collections.IDictiona // actually deserialize if (content.Contains("BlobDuration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecificationInternal)this).BlobDuration = (string) content.GetValueForProperty("BlobDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecificationInternal)this).BlobDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecificationInternal)this).BlobDuration = (string) content.GetValueForProperty("BlobDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecificationInternal)this).BlobDuration, global::System.Convert.ToString); } if (content.Contains("DisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecificationInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecificationInternal)this).DisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecificationInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecificationInternal)this).DisplayName, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecificationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecificationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecificationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -99,43 +99,43 @@ internal ClientDiscoveryForLogSpecification(global::System.Management.Automation // actually deserialize if (content.Contains("BlobDuration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecificationInternal)this).BlobDuration = (string) content.GetValueForProperty("BlobDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecificationInternal)this).BlobDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecificationInternal)this).BlobDuration = (string) content.GetValueForProperty("BlobDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecificationInternal)this).BlobDuration, global::System.Convert.ToString); } if (content.Contains("DisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecificationInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecificationInternal)this).DisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecificationInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecificationInternal)this).DisplayName, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecificationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecificationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecificationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IClientDiscoveryForLogSpecification DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IClientDiscoveryForLogSpecification DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecification DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ClientDiscoveryForLogSpecification(content); } @@ -147,7 +147,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecification FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/ClientDiscoveryForLogSpecification.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForLogSpecification.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForLogSpecification.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForLogSpecification.TypeConverter.cs index 65cc995d8a88..cbeb3f3f4521 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForLogSpecification.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForLogSpecification.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -108,14 +108,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecification ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecification ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecification).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecification).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForLogSpecification.cs b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForLogSpecification.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForLogSpecification.cs rename to src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForLogSpecification.cs index f2161280df29..65f00fa58c02 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForLogSpecification.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForLogSpecification.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IClientDiscoveryForLogSpecification, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecificationInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecification, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecificationInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForLogSpecification.json.cs b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForLogSpecification.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForLogSpecification.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForLogSpecification.json.cs index a5307692d31b..0e3a62edd731 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForLogSpecification.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForLogSpecification.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -72,13 +72,13 @@ internal ClientDiscoveryForLogSpecification(Microsoft.Azure.PowerShell.Cmdlets.D } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecification. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecification. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecification. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecification. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecification FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/ClientDiscoveryForProperties.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForProperties.PowerShell.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForProperties.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForProperties.PowerShell.cs index 067fcfa70563..030580ed857b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForProperties.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,17 +70,17 @@ internal ClientDiscoveryForProperties(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("ServiceSpecification")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForPropertiesInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForPropertiesInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryForServiceSpecificationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForPropertiesInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForPropertiesInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ClientDiscoveryForServiceSpecificationTypeConverter.ConvertFrom); } if (content.Contains("ServiceSpecificationLogSpecification")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForPropertiesInternal)this).ServiceSpecificationLogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForPropertiesInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryForLogSpecificationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForPropertiesInternal)this).ServiceSpecificationLogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForPropertiesInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -95,39 +95,39 @@ internal ClientDiscoveryForProperties(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("ServiceSpecification")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForPropertiesInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForPropertiesInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryForServiceSpecificationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForPropertiesInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForPropertiesInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ClientDiscoveryForServiceSpecificationTypeConverter.ConvertFrom); } if (content.Contains("ServiceSpecificationLogSpecification")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForPropertiesInternal)this).ServiceSpecificationLogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForPropertiesInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryForLogSpecificationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForPropertiesInternal)this).ServiceSpecificationLogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForPropertiesInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IClientDiscoveryForProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IClientDiscoveryForProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ClientDiscoveryForProperties(content); } @@ -137,7 +137,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/ClientDiscoveryForProperties.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForProperties.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForProperties.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForProperties.TypeConverter.cs index dd0227b76fed..b29bd659a27b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForProperties.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IClientDiscoveryForProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForProperties.cs b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForProperties.cs similarity index 79% rename from src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForProperties.cs rename to src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForProperties.cs index 1cfae2d0010c..3213f0eaa00a 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForProperties.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForProperties.cs @@ -3,29 +3,29 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IClientDiscoveryForProperties, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForProperties, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForPropertiesInternal { /// Internal Acessors for ServiceSpecification - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForServiceSpecification Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForPropertiesInternal.ServiceSpecification { get => (this._serviceSpecification = this._serviceSpecification ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryForServiceSpecification()); set { {_serviceSpecification = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForServiceSpecification Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForPropertiesInternal.ServiceSpecification { get => (this._serviceSpecification = this._serviceSpecification ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ClientDiscoveryForServiceSpecification()); set { {_serviceSpecification = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForServiceSpecification _serviceSpecification; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForServiceSpecification _serviceSpecification; /// Operation properties. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForServiceSpecification ServiceSpecification { get => (this._serviceSpecification = this._serviceSpecification ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryForServiceSpecification()); set => this._serviceSpecification = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForServiceSpecification ServiceSpecification { get => (this._serviceSpecification = this._serviceSpecification ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForServiceSpecificationInternal)ServiceSpecification).LogSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForServiceSpecificationInternal)ServiceSpecification).LogSpecification = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForServiceSpecificationInternal)ServiceSpecification).LogSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForServiceSpecificationInternal)ServiceSpecification).LogSpecification = value ?? null /* arrayOf */; } /// Creates an new instance. public ClientDiscoveryForProperties() @@ -43,8 +43,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.Api20220501.IClientDiscoveryForLogSpecification) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecification) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get; set; } } /// Class to represent shoebox properties in json client discovery. @@ -52,9 +52,9 @@ internal partial interface IClientDiscoveryForPropertiesInternal { /// Operation properties. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForServiceSpecification ServiceSpecification { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForServiceSpecification ServiceSpecification { get; set; } /// List of log specifications of this operation. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForProperties.json.cs b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForProperties.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForProperties.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForProperties.json.cs index 9d169b234bf6..ab5da863c204 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForProperties.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,18 +65,18 @@ internal ClientDiscoveryForProperties(Microsoft.Azure.PowerShell.Cmdlets.DataPro { return; } - {_serviceSpecification = If( json?.PropertyT("serviceSpecification"), out var __jsonServiceSpecification) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryForServiceSpecification.FromJson(__jsonServiceSpecification) : ServiceSpecification;} + {_serviceSpecification = If( json?.PropertyT("serviceSpecification"), out var __jsonServiceSpecification) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ClientDiscoveryForServiceSpecification.FromJson(__jsonServiceSpecification) : ServiceSpecification;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/ClientDiscoveryForServiceSpecification.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForServiceSpecification.PowerShell.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForServiceSpecification.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForServiceSpecification.PowerShell.cs index b0441feced60..c56de5828efc 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForServiceSpecification.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForServiceSpecification.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,13 +70,13 @@ internal ClientDiscoveryForServiceSpecification(global::System.Collections.IDict // actually deserialize if (content.Contains("LogSpecification")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForServiceSpecificationInternal)this).LogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("LogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForServiceSpecificationInternal)this).LogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryForLogSpecificationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForServiceSpecificationInternal)this).LogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("LogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForServiceSpecificationInternal)this).LogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -91,35 +91,35 @@ internal ClientDiscoveryForServiceSpecification(global::System.Management.Automa // actually deserialize if (content.Contains("LogSpecification")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForServiceSpecificationInternal)this).LogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("LogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForServiceSpecificationInternal)this).LogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryForLogSpecificationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForServiceSpecificationInternal)this).LogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("LogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForServiceSpecificationInternal)this).LogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IClientDiscoveryForServiceSpecification DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IClientDiscoveryForServiceSpecification DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForServiceSpecification DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ClientDiscoveryForServiceSpecification(content); } @@ -132,7 +132,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForServiceSpecification FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/ClientDiscoveryForServiceSpecification.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForServiceSpecification.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForServiceSpecification.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForServiceSpecification.TypeConverter.cs index 91ac680c3f76..59458b9216c6 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForServiceSpecification.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForServiceSpecification.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForServiceSpecification ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForServiceSpecification ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForServiceSpecification).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForServiceSpecification).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForServiceSpecification.cs b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForServiceSpecification.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForServiceSpecification.cs rename to src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForServiceSpecification.cs index 08b84bf211d8..daa558555b2a 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForServiceSpecification.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForServiceSpecification.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IClientDiscoveryForServiceSpecification, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForServiceSpecificationInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForServiceSpecification, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForServiceSpecificationInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecification[] _logSpecification; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IClientDiscoveryForLogSpecification[] LogSpecification { get => this._logSpecification; set => this._logSpecification = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecification[] LogSpecification { get => this._logSpecification; set => this._logSpecification = value; } /// Creates an new instance. public ClientDiscoveryForServiceSpecification() @@ -36,8 +36,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.Api20220501.IClientDiscoveryForLogSpecification) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecification[] LogSpecification { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecification) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecification[] LogSpecification { get; set; } } /// Class to represent shoebox service specification in json client discovery. @@ -45,7 +45,7 @@ internal partial interface IClientDiscoveryForServiceSpecificationInternal { /// List of log specifications of this operation. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecification[] LogSpecification { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecification[] LogSpecification { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForServiceSpecification.json.cs b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForServiceSpecification.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForServiceSpecification.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForServiceSpecification.json.cs index cac9f9eb2627..0fda18b7af52 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryForServiceSpecification.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryForServiceSpecification.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,18 +65,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.Api20220501.IClientDiscoveryForLogSpecification) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IClientDiscoveryForLogSpecification) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ClientDiscoveryForLogSpecification.FromJson(__u) )) ))() : null : LogSpecification;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForServiceSpecification. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForServiceSpecification. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForServiceSpecification. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForServiceSpecification. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForServiceSpecification FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/ClientDiscoveryResponse.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryResponse.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryResponse.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryResponse.PowerShell.cs index fc49e7af990b..31980d5bb67b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryResponse.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryResponse.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,17 +70,17 @@ internal ClientDiscoveryResponse(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryResponseInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryResponseInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryResponseInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryResponseInternal)this).NextLink, global::System.Convert.ToString); } if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryResponseInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApi[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryResponseInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryValueForSingleApiTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryResponseInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApi[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryResponseInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -95,39 +95,39 @@ internal ClientDiscoveryResponse(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryResponseInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryResponseInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryResponseInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryResponseInternal)this).NextLink, global::System.Convert.ToString); } if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryResponseInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApi[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryResponseInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryValueForSingleApiTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryResponseInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApi[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryResponseInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IClientDiscoveryResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IClientDiscoveryResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ClientDiscoveryResponse(content); } @@ -137,7 +137,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/ClientDiscoveryResponse.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryResponse.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryResponse.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryResponse.TypeConverter.cs index 36e22054e07b..f40c57191494 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryResponse.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryResponse.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IClientDiscoveryResponse ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryResponse ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryResponse).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryResponse).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryResponse.cs b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryResponse.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryResponse.cs rename to src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryResponse.cs index 951a9aa78b39..97a466c2df1e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryResponse.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryResponse.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IClientDiscoveryResponse, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryResponse, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryResponseInternal { /// Backing field for property. @@ -21,11 +21,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.Api20220501.IClientDiscoveryValueForSingleApi[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IClientDiscoveryValueForSingleApi[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApi[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public ClientDiscoveryResponse() @@ -51,8 +51,8 @@ public partial interface IClientDiscoveryResponse : ReadOnly = false, Description = @"List of available operations.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApi) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApi[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApi) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApi[] Value { get; set; } } /// Operations List response which contains list of available APIs. @@ -62,7 +62,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.Api20220501.IClientDiscoveryValueForSingleApi[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApi[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryResponse.json.cs b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryResponse.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryResponse.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryResponse.json.cs index 40ee092832ce..8f826c6f3574 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryResponse.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryResponse.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -66,18 +66,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.Api20220501.IClientDiscoveryValueForSingleApi) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IClientDiscoveryValueForSingleApi) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ClientDiscoveryValueForSingleApi.FromJson(__u) )) ))() : null : Value;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryResponse. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryResponse. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryResponse. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryResponse. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/ClientDiscoveryValueForSingleApi.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryValueForSingleApi.PowerShell.cs similarity index 77% rename from src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryValueForSingleApi.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryValueForSingleApi.PowerShell.cs index 3d55c8bfad68..4f09a9b6c48d 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryValueForSingleApi.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryValueForSingleApi.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class ClientDiscoveryValueForSingleApi partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,53 +70,53 @@ internal ClientDiscoveryValueForSingleApi(global::System.Collections.IDictionary // actually deserialize if (content.Contains("Display")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryDisplayTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ClientDiscoveryDisplayTypeConverter.ConvertFrom); } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryForPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ClientDiscoveryForPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("IsDataAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Origin")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).Origin, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).Origin, global::System.Convert.ToString); } if (content.Contains("DisplayDescription")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).DisplayDescription, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).DisplayDescription, global::System.Convert.ToString); } if (content.Contains("DisplayOperation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).DisplayOperation, global::System.Convert.ToString); } if (content.Contains("DisplayProvider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).DisplayProvider, global::System.Convert.ToString); } if (content.Contains("DisplayResource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).DisplayResource, global::System.Convert.ToString); } if (content.Contains("ServiceSpecification")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryForServiceSpecificationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ClientDiscoveryForServiceSpecificationTypeConverter.ConvertFrom); } if (content.Contains("ServiceSpecificationLogSpecification")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecificationLogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryForLogSpecificationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecificationLogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -131,75 +131,75 @@ internal ClientDiscoveryValueForSingleApi(global::System.Management.Automation.P // actually deserialize if (content.Contains("Display")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryDisplayTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ClientDiscoveryDisplayTypeConverter.ConvertFrom); } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryForPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ClientDiscoveryForPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("IsDataAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Origin")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).Origin, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).Origin, global::System.Convert.ToString); } if (content.Contains("DisplayDescription")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).DisplayDescription, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).DisplayDescription, global::System.Convert.ToString); } if (content.Contains("DisplayOperation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).DisplayOperation, global::System.Convert.ToString); } if (content.Contains("DisplayProvider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).DisplayProvider, global::System.Convert.ToString); } if (content.Contains("DisplayResource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).DisplayResource, global::System.Convert.ToString); } if (content.Contains("ServiceSpecification")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryForServiceSpecificationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForServiceSpecification) content.GetValueForProperty("ServiceSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecification, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ClientDiscoveryForServiceSpecificationTypeConverter.ConvertFrom); } if (content.Contains("ServiceSpecificationLogSpecification")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecificationLogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryForLogSpecificationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecificationLogSpecification = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecification[]) content.GetValueForProperty("ServiceSpecificationLogSpecification",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal)this).ServiceSpecificationLogSpecification, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IClientDiscoveryValueForSingleApi DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApi DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ClientDiscoveryValueForSingleApi(content); } /// - /// 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.Api20220501.IClientDiscoveryValueForSingleApi DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApi DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ClientDiscoveryValueForSingleApi(content); } @@ -209,7 +209,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApi FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApi 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/Api20220501/ClientDiscoveryValueForSingleApi.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryValueForSingleApi.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryValueForSingleApi.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryValueForSingleApi.TypeConverter.cs index d6a95ddf867e..02d46e900627 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryValueForSingleApi.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryValueForSingleApi.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApi ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApi ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApi).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApi).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryValueForSingleApi.cs b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryValueForSingleApi.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryValueForSingleApi.cs rename to src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryValueForSingleApi.cs index 9460cb690080..2cd6b308a87e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryValueForSingleApi.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryValueForSingleApi.cs @@ -3,38 +3,38 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Available operation details. public partial class ClientDiscoveryValueForSingleApi : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApi, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApi, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplay _display; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IClientDiscoveryDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryDisplay()); set => this._display = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IClientDiscoveryDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplayInternal)Display).Description = value ?? null; } + public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IClientDiscoveryDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplayInternal)Display).Operation = value ?? null; } + public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IClientDiscoveryDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplayInternal)Display).Provider = value ?? null; } + public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IClientDiscoveryDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplayInternal)Display).Resource = value ?? null; } + public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplayInternal)Display).Resource = value ?? null; } /// Backing field for property. private bool? _isDataAction; @@ -44,13 +44,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.Api20220501.IClientDiscoveryDisplay Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryDisplay()); set { {_display = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplay Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ClientDiscoveryDisplay()); set { {_display = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForProperties Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryForProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForProperties Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ClientDiscoveryForProperties()); set { {_property = value;} } } /// Internal Acessors for ServiceSpecification - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForServiceSpecification Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApiInternal.ServiceSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForPropertiesInternal)Property).ServiceSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForPropertiesInternal)Property).ServiceSpecification = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForServiceSpecification Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApiInternal.ServiceSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForPropertiesInternal)Property).ServiceSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForPropertiesInternal)Property).ServiceSpecification = value; } /// Backing field for property. private string _name; @@ -69,15 +69,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.Api20220501.IClientDiscoveryForProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IClientDiscoveryForProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryForProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForPropertiesInternal)Property).ServiceSpecificationLogSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForPropertiesInternal)Property).ServiceSpecificationLogSpecification = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForPropertiesInternal)Property).ServiceSpecificationLogSpecification; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForPropertiesInternal)Property).ServiceSpecificationLogSpecification = value ?? null /* arrayOf */; } /// Creates an new instance. public ClientDiscoveryValueForSingleApi() @@ -153,8 +153,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.Api20220501.IClientDiscoveryForLogSpecification) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecification) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get; set; } } /// Available operation details. @@ -162,7 +162,7 @@ internal partial interface IClientDiscoveryValueForSingleApiInternal { /// Contains the localized display information for this particular operation - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryDisplay Display { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryDisplay Display { get; set; } /// Description of the operation having details of what operation is about. string DisplayDescription { get; set; } /// Operations Name itself. @@ -180,11 +180,11 @@ internal partial interface IClientDiscoveryValueForSingleApiInternal /// string Origin { get; set; } /// Properties for the given operation. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForProperties Property { get; set; } /// Operation properties. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForServiceSpecification ServiceSpecification { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForServiceSpecification ServiceSpecification { get; set; } /// List of log specifications of this operation. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryForLogSpecification[] ServiceSpecificationLogSpecification { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryValueForSingleApi.json.cs b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryValueForSingleApi.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryValueForSingleApi.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryValueForSingleApi.json.cs index 10d9689a6c44..d4f54022b1ed 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ClientDiscoveryValueForSingleApi.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ClientDiscoveryValueForSingleApi.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,8 +65,8 @@ internal ClientDiscoveryValueForSingleApi(Microsoft.Azure.PowerShell.Cmdlets.Dat { return; } - {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryDisplay.FromJson(__jsonDisplay) : Display;} - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ClientDiscoveryForProperties.FromJson(__jsonProperties) : Property;} + {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ClientDiscoveryDisplay.FromJson(__jsonDisplay) : Display;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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;} @@ -74,13 +74,13 @@ internal ClientDiscoveryValueForSingleApi(Microsoft.Azure.PowerShell.Cmdlets.Dat } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApi. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApi. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApi. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApi. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApi FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/CloudError.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/CloudError.PowerShell.cs similarity index 76% rename from src/DataProtection/generated/api/Models/Api20220501/CloudError.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/CloudError.PowerShell.cs index 9fb94473a088..7f495dce3d1e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/CloudError.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/CloudError.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,33 +70,33 @@ internal CloudError(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ErrorTypeConverter.ConvertFrom); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -111,53 +111,53 @@ internal CloudError(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ErrorTypeConverter.ConvertFrom); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudError(content); } @@ -167,7 +167,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/CloudError.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/CloudError.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/CloudError.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/CloudError.TypeConverter.cs index e93d65af36cf..9d3d10129c8b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/CloudError.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/CloudError.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/CloudError.cs b/src/DataProtection/generated/api/Models/Api20221201/CloudError.cs similarity index 74% rename from src/DataProtection/generated/api/Models/Api20220501/CloudError.cs rename to src/DataProtection/generated/api/Models/Api20221201/CloudError.cs index f271df7b0192..bb736abac7eb 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/CloudError.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/CloudError.cs @@ -3,60 +3,60 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.ICloudError, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)Error).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IErrorInternal)Error).Code; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)Error).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)Error).Detail; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError _error; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.Error()); set => this._error = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IErrorInternal)Error).Message; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)Error).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)Error).AdditionalInfo = value; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)Error).Code = value; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)Error).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)Error).Detail = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.Error()); set { {_error = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.Error()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)Error).Message = value; } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudErrorInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudErrorInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IErrorInternal)Error).Target; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)Error).Target; } /// Creates an new instance. public CloudError() @@ -74,8 +74,8 @@ public partial interface ICloudError : ReadOnly = true, Description = @"The error additional info.", SerializedName = @"additionalInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfo[] AdditionalInfo { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo[] AdditionalInfo { get; } /// The error code. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -90,8 +90,8 @@ public partial interface ICloudError : ReadOnly = true, Description = @"The error details.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError[] Detail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError[] Detail { get; } /// The error message. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -115,13 +115,13 @@ internal partial interface ICloudErrorInternal { /// The error additional info. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfo[] AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo[] AdditionalInfo { get; set; } /// The error code. string Code { get; set; } /// The error details. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError[] Detail { get; set; } /// The resource management error response. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError Error { get; set; } /// The error message. string Message { get; set; } /// The error target. diff --git a/src/DataProtection/generated/api/Models/Api20220501/CloudError.json.cs b/src/DataProtection/generated/api/Models/Api20221201/CloudError.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/CloudError.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/CloudError.json.cs index b162fa9e92ea..af5dc0eca90d 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/CloudError.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/CloudError.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,18 +65,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.Api20220501.Error.FromJson(__jsonError) : Error;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.Error.FromJson(__jsonError) : Error;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/CopyOnExpiryOption.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/CopyOnExpiryOption.PowerShell.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20220501/CopyOnExpiryOption.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/CopyOnExpiryOption.PowerShell.cs index ae7746f0bf67..069b7ae795f8 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/CopyOnExpiryOption.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/CopyOnExpiryOption.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,13 +70,13 @@ internal CopyOnExpiryOption(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -91,33 +91,33 @@ internal CopyOnExpiryOption(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ICopyOnExpiryOption DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ICopyOnExpiryOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOnExpiryOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CopyOnExpiryOption(content); } @@ -127,7 +127,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOnExpiryOption FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/CopyOnExpiryOption.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/CopyOnExpiryOption.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/CopyOnExpiryOption.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/CopyOnExpiryOption.TypeConverter.cs index bc4535abbdf2..7dc31342c9da 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/CopyOnExpiryOption.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/CopyOnExpiryOption.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.ICopyOnExpiryOption ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOnExpiryOption ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOnExpiryOption).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOnExpiryOption).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/CopyOnExpiryOption.cs b/src/DataProtection/generated/api/Models/Api20221201/CopyOnExpiryOption.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20220501/CopyOnExpiryOption.cs rename to src/DataProtection/generated/api/Models/Api20221201/CopyOnExpiryOption.cs index 791724df8661..8212556ce0d6 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/CopyOnExpiryOption.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/CopyOnExpiryOption.cs @@ -3,25 +3,25 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Copy on Expiry Option public partial class CopyOnExpiryOption : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOnExpiryOption, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOnExpiryOptionInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOnExpiryOption, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOnExpiryOptionInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOption __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.CopyOption(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOption __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ICopyOptionInternal)__copyOption).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOptionInternal)__copyOption).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOptionInternal)__copyOption).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOptionInternal)__copyOption).ObjectType = value ; } /// Creates an new instance. public CopyOnExpiryOption() @@ -44,13 +44,13 @@ public CopyOnExpiryOption() /// Copy on Expiry Option public partial interface ICopyOnExpiryOption : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOption { } /// Copy on Expiry Option internal partial interface ICopyOnExpiryOptionInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOptionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOptionInternal { } diff --git a/src/DataProtection/generated/api/Models/Api20220501/CopyOnExpiryOption.json.cs b/src/DataProtection/generated/api/Models/Api20221201/CopyOnExpiryOption.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/CopyOnExpiryOption.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/CopyOnExpiryOption.json.cs index b643381def32..21a3a4fc626b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/CopyOnExpiryOption.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/CopyOnExpiryOption.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,18 +65,18 @@ internal CopyOnExpiryOption(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Ru { return; } - __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.CopyOption(json); + __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CopyOption(json); AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOnExpiryOption. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOnExpiryOption. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOnExpiryOption. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOnExpiryOption. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOnExpiryOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/CopyOption.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/CopyOption.PowerShell.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20220501/CopyOption.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/CopyOption.PowerShell.cs index acc4d3521140..31016c1bf51f 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/CopyOption.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/CopyOption.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,13 +70,13 @@ internal CopyOption(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -91,33 +91,33 @@ internal CopyOption(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ICopyOption DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ICopyOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CopyOption(content); } @@ -127,7 +127,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOption FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/CopyOption.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/CopyOption.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/CopyOption.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/CopyOption.TypeConverter.cs index 204add5d0444..09ab01b6d212 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/CopyOption.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/CopyOption.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOption ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOption ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOption).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOption).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/CopyOption.cs b/src/DataProtection/generated/api/Models/Api20221201/CopyOption.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/CopyOption.cs rename to src/DataProtection/generated/api/Models/Api20221201/CopyOption.cs index c5cf6544122f..6b383677115b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/CopyOption.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/CopyOption.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Options to copy public partial class CopyOption : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOption, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOptionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOption, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOptionInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/CopyOption.json.cs b/src/DataProtection/generated/api/Models/Api20221201/CopyOption.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/CopyOption.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/CopyOption.json.cs index 675df025ec49..51d2cbd59e88 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/CopyOption.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/CopyOption.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -70,15 +70,15 @@ internal CopyOption(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Js } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOption. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOption interface is polymorphic, and + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOption. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ICopyOption. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOption. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20221201/CrossSubscriptionRestoreSettings.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/CrossSubscriptionRestoreSettings.PowerShell.cs new file mode 100644 index 000000000000..8fc2f90e7bea --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/CrossSubscriptionRestoreSettings.PowerShell.cs @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by 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.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// CrossSubscriptionRestore Settings + [System.ComponentModel.TypeConverter(typeof(CrossSubscriptionRestoreSettingsTypeConverter))] + public partial class CrossSubscriptionRestoreSettings + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should 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 CrossSubscriptionRestoreSettings(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettingsInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettingsInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal CrossSubscriptionRestoreSettings(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettingsInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettingsInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new CrossSubscriptionRestoreSettings(content); + } + + /// + /// Deserializes a 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.Api20221201.ICrossSubscriptionRestoreSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new CrossSubscriptionRestoreSettings(content); + } + + /// + /// Creates a new instance of , deserializing the content from a 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.Api20221201.ICrossSubscriptionRestoreSettings 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(); + } + /// CrossSubscriptionRestore Settings + [System.ComponentModel.TypeConverter(typeof(CrossSubscriptionRestoreSettingsTypeConverter))] + public partial interface ICrossSubscriptionRestoreSettings + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/CrossSubscriptionRestoreSettings.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/CrossSubscriptionRestoreSettings.TypeConverter.cs new file mode 100644 index 000000000000..1aefe1d22781 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/CrossSubscriptionRestoreSettings.TypeConverter.cs @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by 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.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class CrossSubscriptionRestoreSettingsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.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 into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return CrossSubscriptionRestoreSettings.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return CrossSubscriptionRestoreSettings.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return CrossSubscriptionRestoreSettings.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/Api20221201/CrossSubscriptionRestoreSettings.cs b/src/DataProtection/generated/api/Models/Api20221201/CrossSubscriptionRestoreSettings.cs new file mode 100644 index 000000000000..836dcb74aa1a --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/CrossSubscriptionRestoreSettings.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by 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.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// CrossSubscriptionRestore Settings + public partial class CrossSubscriptionRestoreSettings : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettingsInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState? _state; + + /// CrossSubscriptionRestore state + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState? State { get => this._state; set => this._state = value; } + + /// Creates an new instance. + public CrossSubscriptionRestoreSettings() + { + + } + } + /// CrossSubscriptionRestore Settings + public partial interface ICrossSubscriptionRestoreSettings : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable + { + /// CrossSubscriptionRestore state + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"CrossSubscriptionRestore state", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState? State { get; set; } + + } + /// CrossSubscriptionRestore Settings + internal partial interface ICrossSubscriptionRestoreSettingsInternal + + { + /// CrossSubscriptionRestore state + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState? State { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/CrossSubscriptionRestoreSettings.json.cs b/src/DataProtection/generated/api/Models/Api20221201/CrossSubscriptionRestoreSettings.json.cs new file mode 100644 index 000000000000..35959d3846b1 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/CrossSubscriptionRestoreSettings.json.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// CrossSubscriptionRestore Settings + public partial class CrossSubscriptionRestoreSettings + { + + /// + /// 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 serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.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 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 CrossSubscriptionRestoreSettings(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_state = If( json?.PropertyT("state"), out var __jsonState) ? (string)__jsonState : (string)State;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new CrossSubscriptionRestoreSettings(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.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._state)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._state.ToString()) : null, "state" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/CustomCopyOption.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/CustomCopyOption.PowerShell.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20220501/CustomCopyOption.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/CustomCopyOption.PowerShell.cs index efea4b52eb35..3705f3ba0d2f 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/CustomCopyOption.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/CustomCopyOption.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,17 +70,17 @@ internal CustomCopyOption(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Duration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICustomCopyOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICustomCopyOptionInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICustomCopyOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICustomCopyOptionInternal)this).Duration, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -95,37 +95,37 @@ internal CustomCopyOption(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Duration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICustomCopyOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICustomCopyOptionInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICustomCopyOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICustomCopyOptionInternal)this).Duration, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ICustomCopyOption DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ICustomCopyOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICustomCopyOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CustomCopyOption(content); } @@ -135,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICustomCopyOption FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/CustomCopyOption.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/CustomCopyOption.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/CustomCopyOption.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/CustomCopyOption.TypeConverter.cs index b3fe077ffb99..336f802db79c 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/CustomCopyOption.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/CustomCopyOption.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.ICustomCopyOption ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICustomCopyOption ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICustomCopyOption).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICustomCopyOption).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/CustomCopyOption.cs b/src/DataProtection/generated/api/Models/Api20221201/CustomCopyOption.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20220501/CustomCopyOption.cs rename to src/DataProtection/generated/api/Models/Api20221201/CustomCopyOption.cs index 667dffa34ae2..74ada78a97d4 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/CustomCopyOption.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/CustomCopyOption.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.ICustomCopyOption, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICustomCopyOptionInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICustomCopyOption, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICustomCopyOptionInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOption __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.CopyOption(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOption __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CopyOption(); /// Backing field for property. private string _duration; @@ -28,7 +28,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.Api20220501.ICopyOptionInternal)__copyOption).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOptionInternal)__copyOption).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOptionInternal)__copyOption).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOptionInternal)__copyOption).ObjectType = value ; } /// Creates an new instance. public CustomCopyOption() @@ -51,7 +51,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.Api20220501.ICopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOption { /// Data copied after given timespan [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -65,7 +65,7 @@ public partial interface ICustomCopyOption : } /// Duration based custom options to copy internal partial interface ICustomCopyOptionInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOptionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOptionInternal { /// Data copied after given timespan string Duration { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/CustomCopyOption.json.cs b/src/DataProtection/generated/api/Models/Api20221201/CustomCopyOption.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/CustomCopyOption.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/CustomCopyOption.json.cs index 7f4d1ad36aaa..6ece3cf6211e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/CustomCopyOption.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/CustomCopyOption.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,19 +65,19 @@ internal CustomCopyOption(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runt { return; } - __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.CopyOption(json); + __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ICustomCopyOption. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICustomCopyOption. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICustomCopyOption. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICustomCopyOption. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICustomCopyOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/DataStoreInfoBase.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/DataStoreInfoBase.PowerShell.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20220501/DataStoreInfoBase.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/DataStoreInfoBase.PowerShell.cs index 11862ee6c545..d29588350932 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DataStoreInfoBase.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DataStoreInfoBase.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,17 +70,17 @@ internal DataStoreInfoBase(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBaseInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBaseInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBaseInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBaseInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -95,37 +95,37 @@ internal DataStoreInfoBase(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("DataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBaseInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBaseInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBaseInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBaseInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDataStoreInfoBase DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDataStoreInfoBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataStoreInfoBase(content); } @@ -135,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/DataStoreInfoBase.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/DataStoreInfoBase.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/DataStoreInfoBase.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/DataStoreInfoBase.TypeConverter.cs index de3d88c39b26..e0f94adbf9e2 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DataStoreInfoBase.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DataStoreInfoBase.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IDataStoreInfoBase ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBase ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBase).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBase).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/DataStoreInfoBase.cs b/src/DataProtection/generated/api/Models/Api20221201/DataStoreInfoBase.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/DataStoreInfoBase.cs rename to src/DataProtection/generated/api/Models/Api20221201/DataStoreInfoBase.cs index 197b58390d92..50eb142dd577 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DataStoreInfoBase.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DataStoreInfoBase.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// DataStoreInfo base public partial class DataStoreInfoBase : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBase, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBase, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBaseInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/DataStoreInfoBase.json.cs b/src/DataProtection/generated/api/Models/Api20221201/DataStoreInfoBase.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/DataStoreInfoBase.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/DataStoreInfoBase.json.cs index 415cd1ab418b..1a1ac9b8a7da 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DataStoreInfoBase.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DataStoreInfoBase.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -71,13 +71,13 @@ internal DataStoreInfoBase(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Run } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBase. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBase. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBase. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBase. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/DataStoreParameters.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/DataStoreParameters.PowerShell.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20220501/DataStoreParameters.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/DataStoreParameters.PowerShell.cs index 9d6cb0a77dd6..926ae2ff94d5 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DataStoreParameters.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DataStoreParameters.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,17 +70,17 @@ internal DataStoreParameters(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParametersInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParametersInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("DataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParametersInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParametersInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParametersInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -95,37 +95,37 @@ internal DataStoreParameters(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParametersInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParametersInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParametersInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("DataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParametersInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParametersInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParametersInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDataStoreParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDataStoreParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataStoreParameters(content); } @@ -135,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/DataStoreParameters.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/DataStoreParameters.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/DataStoreParameters.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/DataStoreParameters.TypeConverter.cs index 00361cc9be38..aed9eabdcece 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DataStoreParameters.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DataStoreParameters.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IDataStoreParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/DataStoreParameters.cs b/src/DataProtection/generated/api/Models/Api20221201/DataStoreParameters.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/DataStoreParameters.cs rename to src/DataProtection/generated/api/Models/Api20221201/DataStoreParameters.cs index a4d49b098683..83011e0ae36d 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DataStoreParameters.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DataStoreParameters.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Parameters for DataStore public partial class DataStoreParameters : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParameters, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParameters, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParametersInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/DataStoreParameters.json.cs b/src/DataProtection/generated/api/Models/Api20221201/DataStoreParameters.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/DataStoreParameters.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/DataStoreParameters.json.cs index 3b6dafaea5db..7d9bf6eea725 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DataStoreParameters.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DataStoreParameters.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -71,15 +71,15 @@ internal DataStoreParameters(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.R } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParameters. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParameters interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParameters. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDataStoreParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/Datasource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/Datasource.PowerShell.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20220501/Datasource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/Datasource.PowerShell.cs index f5054b00dfd6..8453f62bb798 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/Datasource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/Datasource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,37 +70,37 @@ internal Datasource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("ResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).ResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).ResourceId, global::System.Convert.ToString); } if (content.Contains("ResourceLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).ResourceLocation = (string) content.GetValueForProperty("ResourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).ResourceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).ResourceLocation = (string) content.GetValueForProperty("ResourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).ResourceLocation, global::System.Convert.ToString); } if (content.Contains("ResourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).ResourceName = (string) content.GetValueForProperty("ResourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).ResourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).ResourceName = (string) content.GetValueForProperty("ResourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).ResourceName, global::System.Convert.ToString); } if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).ResourceType, global::System.Convert.ToString); } if (content.Contains("ResourceUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).ResourceUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -115,57 +115,57 @@ internal Datasource(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("ResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).ResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).ResourceId, global::System.Convert.ToString); } if (content.Contains("ResourceLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).ResourceLocation = (string) content.GetValueForProperty("ResourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).ResourceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).ResourceLocation = (string) content.GetValueForProperty("ResourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).ResourceLocation, global::System.Convert.ToString); } if (content.Contains("ResourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).ResourceName = (string) content.GetValueForProperty("ResourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).ResourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).ResourceName = (string) content.GetValueForProperty("ResourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).ResourceName, global::System.Convert.ToString); } if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).ResourceType, global::System.Convert.ToString); } if (content.Contains("ResourceUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal)this).ResourceUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDatasource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDatasource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Datasource(content); } @@ -175,7 +175,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/Datasource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/Datasource.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/Datasource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/Datasource.TypeConverter.cs index 3ef28b71841b..20432b42a3ea 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/Datasource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/Datasource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/Datasource.cs b/src/DataProtection/generated/api/Models/Api20221201/Datasource.cs similarity index 99% rename from src/DataProtection/generated/api/Models/Api20220501/Datasource.cs rename to src/DataProtection/generated/api/Models/Api20221201/Datasource.cs index 3ac3068cce73..1b25f63604d3 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/Datasource.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/Datasource.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Datasource to be backed up public partial class Datasource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/Datasource.json.cs b/src/DataProtection/generated/api/Models/Api20221201/Datasource.json.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/Datasource.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/Datasource.json.cs index 7d144fb94a04..c1efe85e9782 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/Datasource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/Datasource.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -76,13 +76,13 @@ internal Datasource(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Js } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/DatasourceSet.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/DatasourceSet.PowerShell.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20220501/DatasourceSet.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/DatasourceSet.PowerShell.cs index fb20d1453526..fd18fa229e89 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DatasourceSet.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DatasourceSet.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,37 +70,37 @@ internal DatasourceSet(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DatasourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).DatasourceType = (string) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).DatasourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).DatasourceType = (string) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).DatasourceType, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("ResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).ResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).ResourceId, global::System.Convert.ToString); } if (content.Contains("ResourceLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).ResourceLocation = (string) content.GetValueForProperty("ResourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).ResourceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).ResourceLocation = (string) content.GetValueForProperty("ResourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).ResourceLocation, global::System.Convert.ToString); } if (content.Contains("ResourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).ResourceName = (string) content.GetValueForProperty("ResourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).ResourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).ResourceName = (string) content.GetValueForProperty("ResourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).ResourceName, global::System.Convert.ToString); } if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).ResourceType, global::System.Convert.ToString); } if (content.Contains("ResourceUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).ResourceUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -115,57 +115,57 @@ internal DatasourceSet(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("DatasourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).DatasourceType = (string) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).DatasourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).DatasourceType = (string) content.GetValueForProperty("DatasourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).DatasourceType, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("ResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).ResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).ResourceId, global::System.Convert.ToString); } if (content.Contains("ResourceLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).ResourceLocation = (string) content.GetValueForProperty("ResourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).ResourceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).ResourceLocation = (string) content.GetValueForProperty("ResourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).ResourceLocation, global::System.Convert.ToString); } if (content.Contains("ResourceName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).ResourceName = (string) content.GetValueForProperty("ResourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).ResourceName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).ResourceName = (string) content.GetValueForProperty("ResourceName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).ResourceName, global::System.Convert.ToString); } if (content.Contains("ResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).ResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).ResourceType = (string) content.GetValueForProperty("ResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).ResourceType, global::System.Convert.ToString); } if (content.Contains("ResourceUri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal)this).ResourceUri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal)this).ResourceUri = (string) content.GetValueForProperty("ResourceUri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDatasourceSet DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDatasourceSet DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DatasourceSet(content); } @@ -175,7 +175,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSet FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/DatasourceSet.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/DatasourceSet.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/DatasourceSet.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/DatasourceSet.TypeConverter.cs index 5b07bcf1683a..e535ef2691be 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DatasourceSet.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DatasourceSet.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IDatasourceSet ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSet).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/DatasourceSet.cs b/src/DataProtection/generated/api/Models/Api20221201/DatasourceSet.cs similarity index 99% rename from src/DataProtection/generated/api/Models/Api20220501/DatasourceSet.cs rename to src/DataProtection/generated/api/Models/Api20221201/DatasourceSet.cs index a13efa2e4db3..1e3459a938bf 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DatasourceSet.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DatasourceSet.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IDatasourceSet, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSetInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSetInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/DatasourceSet.json.cs b/src/DataProtection/generated/api/Models/Api20221201/DatasourceSet.json.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/DatasourceSet.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/DatasourceSet.json.cs index 405f15506207..69e8ddc7a31d 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DatasourceSet.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DatasourceSet.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -76,13 +76,13 @@ internal DatasourceSet(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSet. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSet. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSet FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/Day.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/Day.PowerShell.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20220501/Day.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/Day.PowerShell.cs index 33909c9e197d..eee966e2de36 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/Day.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/Day.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,17 +70,17 @@ internal Day(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Date")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDayInternal)this).Date = (int?) content.GetValueForProperty("Date",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDayInternal)this).Date, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDayInternal)this).Date = (int?) content.GetValueForProperty("Date",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDayInternal)this).Date, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("IsLast")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDayInternal)this).IsLast = (bool?) content.GetValueForProperty("IsLast",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDayInternal)this).IsLast, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDayInternal)this).IsLast = (bool?) content.GetValueForProperty("IsLast",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -95,37 +95,37 @@ internal Day(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Date")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDayInternal)this).Date = (int?) content.GetValueForProperty("Date",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDayInternal)this).Date, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDayInternal)this).Date = (int?) content.GetValueForProperty("Date",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDayInternal)this).Date, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("IsLast")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDayInternal)this).IsLast = (bool?) content.GetValueForProperty("IsLast",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDayInternal)this).IsLast, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDayInternal)this).IsLast = (bool?) content.GetValueForProperty("IsLast",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDay DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Day(content); } @@ -135,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/Day.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/Day.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/Day.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/Day.TypeConverter.cs index 1c3ad5200fb4..8edfb83c5006 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/Day.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/Day.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDay ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDay ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDay).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDay).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/Day.cs b/src/DataProtection/generated/api/Models/Api20221201/Day.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/Day.cs rename to src/DataProtection/generated/api/Models/Api20221201/Day.cs index 4376d0ac9c2a..58b2fcd4d7e5 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/Day.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/Day.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Day of the week public partial class Day : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDay, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDayInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDay, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDayInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/Day.json.cs b/src/DataProtection/generated/api/Models/Api20221201/Day.json.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/Day.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/Day.json.cs index d3792d5f5f89..68162c8b4afe 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/Day.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/Day.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -71,13 +71,13 @@ internal Day(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.Json } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDay. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDay. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDay. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDay. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDay FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/DeleteOption.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/DeleteOption.PowerShell.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20220501/DeleteOption.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/DeleteOption.PowerShell.cs index fcd82726e387..be04883a9b1c 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DeleteOption.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DeleteOption.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,7 +55,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. @@ -70,17 +70,17 @@ internal DeleteOption(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Duration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOptionInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOptionInternal)this).Duration, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -95,37 +95,37 @@ internal DeleteOption(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Duration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOptionInternal)this).Duration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOptionInternal)this).Duration = (string) content.GetValueForProperty("Duration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOptionInternal)this).Duration, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDeleteOption DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDeleteOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DeleteOption(content); } @@ -135,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOption FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/DeleteOption.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/DeleteOption.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/DeleteOption.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/DeleteOption.TypeConverter.cs index d6474b6961bb..9bc3d967e073 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DeleteOption.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DeleteOption.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IDeleteOption ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOption ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOption).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOption).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/DeleteOption.cs b/src/DataProtection/generated/api/Models/Api20221201/DeleteOption.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/DeleteOption.cs rename to src/DataProtection/generated/api/Models/Api20221201/DeleteOption.cs index 0a67e2552906..2b7047018f6e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DeleteOption.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DeleteOption.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Delete Option public partial class DeleteOption : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOption, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOptionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOption, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOptionInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/DeleteOption.json.cs b/src/DataProtection/generated/api/Models/Api20221201/DeleteOption.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/DeleteOption.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/DeleteOption.json.cs index c66b77c979b9..0c8dd68f7c55 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DeleteOption.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DeleteOption.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -71,15 +71,15 @@ internal DeleteOption(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime. } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOption. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOption interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOption. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDeleteOption. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOption. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20221201/DeletedBackupInstance.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstance.PowerShell.cs new file mode 100644 index 000000000000..aa955632ba10 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstance.PowerShell.cs @@ -0,0 +1,266 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by 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.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Deleted Backup Instance + [System.ComponentModel.TypeConverter(typeof(DeletedBackupInstanceTypeConverter))] + public partial class DeletedBackupInstance + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should 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 DeletedBackupInstance(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DeletionInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)this).DeletionInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfo) content.GetValueForProperty("DeletionInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)this).DeletionInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeletionInfoTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("DataSourceInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).DataSourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource) content.GetValueForProperty("DataSourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).DataSourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceTypeConverter.ConvertFrom); + } + if (content.Contains("DataSourceSetInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).DataSourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet) content.GetValueForProperty("DataSourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).DataSourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceSetTypeConverter.ConvertFrom); + } + if (content.Contains("PolicyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).PolicyInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfo) content.GetValueForProperty("PolicyInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).PolicyInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PolicyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("ProtectionStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ProtectionStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetails) content.GetValueForProperty("ProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ProtectionStatusDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("CurrentProtectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).CurrentProtectionState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState?) content.GetValueForProperty("CurrentProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).CurrentProtectionState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState.CreateFrom); + } + if (content.Contains("ProtectionErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ProtectionErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError) content.GetValueForProperty("ProtectionErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ProtectionErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingErrorTypeConverter.ConvertFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("DatasourceAuthCredentials")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AuthCredentialsTypeConverter.ConvertFrom); + } + if (content.Contains("ValidationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType?) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType.CreateFrom); + } + if (content.Contains("ObjectType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ObjectType, global::System.Convert.ToString); + } + if (content.Contains("DeletionInfoDeletionTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)this).DeletionInfoDeletionTime = (string) content.GetValueForProperty("DeletionInfoDeletionTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)this).DeletionInfoDeletionTime, global::System.Convert.ToString); + } + if (content.Contains("DeletionInfoBillingEndDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)this).DeletionInfoBillingEndDate = (string) content.GetValueForProperty("DeletionInfoBillingEndDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)this).DeletionInfoBillingEndDate, global::System.Convert.ToString); + } + if (content.Contains("DeletionInfoScheduledPurgeTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)this).DeletionInfoScheduledPurgeTime = (string) content.GetValueForProperty("DeletionInfoScheduledPurgeTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)this).DeletionInfoScheduledPurgeTime, global::System.Convert.ToString); + } + if (content.Contains("DeletionInfoDeleteActivityId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)this).DeletionInfoDeleteActivityId = (string) content.GetValueForProperty("DeletionInfoDeleteActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)this).DeletionInfoDeleteActivityId, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DeletedBackupInstance(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DeletionInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)this).DeletionInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfo) content.GetValueForProperty("DeletionInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)this).DeletionInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeletionInfoTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("DataSourceInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).DataSourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource) content.GetValueForProperty("DataSourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).DataSourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceTypeConverter.ConvertFrom); + } + if (content.Contains("DataSourceSetInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).DataSourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet) content.GetValueForProperty("DataSourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).DataSourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceSetTypeConverter.ConvertFrom); + } + if (content.Contains("PolicyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).PolicyInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfo) content.GetValueForProperty("PolicyInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).PolicyInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PolicyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("ProtectionStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ProtectionStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetails) content.GetValueForProperty("ProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ProtectionStatusDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("CurrentProtectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).CurrentProtectionState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState?) content.GetValueForProperty("CurrentProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).CurrentProtectionState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState.CreateFrom); + } + if (content.Contains("ProtectionErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ProtectionErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError) content.GetValueForProperty("ProtectionErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ProtectionErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingErrorTypeConverter.ConvertFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("DatasourceAuthCredentials")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AuthCredentialsTypeConverter.ConvertFrom); + } + if (content.Contains("ValidationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType?) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType.CreateFrom); + } + if (content.Contains("ObjectType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)this).ObjectType, global::System.Convert.ToString); + } + if (content.Contains("DeletionInfoDeletionTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)this).DeletionInfoDeletionTime = (string) content.GetValueForProperty("DeletionInfoDeletionTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)this).DeletionInfoDeletionTime, global::System.Convert.ToString); + } + if (content.Contains("DeletionInfoBillingEndDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)this).DeletionInfoBillingEndDate = (string) content.GetValueForProperty("DeletionInfoBillingEndDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)this).DeletionInfoBillingEndDate, global::System.Convert.ToString); + } + if (content.Contains("DeletionInfoScheduledPurgeTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)this).DeletionInfoScheduledPurgeTime = (string) content.GetValueForProperty("DeletionInfoScheduledPurgeTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)this).DeletionInfoScheduledPurgeTime, global::System.Convert.ToString); + } + if (content.Contains("DeletionInfoDeleteActivityId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)this).DeletionInfoDeleteActivityId = (string) content.GetValueForProperty("DeletionInfoDeleteActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)this).DeletionInfoDeleteActivityId, 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.Api20221201.IDeletedBackupInstance DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DeletedBackupInstance(content); + } + + /// + /// Deserializes a 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.Api20221201.IDeletedBackupInstance DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DeletedBackupInstance(content); + } + + /// + /// Creates a new instance of , deserializing the content from a 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.Api20221201.IDeletedBackupInstance 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(); + } + /// Deleted Backup Instance + [System.ComponentModel.TypeConverter(typeof(DeletedBackupInstanceTypeConverter))] + public partial interface IDeletedBackupInstance + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstance.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstance.TypeConverter.cs new file mode 100644 index 000000000000..46e4d830cd12 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstance.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DeletedBackupInstanceTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.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 into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstance ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstance).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DeletedBackupInstance.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DeletedBackupInstance.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DeletedBackupInstance.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/Api20221201/DeletedBackupInstance.cs b/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstance.cs new file mode 100644 index 000000000000..ad8fe1ff87f4 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstance.cs @@ -0,0 +1,192 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Deleted Backup Instance + public partial class DeletedBackupInstance : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstance, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance __backupInstance = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupInstance(); + + /// Specifies the current protection state of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState? CurrentProtectionState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).CurrentProtectionState; } + + /// Gets or sets the data source information. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource DataSourceInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).DataSourceInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).DataSourceInfo = value ; } + + /// Gets or sets the data source set information. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet DataSourceSetInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).DataSourceSetInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).DataSourceSetInfo = value ?? null /* model class */; } + + /// Credentials to use to authenticate with data source provider. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials DatasourceAuthCredentials { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).DatasourceAuthCredentials; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).DatasourceAuthCredentials = value ?? null /* model class */; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfo _deletionInfo; + + /// Deletion info of Backup Instance + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfo DeletionInfo { get => (this._deletionInfo = this._deletionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeletionInfo()); } + + /// Specifies billing end date + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public string DeletionInfoBillingEndDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)DeletionInfo).BillingEndDate; } + + /// Delete activity ID for troubleshooting purpose + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public string DeletionInfoDeleteActivityId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)DeletionInfo).DeleteActivityId; } + + /// Specifies time of deletion + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public string DeletionInfoDeletionTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)DeletionInfo).DeletionTime; } + + /// Specifies purge time + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public string DeletionInfoScheduledPurgeTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)DeletionInfo).ScheduledPurgeTime; } + + /// Gets or sets the Backup Instance friendly name. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] + public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).FriendlyName = value ?? null; } + + /// Internal Acessors for CurrentProtectionState + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal.CurrentProtectionState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).CurrentProtectionState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).CurrentProtectionState = value; } + + /// Internal Acessors for ProtectionErrorDetail + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal.ProtectionErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).ProtectionErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).ProtectionErrorDetail = value; } + + /// Internal Acessors for ProtectionStatus + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal.ProtectionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).ProtectionStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).ProtectionStatus = value; } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).ProvisioningState = value; } + + /// Internal Acessors for DeletionInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfo Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal.DeletionInfo { get => (this._deletionInfo = this._deletionInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeletionInfo()); set { {_deletionInfo = value;} } } + + /// Internal Acessors for DeletionInfoBillingEndDate + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal.DeletionInfoBillingEndDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)DeletionInfo).BillingEndDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)DeletionInfo).BillingEndDate = value; } + + /// Internal Acessors for DeletionInfoDeleteActivityId + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal.DeletionInfoDeleteActivityId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)DeletionInfo).DeleteActivityId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)DeletionInfo).DeleteActivityId = value; } + + /// Internal Acessors for DeletionInfoDeletionTime + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal.DeletionInfoDeletionTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)DeletionInfo).DeletionTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)DeletionInfo).DeletionTime = value; } + + /// Internal Acessors for DeletionInfoScheduledPurgeTime + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal.DeletionInfoScheduledPurgeTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)DeletionInfo).ScheduledPurgeTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)DeletionInfo).ScheduledPurgeTime = value; } + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).ObjectType = value ; } + + /// Gets or sets the policy information. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfo PolicyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).PolicyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).PolicyInfo = value ; } + + /// Specifies the protection error of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError ProtectionErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).ProtectionErrorDetail; } + + /// Specifies the protection status of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetails ProtectionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).ProtectionStatus; } + + /// + /// Specifies the provisioning state of the resource i.e. provisioning/updating/Succeeded/Failed + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).ProvisioningState; } + + /// + /// Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType? ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)__backupInstance).ValidationType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType)""); } + + /// Creates an new instance. + public DeletedBackupInstance() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__backupInstance), __backupInstance); + await eventListener.AssertObjectIsValid(nameof(__backupInstance), __backupInstance); + } + } + /// Deleted Backup Instance + public partial interface IDeletedBackupInstance : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance + { + /// Specifies billing end date + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies billing end date", + SerializedName = @"billingEndDate", + PossibleTypes = new [] { typeof(string) })] + string DeletionInfoBillingEndDate { get; } + /// Delete activity ID for troubleshooting purpose + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Delete activity ID for troubleshooting purpose", + SerializedName = @"deleteActivityID", + PossibleTypes = new [] { typeof(string) })] + string DeletionInfoDeleteActivityId { get; } + /// Specifies time of deletion + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies time of deletion", + SerializedName = @"deletionTime", + PossibleTypes = new [] { typeof(string) })] + string DeletionInfoDeletionTime { get; } + /// Specifies purge time + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies purge time", + SerializedName = @"scheduledPurgeTime", + PossibleTypes = new [] { typeof(string) })] + string DeletionInfoScheduledPurgeTime { get; } + + } + /// Deleted Backup Instance + internal partial interface IDeletedBackupInstanceInternal : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal + { + /// Deletion info of Backup Instance + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfo DeletionInfo { get; set; } + /// Specifies billing end date + string DeletionInfoBillingEndDate { get; set; } + /// Delete activity ID for troubleshooting purpose + string DeletionInfoDeleteActivityId { get; set; } + /// Specifies time of deletion + string DeletionInfoDeletionTime { get; set; } + /// Specifies purge time + string DeletionInfoScheduledPurgeTime { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstance.json.cs b/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstance.json.cs new file mode 100644 index 000000000000..cd985c2db697 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstance.json.cs @@ -0,0 +1,113 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by 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.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Deleted Backup Instance + public partial class DeletedBackupInstance + { + + /// + /// 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 serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.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 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 DeletedBackupInstance(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __backupInstance = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupInstance(json); + {_deletionInfo = If( json?.PropertyT("deletionInfo"), out var __jsonDeletionInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeletionInfo.FromJson(__jsonDeletionInfo) : DeletionInfo;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstance. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstance. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstance FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new DeletedBackupInstance(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.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; + } + __backupInstance?.ToJson(container, serializationMode); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._deletionInfo ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) this._deletionInfo.ToJson(null,serializationMode) : null, "deletionInfo" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstanceResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstanceResource.PowerShell.cs new file mode 100644 index 000000000000..c78bc5585c81 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstanceResource.PowerShell.cs @@ -0,0 +1,306 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by 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.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Deleted Backup Instance + [System.ComponentModel.TypeConverter(typeof(DeletedBackupInstanceResourceTypeConverter))] + public partial class DeletedBackupInstanceResource + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should 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 DeletedBackupInstanceResource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstance) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeletedBackupInstanceTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("PolicyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).PolicyInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfo) content.GetValueForProperty("PolicyInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).PolicyInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PolicyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("ValidationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType?) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType.CreateFrom); + } + if (content.Contains("DeletionInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DeletionInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfo) content.GetValueForProperty("DeletionInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DeletionInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeletionInfoTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("DataSourceInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DataSourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource) content.GetValueForProperty("DataSourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DataSourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceTypeConverter.ConvertFrom); + } + if (content.Contains("DataSourceSetInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DataSourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet) content.GetValueForProperty("DataSourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DataSourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceSetTypeConverter.ConvertFrom); + } + if (content.Contains("ProtectionStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).ProtectionStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetails) content.GetValueForProperty("ProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).ProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ProtectionStatusDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("CurrentProtectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).CurrentProtectionState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState?) content.GetValueForProperty("CurrentProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).CurrentProtectionState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState.CreateFrom); + } + if (content.Contains("ProtectionErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).ProtectionErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError) content.GetValueForProperty("ProtectionErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).ProtectionErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingErrorTypeConverter.ConvertFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("DatasourceAuthCredentials")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AuthCredentialsTypeConverter.ConvertFrom); + } + if (content.Contains("ObjectType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).ObjectType, global::System.Convert.ToString); + } + if (content.Contains("DeletionInfoDeletionTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DeletionInfoDeletionTime = (string) content.GetValueForProperty("DeletionInfoDeletionTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DeletionInfoDeletionTime, global::System.Convert.ToString); + } + if (content.Contains("DeletionInfoBillingEndDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DeletionInfoBillingEndDate = (string) content.GetValueForProperty("DeletionInfoBillingEndDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DeletionInfoBillingEndDate, global::System.Convert.ToString); + } + if (content.Contains("DeletionInfoScheduledPurgeTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DeletionInfoScheduledPurgeTime = (string) content.GetValueForProperty("DeletionInfoScheduledPurgeTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DeletionInfoScheduledPurgeTime, global::System.Convert.ToString); + } + if (content.Contains("DeletionInfoDeleteActivityId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DeletionInfoDeleteActivityId = (string) content.GetValueForProperty("DeletionInfoDeleteActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DeletionInfoDeleteActivityId, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DeletedBackupInstanceResource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstance) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeletedBackupInstanceTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("PolicyInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).PolicyInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfo) content.GetValueForProperty("PolicyInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).PolicyInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PolicyInfoTypeConverter.ConvertFrom); + } + if (content.Contains("ValidationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType?) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType.CreateFrom); + } + if (content.Contains("DeletionInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DeletionInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfo) content.GetValueForProperty("DeletionInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DeletionInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeletionInfoTypeConverter.ConvertFrom); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("DataSourceInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DataSourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource) content.GetValueForProperty("DataSourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DataSourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceTypeConverter.ConvertFrom); + } + if (content.Contains("DataSourceSetInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DataSourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet) content.GetValueForProperty("DataSourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DataSourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceSetTypeConverter.ConvertFrom); + } + if (content.Contains("ProtectionStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).ProtectionStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetails) content.GetValueForProperty("ProtectionStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).ProtectionStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ProtectionStatusDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("CurrentProtectionState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).CurrentProtectionState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState?) content.GetValueForProperty("CurrentProtectionState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).CurrentProtectionState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState.CreateFrom); + } + if (content.Contains("ProtectionErrorDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).ProtectionErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError) content.GetValueForProperty("ProtectionErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).ProtectionErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingErrorTypeConverter.ConvertFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("DatasourceAuthCredentials")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AuthCredentialsTypeConverter.ConvertFrom); + } + if (content.Contains("ObjectType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).ObjectType, global::System.Convert.ToString); + } + if (content.Contains("DeletionInfoDeletionTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DeletionInfoDeletionTime = (string) content.GetValueForProperty("DeletionInfoDeletionTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DeletionInfoDeletionTime, global::System.Convert.ToString); + } + if (content.Contains("DeletionInfoBillingEndDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DeletionInfoBillingEndDate = (string) content.GetValueForProperty("DeletionInfoBillingEndDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DeletionInfoBillingEndDate, global::System.Convert.ToString); + } + if (content.Contains("DeletionInfoScheduledPurgeTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DeletionInfoScheduledPurgeTime = (string) content.GetValueForProperty("DeletionInfoScheduledPurgeTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DeletionInfoScheduledPurgeTime, global::System.Convert.ToString); + } + if (content.Contains("DeletionInfoDeleteActivityId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DeletionInfoDeleteActivityId = (string) content.GetValueForProperty("DeletionInfoDeleteActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal)this).DeletionInfoDeleteActivityId, 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.Api20221201.IDeletedBackupInstanceResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DeletedBackupInstanceResource(content); + } + + /// + /// Deserializes a 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.Api20221201.IDeletedBackupInstanceResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DeletedBackupInstanceResource(content); + } + + /// + /// Creates a new instance of , deserializing the content from a 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.Api20221201.IDeletedBackupInstanceResource 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(); + } + /// Deleted Backup Instance + [System.ComponentModel.TypeConverter(typeof(DeletedBackupInstanceResourceTypeConverter))] + public partial interface IDeletedBackupInstanceResource + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstanceResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstanceResource.TypeConverter.cs new file mode 100644 index 000000000000..d7a637629ae6 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstanceResource.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DeletedBackupInstanceResourceTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.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 into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResource ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResource).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DeletedBackupInstanceResource.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DeletedBackupInstanceResource.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DeletedBackupInstanceResource.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/Api20221201/DeletedBackupInstanceResource.cs b/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstanceResource.cs new file mode 100644 index 000000000000..d3b0ad5875b9 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstanceResource.cs @@ -0,0 +1,345 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by 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.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Deleted Backup Instance + public partial class DeletedBackupInstanceResource : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResource __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppResource(); + + /// Specifies the current protection state of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState? CurrentProtectionState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)Property).CurrentProtectionState; } + + /// Gets or sets the data source information. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource DataSourceInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)Property).DataSourceInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)Property).DataSourceInfo = value ?? null /* model class */; } + + /// Gets or sets the data source set information. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet DataSourceSetInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)Property).DataSourceSetInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)Property).DataSourceSetInfo = value ?? null /* model class */; } + + /// Credentials to use to authenticate with data source provider. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials DatasourceAuthCredentials { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)Property).DatasourceAuthCredentials; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)Property).DatasourceAuthCredentials = value ?? null /* model class */; } + + /// Specifies billing end date + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public string DeletionInfoBillingEndDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)Property).DeletionInfoBillingEndDate; } + + /// Delete activity ID for troubleshooting purpose + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public string DeletionInfoDeleteActivityId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)Property).DeletionInfoDeleteActivityId; } + + /// Specifies time of deletion + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public string DeletionInfoDeletionTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)Property).DeletionInfoDeletionTime; } + + /// Specifies purge time + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public string DeletionInfoScheduledPurgeTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)Property).DeletionInfoScheduledPurgeTime; } + + /// Gets or sets the Backup Instance friendly name. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public string FriendlyName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)Property).FriendlyName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)Property).FriendlyName = value ?? null; } + + /// 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.Api20221201.IDppResourceInternal)__dppResource).Id; } + + /// Internal Acessors for CurrentProtectionState + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal.CurrentProtectionState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)Property).CurrentProtectionState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)Property).CurrentProtectionState = value; } + + /// Internal Acessors for DeletionInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfo Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal.DeletionInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)Property).DeletionInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)Property).DeletionInfo = value; } + + /// Internal Acessors for DeletionInfoBillingEndDate + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal.DeletionInfoBillingEndDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)Property).DeletionInfoBillingEndDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)Property).DeletionInfoBillingEndDate = value; } + + /// Internal Acessors for DeletionInfoDeleteActivityId + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal.DeletionInfoDeleteActivityId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)Property).DeletionInfoDeleteActivityId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)Property).DeletionInfoDeleteActivityId = value; } + + /// Internal Acessors for DeletionInfoDeletionTime + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal.DeletionInfoDeletionTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)Property).DeletionInfoDeletionTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)Property).DeletionInfoDeletionTime = value; } + + /// Internal Acessors for DeletionInfoScheduledPurgeTime + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal.DeletionInfoScheduledPurgeTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)Property).DeletionInfoScheduledPurgeTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceInternal)Property).DeletionInfoScheduledPurgeTime = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstance Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeletedBackupInstance()); set { {_property = value;} } } + + /// Internal Acessors for ProtectionErrorDetail + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal.ProtectionErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)Property).ProtectionErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)Property).ProtectionErrorDetail = value; } + + /// Internal Acessors for ProtectionStatus + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal.ProtectionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)Property).ProtectionStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)Property).ProtectionStatus = value; } + + /// Internal Acessors for ProvisioningState + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)__dppResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20221201.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.Api20221201.IBackupInstanceInternal)Property).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)Property).ObjectType = value ?? null; } + + /// Gets or sets the policy information. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfo PolicyInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)Property).PolicyInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)Property).PolicyInfo = value ?? null /* model class */; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstance _property; + + /// DeletedBackupInstanceResource properties + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstance Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeletedBackupInstance()); set => this._property = value; } + + /// Specifies the protection error of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError ProtectionErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)Property).ProtectionErrorDetail; } + + /// Specifies the protection status of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetails ProtectionStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)Property).ProtectionStatus; } + + /// + /// Specifies the provisioning state of the resource i.e. provisioning/updating/Succeeded/Failed + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)Property).ProvisioningState; } + + /// 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.Api20221201.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20221201.IDppResourceInternal)__dppResource).Type; } + + /// + /// Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType? ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)Property).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceInternal)Property).ValidationType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType)""); } + + /// Creates an new instance. + public DeletedBackupInstanceResource() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__dppResource), __dppResource); + await eventListener.AssertObjectIsValid(nameof(__dppResource), __dppResource); + } + } + /// Deleted Backup Instance + public partial interface IDeletedBackupInstanceResource : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResource + { + /// Specifies the current protection state of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies the current protection state of the resource", + SerializedName = @"currentProtectionState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CurrentProtectionState? CurrentProtectionState { get; } + /// Gets or sets the data source information. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Gets or sets the data source information.", + SerializedName = @"dataSourceInfo", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20221201.IDatasourceSet) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet DataSourceSetInfo { get; set; } + /// Credentials to use to authenticate with data source provider. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Credentials to use to authenticate with data source provider.", + SerializedName = @"datasourceAuthCredentials", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials DatasourceAuthCredentials { get; set; } + /// Specifies billing end date + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies billing end date", + SerializedName = @"billingEndDate", + PossibleTypes = new [] { typeof(string) })] + string DeletionInfoBillingEndDate { get; } + /// Delete activity ID for troubleshooting purpose + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Delete activity ID for troubleshooting purpose", + SerializedName = @"deleteActivityID", + PossibleTypes = new [] { typeof(string) })] + string DeletionInfoDeleteActivityId { get; } + /// Specifies time of deletion + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies time of deletion", + SerializedName = @"deletionTime", + PossibleTypes = new [] { typeof(string) })] + string DeletionInfoDeletionTime { get; } + /// Specifies purge time + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies purge time", + SerializedName = @"scheduledPurgeTime", + PossibleTypes = new [] { typeof(string) })] + string DeletionInfoScheduledPurgeTime { get; } + /// Gets or sets the Backup Instance friendly name. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Gets or sets the Backup Instance friendly name.", + SerializedName = @"friendlyName", + PossibleTypes = new [] { typeof(string) })] + string FriendlyName { get; set; } + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"objectType", + PossibleTypes = new [] { typeof(string) })] + string ObjectType { get; set; } + /// Gets or sets the policy information. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Gets or sets the policy information.", + SerializedName = @"policyInfo", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20221201.IUserFacingError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20221201.IProtectionStatusDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetails ProtectionStatus { get; } + /// + /// Specifies the provisioning state of the resource i.e. provisioning/updating/Succeeded/Failed + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies the provisioning state of the resource i.e. provisioning/updating/Succeeded/Failed", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(string) })] + string ProvisioningState { get; } + /// + /// Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again.", + SerializedName = @"validationType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType? ValidationType { get; set; } + + } + /// Deleted Backup Instance + internal partial interface IDeletedBackupInstanceResourceInternal : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal + { + /// 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.Api20221201.IDatasource DataSourceInfo { get; set; } + /// Gets or sets the data source set information. + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet DataSourceSetInfo { get; set; } + /// Credentials to use to authenticate with data source provider. + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials DatasourceAuthCredentials { get; set; } + /// Deletion info of Backup Instance + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfo DeletionInfo { get; set; } + /// Specifies billing end date + string DeletionInfoBillingEndDate { get; set; } + /// Delete activity ID for troubleshooting purpose + string DeletionInfoDeleteActivityId { get; set; } + /// Specifies time of deletion + string DeletionInfoDeletionTime { get; set; } + /// Specifies purge time + string DeletionInfoScheduledPurgeTime { 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.Api20221201.IPolicyInfo PolicyInfo { get; set; } + /// DeletedBackupInstanceResource properties + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstance Property { get; set; } + /// Specifies the protection error of the resource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError ProtectionErrorDetail { get; set; } + /// Specifies the protection status of the resource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetails ProtectionStatus { get; set; } + /// + /// Specifies the provisioning state of the resource i.e. provisioning/updating/Succeeded/Failed + /// + string ProvisioningState { get; set; } + /// + /// Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again. + /// + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ValidationType? ValidationType { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstanceResource.json.cs b/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstanceResource.json.cs new file mode 100644 index 000000000000..0438362b0758 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstanceResource.json.cs @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Deleted Backup Instance + public partial class DeletedBackupInstanceResource + { + + /// + /// 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 serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.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 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 DeletedBackupInstanceResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __dppResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeletedBackupInstance.FromJson(__jsonProperties) : Property;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResource. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResource. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new DeletedBackupInstanceResource(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.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; + } + __dppResource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstanceResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstanceResourceList.PowerShell.cs new file mode 100644 index 000000000000..c569fc73992b --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstanceResourceList.PowerShell.cs @@ -0,0 +1,156 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// List of DeletedBackupInstance resources + [System.ComponentModel.TypeConverter(typeof(DeletedBackupInstanceResourceListTypeConverter))] + public partial class DeletedBackupInstanceResourceList + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should 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 DeletedBackupInstanceResourceList(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeletedBackupInstanceResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DeletedBackupInstanceResourceList(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeletedBackupInstanceResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)this).NextLink, 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.Api20221201.IDeletedBackupInstanceResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DeletedBackupInstanceResourceList(content); + } + + /// + /// Deserializes a 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.Api20221201.IDeletedBackupInstanceResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DeletedBackupInstanceResourceList(content); + } + + /// + /// Creates a new instance of , deserializing the content from a 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.Api20221201.IDeletedBackupInstanceResourceList 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 of DeletedBackupInstance resources + [System.ComponentModel.TypeConverter(typeof(DeletedBackupInstanceResourceListTypeConverter))] + public partial interface IDeletedBackupInstanceResourceList + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstanceResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstanceResourceList.TypeConverter.cs new file mode 100644 index 000000000000..17e27f9fdaff --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstanceResourceList.TypeConverter.cs @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by 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.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DeletedBackupInstanceResourceListTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.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 into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceList ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceList).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DeletedBackupInstanceResourceList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DeletedBackupInstanceResourceList.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DeletedBackupInstanceResourceList.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/Api20221201/DeletedBackupInstanceResourceList.cs b/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstanceResourceList.cs new file mode 100644 index 000000000000..8c4764ee91c9 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstanceResourceList.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by 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.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// List of DeletedBackupInstance resources + public partial class DeletedBackupInstanceResourceList : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceListInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceList __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20221201.IDppResourceListInternal)__dppResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)__dppResourceList).NextLink = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResource[] _value; + + /// List of resources. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResource[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public DeletedBackupInstanceResourceList() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__dppResourceList), __dppResourceList); + await eventListener.AssertObjectIsValid(nameof(__dppResourceList), __dppResourceList); + } + } + /// List of DeletedBackupInstance resources + public partial interface IDeletedBackupInstanceResourceList : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceList + { + /// List of resources. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"List of resources.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResource[] Value { get; set; } + + } + /// List of DeletedBackupInstance resources + internal partial interface IDeletedBackupInstanceResourceListInternal : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal + { + /// List of resources. + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResource[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstanceResourceList.json.cs b/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstanceResourceList.json.cs new file mode 100644 index 000000000000..6c3014dd1f49 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/DeletedBackupInstanceResourceList.json.cs @@ -0,0 +1,118 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by 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.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// List of DeletedBackupInstance resources + public partial class DeletedBackupInstanceResourceList + { + + /// + /// 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 serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.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 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 DeletedBackupInstanceResourceList(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __dppResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20221201.IDeletedBackupInstanceResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeletedBackupInstanceResource.FromJson(__u) )) ))() : null : Value;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceList. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceList. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletedBackupInstanceResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new DeletedBackupInstanceResourceList(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.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; + } + __dppResourceList?.ToJson(container, serializationMode); + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/PatchBackupVaultInput.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/DeletionInfo.PowerShell.cs similarity index 55% rename from src/DataProtection/generated/api/Models/Api20220501/PatchBackupVaultInput.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/DeletionInfo.PowerShell.cs index 0bb0302d7c10..c1b8439cee3e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/PatchBackupVaultInput.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DeletionInfo.PowerShell.cs @@ -3,13 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; - /// Backup Vault Contract for Patch Backup Vault API. - [System.ComponentModel.TypeConverter(typeof(PatchBackupVaultInputTypeConverter))] - public partial class PatchBackupVaultInput + /// Deletion Info + [System.ComponentModel.TypeConverter(typeof(DeletionInfoTypeConverter))] + public partial class DeletionInfo { /// @@ -55,46 +55,11 @@ public partial class PatchBackupVaultInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInput DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new PatchBackupVaultInput(content); - } - - /// - /// Deserializes a 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.Api20220501.IPatchBackupVaultInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new PatchBackupVaultInput(content); - } - - /// - /// Creates a new instance of , deserializing the content from a 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.Api20220501.IPatchBackupVaultInput 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 PatchBackupVaultInput(global::System.Collections.IDictionary content) + internal DeletionInfo(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -103,27 +68,31 @@ internal PatchBackupVaultInput(global::System.Collections.IDictionary content) return; } // actually deserialize - if (content.Contains("MonitoringSetting")) + if (content.Contains("DeletionTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)this).DeletionTime = (string) content.GetValueForProperty("DeletionTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)this).DeletionTime, global::System.Convert.ToString); + } + if (content.Contains("BillingEndDate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInputInternal)this).MonitoringSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettings) content.GetValueForProperty("MonitoringSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInputInternal)this).MonitoringSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.MonitoringSettingsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)this).BillingEndDate = (string) content.GetValueForProperty("BillingEndDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)this).BillingEndDate, global::System.Convert.ToString); } - if (content.Contains("MonitoringSettingAzureMonitorAlertSetting")) + if (content.Contains("ScheduledPurgeTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInputInternal)this).MonitoringSettingAzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings) content.GetValueForProperty("MonitoringSettingAzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInputInternal)this).MonitoringSettingAzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)this).ScheduledPurgeTime = (string) content.GetValueForProperty("ScheduledPurgeTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)this).ScheduledPurgeTime, global::System.Convert.ToString); } - if (content.Contains("AzureMonitorAlertsForAllJobFailure")) + if (content.Contains("DeleteActivityId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInputInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInputInternal)this).AzureMonitorAlertsForAllJobFailure, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)this).DeleteActivityId = (string) content.GetValueForProperty("DeleteActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)this).DeleteActivityId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal PatchBackupVaultInput(global::System.Management.Automation.PSObject content) + internal DeletionInfo(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -132,29 +101,66 @@ internal PatchBackupVaultInput(global::System.Management.Automation.PSObject con return; } // actually deserialize - if (content.Contains("MonitoringSetting")) + if (content.Contains("DeletionTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)this).DeletionTime = (string) content.GetValueForProperty("DeletionTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)this).DeletionTime, global::System.Convert.ToString); + } + if (content.Contains("BillingEndDate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInputInternal)this).MonitoringSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettings) content.GetValueForProperty("MonitoringSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInputInternal)this).MonitoringSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.MonitoringSettingsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)this).BillingEndDate = (string) content.GetValueForProperty("BillingEndDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)this).BillingEndDate, global::System.Convert.ToString); } - if (content.Contains("MonitoringSettingAzureMonitorAlertSetting")) + if (content.Contains("ScheduledPurgeTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInputInternal)this).MonitoringSettingAzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings) content.GetValueForProperty("MonitoringSettingAzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInputInternal)this).MonitoringSettingAzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)this).ScheduledPurgeTime = (string) content.GetValueForProperty("ScheduledPurgeTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)this).ScheduledPurgeTime, global::System.Convert.ToString); } - if (content.Contains("AzureMonitorAlertsForAllJobFailure")) + if (content.Contains("DeleteActivityId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInputInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInputInternal)this).AzureMonitorAlertsForAllJobFailure, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)this).DeleteActivityId = (string) content.GetValueForProperty("DeleteActivityId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal)this).DeleteActivityId, 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.Api20221201.IDeletionInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DeletionInfo(content); + } + + /// + /// Deserializes a 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.Api20221201.IDeletionInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DeletionInfo(content); + } + + /// + /// Creates a new instance of , deserializing the content from a 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.Api20221201.IDeletionInfo 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 Contract for Patch Backup Vault API. - [System.ComponentModel.TypeConverter(typeof(PatchBackupVaultInputTypeConverter))] - public partial interface IPatchBackupVaultInput + /// Deletion Info + [System.ComponentModel.TypeConverter(typeof(DeletionInfoTypeConverter))] + public partial interface IDeletionInfo { diff --git a/src/DataProtection/generated/api/Models/Api20221201/DeletionInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/DeletionInfo.TypeConverter.cs new file mode 100644 index 000000000000..fdd5403ea468 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/DeletionInfo.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DeletionInfoTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.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 into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfo ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfo).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DeletionInfo.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DeletionInfo.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DeletionInfo.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/Api20221201/DeletionInfo.cs b/src/DataProtection/generated/api/Models/Api20221201/DeletionInfo.cs new file mode 100644 index 000000000000..d0232f3cfd5e --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/DeletionInfo.cs @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Deletion Info + public partial class DeletionInfo : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal + { + + /// Backing field for property. + private string _billingEndDate; + + /// Specifies billing end date + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string BillingEndDate { get => this._billingEndDate; } + + /// Backing field for property. + private string _deleteActivityId; + + /// Delete activity ID for troubleshooting purpose + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string DeleteActivityId { get => this._deleteActivityId; } + + /// Backing field for property. + private string _deletionTime; + + /// Specifies time of deletion + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string DeletionTime { get => this._deletionTime; } + + /// Internal Acessors for BillingEndDate + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal.BillingEndDate { get => this._billingEndDate; set { {_billingEndDate = value;} } } + + /// Internal Acessors for DeleteActivityId + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal.DeleteActivityId { get => this._deleteActivityId; set { {_deleteActivityId = value;} } } + + /// Internal Acessors for DeletionTime + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal.DeletionTime { get => this._deletionTime; set { {_deletionTime = value;} } } + + /// Internal Acessors for ScheduledPurgeTime + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfoInternal.ScheduledPurgeTime { get => this._scheduledPurgeTime; set { {_scheduledPurgeTime = value;} } } + + /// Backing field for property. + private string _scheduledPurgeTime; + + /// Specifies purge time + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string ScheduledPurgeTime { get => this._scheduledPurgeTime; } + + /// Creates an new instance. + public DeletionInfo() + { + + } + } + /// Deletion Info + public partial interface IDeletionInfo : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable + { + /// Specifies billing end date + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies billing end date", + SerializedName = @"billingEndDate", + PossibleTypes = new [] { typeof(string) })] + string BillingEndDate { get; } + /// Delete activity ID for troubleshooting purpose + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Delete activity ID for troubleshooting purpose", + SerializedName = @"deleteActivityID", + PossibleTypes = new [] { typeof(string) })] + string DeleteActivityId { get; } + /// Specifies time of deletion + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies time of deletion", + SerializedName = @"deletionTime", + PossibleTypes = new [] { typeof(string) })] + string DeletionTime { get; } + /// Specifies purge time + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Specifies purge time", + SerializedName = @"scheduledPurgeTime", + PossibleTypes = new [] { typeof(string) })] + string ScheduledPurgeTime { get; } + + } + /// Deletion Info + internal partial interface IDeletionInfoInternal + + { + /// Specifies billing end date + string BillingEndDate { get; set; } + /// Delete activity ID for troubleshooting purpose + string DeleteActivityId { get; set; } + /// Specifies time of deletion + string DeletionTime { get; set; } + /// Specifies purge time + string ScheduledPurgeTime { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/DeletionInfo.json.cs b/src/DataProtection/generated/api/Models/Api20221201/DeletionInfo.json.cs new file mode 100644 index 000000000000..4dc2e325649d --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/DeletionInfo.json.cs @@ -0,0 +1,126 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by 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.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Deletion Info + public partial class DeletionInfo + { + + /// + /// 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 serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.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 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 DeletionInfo(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_deletionTime = If( json?.PropertyT("deletionTime"), out var __jsonDeletionTime) ? (string)__jsonDeletionTime : (string)DeletionTime;} + {_billingEndDate = If( json?.PropertyT("billingEndDate"), out var __jsonBillingEndDate) ? (string)__jsonBillingEndDate : (string)BillingEndDate;} + {_scheduledPurgeTime = If( json?.PropertyT("scheduledPurgeTime"), out var __jsonScheduledPurgeTime) ? (string)__jsonScheduledPurgeTime : (string)ScheduledPurgeTime;} + {_deleteActivityId = If( json?.PropertyT("deleteActivityID"), out var __jsonDeleteActivityId) ? (string)__jsonDeleteActivityId : (string)DeleteActivityId;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfo. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfo. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeletionInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new DeletionInfo(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.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; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._deletionTime)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._deletionTime.ToString()) : null, "deletionTime" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._billingEndDate)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._billingEndDate.ToString()) : null, "billingEndDate" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._scheduledPurgeTime)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._scheduledPurgeTime.ToString()) : null, "scheduledPurgeTime" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._deleteActivityId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._deleteActivityId.ToString()) : null, "deleteActivityID" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppBaseResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/DppBaseResource.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20220501/DppBaseResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppBaseResource.PowerShell.cs index 30480598ce73..a8f4fa8f48f6 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppBaseResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppBaseResource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,33 +55,33 @@ public partial class DppBaseResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool 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.Api20220501.IDppBaseResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DppBaseResource(content); } /// - /// 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.Api20220501.IDppBaseResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DppBaseResource(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,21 +96,21 @@ internal DppBaseResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceInternal)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. @@ -125,15 +125,15 @@ internal DppBaseResource(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -143,7 +143,7 @@ internal DppBaseResource(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.Api20220501.IDppBaseResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResource 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/Api20220501/DppBaseResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/DppBaseResource.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/DppBaseResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppBaseResource.TypeConverter.cs index d8be705dc32e..d9073858fb6f 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppBaseResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppBaseResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IDppBaseResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppBaseResource.cs b/src/DataProtection/generated/api/Models/Api20221201/DppBaseResource.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20220501/DppBaseResource.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppBaseResource.cs index 8dc1323f7362..86c609dcf6f0 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppBaseResource.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppBaseResource.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Base resource under Microsoft.DataProtection provider namespace public partial class DppBaseResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceInternal { /// Backing field for property. @@ -21,13 +21,13 @@ public partial class DppBaseResource : public string Id { get => this._id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _name; diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppBaseResource.json.cs b/src/DataProtection/generated/api/Models/Api20221201/DppBaseResource.json.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/DppBaseResource.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppBaseResource.json.cs index ba97dc1e2d8b..aead22dff9f1 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppBaseResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppBaseResource.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -72,13 +72,13 @@ internal DppBaseResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runti } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new DppBaseResource(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppBaseResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/DppBaseResourceList.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20220501/DppBaseResourceList.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppBaseResourceList.PowerShell.cs index 37003c7eeba4..40a30aa5efb7 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppBaseResourceList.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppBaseResourceList.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,33 +55,33 @@ public partial class DppBaseResourceList partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool 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.Api20220501.IDppBaseResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DppBaseResourceList(content); } /// - /// 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.Api20220501.IDppBaseResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DppBaseResourceList(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,17 +96,17 @@ internal DppBaseResourceList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppBaseResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -121,11 +121,11 @@ internal DppBaseResourceList(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppBaseResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -135,7 +135,7 @@ internal DppBaseResourceList(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.Api20220501.IDppBaseResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceList 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/Api20220501/DppBaseResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/DppBaseResourceList.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/DppBaseResourceList.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppBaseResourceList.TypeConverter.cs index d07077bfb48c..e4ea43902534 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppBaseResourceList.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppBaseResourceList.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IDppBaseResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppBaseResourceList.cs b/src/DataProtection/generated/api/Models/Api20221201/DppBaseResourceList.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20220501/DppBaseResourceList.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppBaseResourceList.cs index 603f3f4e50e3..3c70210d13af 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppBaseResourceList.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppBaseResourceList.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Base for all lists of V2 resources. public partial class DppBaseResourceList : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceListInternal { /// Backing field for property. @@ -23,11 +23,11 @@ public partial class DppBaseResourceList : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResource[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResource[] _value; /// List of Dpp resources. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResource[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResource[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public DppBaseResourceList() @@ -55,8 +55,8 @@ public partial interface IDppBaseResourceList : ReadOnly = false, Description = @"List of Dpp resources.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResource[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResource[] Value { get; set; } } /// Base for all lists of V2 resources. @@ -68,7 +68,7 @@ internal partial interface IDppBaseResourceListInternal /// string NextLink { get; set; } /// List of Dpp resources. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResource[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResource[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppBaseResourceList.json.cs b/src/DataProtection/generated/api/Models/Api20221201/DppBaseResourceList.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/DppBaseResourceList.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppBaseResourceList.json.cs index c93e240a5de7..dda8d35d5569 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppBaseResourceList.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppBaseResourceList.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DppBaseResourceList(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.R { return; } - {_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.Api20220501.IDppBaseResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppBaseResource.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.Api20221201.IDppBaseResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseResource.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppBaseResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new DppBaseResourceList(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResource.PowerShell.cs new file mode 100644 index 000000000000..d53ba20f1d0d --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResource.PowerShell.cs @@ -0,0 +1,192 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + [System.ComponentModel.TypeConverter(typeof(DppBaseTrackedResourceTypeConverter))] + public partial class DppBaseTrackedResource + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes 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.Api20221201.IDppBaseTrackedResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DppBaseTrackedResource(content); + } + + /// + /// Deserializes a 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.Api20221201.IDppBaseTrackedResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DppBaseTrackedResource(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DppBaseTrackedResource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ETag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).ETag, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseTrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemDataTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DppBaseTrackedResource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ETag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).ETag, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseTrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemDataTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResource 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(); + } + [System.ComponentModel.TypeConverter(typeof(DppBaseTrackedResourceTypeConverter))] + public partial interface IDppBaseTrackedResource + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppTrackedResourceTags.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResource.TypeConverter.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20220501/DppTrackedResourceTags.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResource.TypeConverter.cs index 1ae5b2ee3470..b9814958c932 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppTrackedResourceTags.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResource.TypeConverter.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; /// - /// A PowerShell PSTypeConverter to support converting to an instance of + /// A PowerShell PSTypeConverter to support converting to an instance of /// - public partial class DppTrackedResourceTagsTypeConverter : global::System.Management.Automation.PSTypeConverter + public partial class DppBaseTrackedResourceTypeConverter : global::System.Management.Automation.PSTypeConverter { /// @@ -26,13 +26,13 @@ public partial class DppTrackedResourceTagsTypeConverter : global::System.Manage public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// type. /// - /// the instance to check if it can be converted to the the instance to check if it can be converted to the type. /// - /// true if the instance could be converted to a type, otherwise false + /// true if the instance could be converted to a type, otherwise false /// public static bool CanConvertFrom(dynamic sourceValue) { @@ -95,31 +95,31 @@ public static bool CanConvertFrom(dynamic sourceValue) /// not used by this TypeConverter. /// when set to true, will ignore the case when converting. /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter into an instance of + /// Converts the parameter into an instance of /// - /// the value to convert into an instance of . + /// the value to convert into an instance of . /// - /// an instance of , or null if there is no suitable conversion. + /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResource).IsAssignableFrom(type)) { return sourceValue; } try { - return DppTrackedResourceTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + return DppBaseTrackedResource.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { @@ -127,11 +127,11 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { - return DppTrackedResourceTags.DeserializeFromPSObject(sourceValue); + return DppBaseTrackedResource.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { - return DppTrackedResourceTags.DeserializeFromDictionary(sourceValue); + return DppBaseTrackedResource.DeserializeFromDictionary(sourceValue); } return null; } diff --git a/src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResource.cs b/src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResource.cs new file mode 100644 index 000000000000..5ea52318feb4 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResource.cs @@ -0,0 +1,168 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + public partial class DppBaseTrackedResource : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal + { + + /// Backing field for property. + private string _eTag; + + /// Optional ETag. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string ETag { get => this._eTag; set => this._eTag = value; } + + /// Backing field for property. + private string _id; + + /// Resource Id represents the complete path to the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string Id { get => this._id; } + + /// Backing field for property. + private string _location; + + /// Resource location. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal.Id { get => this._id; set { {_id = value;} } } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemData()); set { {_systemData = value;} } } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal.Type { get => this._type; set { {_type = value;} } } + + /// Backing field for property. + private string _name; + + /// Resource name associated with the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20221201.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemData()); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags _tag; + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseTrackedResourceTags()); set => this._tag = value; } + + /// Backing field for property. + private string _type; + + /// + /// Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string Type { get => this._type; } + + /// Creates an new instance. + public DppBaseTrackedResource() + { + + } + } + public partial interface IDppBaseTrackedResource : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable + { + /// Optional ETag. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional ETag.", + SerializedName = @"eTag", + PossibleTypes = new [] { typeof(string) })] + string ETag { get; set; } + /// Resource Id represents the complete path to the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource Id represents the complete path to the resource.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; } + /// Resource location. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource location.", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + /// Resource name associated with the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource name associated with the resource.", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// Metadata pertaining to creation and last modification of the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Metadata pertaining to creation and last modification of the resource.", + SerializedName = @"systemData", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20221201.IDppBaseTrackedResourceTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags Tag { get; set; } + /// + /// Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + + } + internal partial interface IDppBaseTrackedResourceInternal + + { + /// Optional ETag. + string ETag { get; set; } + /// Resource Id represents the complete path to the resource. + string Id { get; set; } + /// Resource location. + string Location { get; set; } + /// 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.Api20221201.ISystemData SystemData { get; set; } + /// Resource tags. + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags Tag { get; set; } + /// + /// Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + /// + string Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppTrackedResource.json.cs b/src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResource.json.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20220501/DppTrackedResource.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResource.json.cs index 2d2978ff3a02..bbb4a076ae0b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppTrackedResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResource.json.cs @@ -3,11 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; - public partial class DppTrackedResource + public partial class DppBaseTrackedResource { /// @@ -53,10 +53,10 @@ public partial class DppTrackedResource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject into a new instance of . + /// 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 DppTrackedResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + internal DppBaseTrackedResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -64,37 +64,36 @@ internal DppTrackedResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Ru { return; } - {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20220501.DppTrackedResourceTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseTrackedResourceTags.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.Api20220501.SystemData.FromJson(__jsonSystemData) : SystemData;} + {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemData.FromJson(__jsonSystemData) : SystemData;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResource 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; + return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new DppBaseTrackedResource(json) : null; } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode serializationMode) { @@ -106,7 +105,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode T { return container; } - AddIf( null != this._identity ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) this._identity.ToJson(null,serializationMode) : null, "identity" ,container.Add ); AddIf( null != (((object)this._eTag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._eTag.ToString()) : null, "eTag" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeReadOnly)) { diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppTrackedResourceTags.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResourceTags.PowerShell.cs similarity index 78% rename from src/DataProtection/generated/api/Models/Api20220501/DppTrackedResourceTags.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResourceTags.PowerShell.cs index af3254deb685..5698b103fa5e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppTrackedResourceTags.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResourceTags.PowerShell.cs @@ -3,13 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; /// Resource tags. - [System.ComponentModel.TypeConverter(typeof(DppTrackedResourceTagsTypeConverter))] - public partial class DppTrackedResourceTags + [System.ComponentModel.TypeConverter(typeof(DppBaseTrackedResourceTagsTypeConverter))] + public partial class DppBaseTrackedResourceTags { /// @@ -55,39 +55,39 @@ 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.Api20220501.IDppTrackedResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new DppTrackedResourceTags(content); + return new DppBaseTrackedResourceTags(content); } /// - /// 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.Api20220501.IDppTrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new DppTrackedResourceTags(content); + return new DppBaseTrackedResourceTags(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal DppTrackedResourceTags(global::System.Collections.IDictionary content) + internal DppBaseTrackedResourceTags(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -102,11 +102,11 @@ 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. - internal DppTrackedResourceTags(global::System.Management.Automation.PSObject content) + internal DppBaseTrackedResourceTags(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -121,11 +121,11 @@ internal DppTrackedResourceTags(global::System.Management.Automation.PSObject co } /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -133,8 +133,8 @@ internal DppTrackedResourceTags(global::System.Management.Automation.PSObject co public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); } /// Resource tags. - [System.ComponentModel.TypeConverter(typeof(DppTrackedResourceTagsTypeConverter))] - public partial interface IDppTrackedResourceTags + [System.ComponentModel.TypeConverter(typeof(DppBaseTrackedResourceTagsTypeConverter))] + public partial interface IDppBaseTrackedResourceTags { diff --git a/src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResourceTags.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResourceTags.TypeConverter.cs new file mode 100644 index 000000000000..0a38e9be79a9 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResourceTags.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DppBaseTrackedResourceTagsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.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 into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DppBaseTrackedResourceTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DppBaseTrackedResourceTags.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DppBaseTrackedResourceTags.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/Api20220501/DppTrackedResourceTags.cs b/src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResourceTags.cs similarity index 68% rename from src/DataProtection/generated/api/Models/Api20220501/DppTrackedResourceTags.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResourceTags.cs index 2cc0d92716d2..32283f33136c 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppTrackedResourceTags.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResourceTags.cs @@ -3,31 +3,31 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Resource tags. - public partial class DppTrackedResourceTags : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTagsInternal + public partial class DppBaseTrackedResourceTags : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTagsInternal { - /// Creates an new instance. - public DppTrackedResourceTags() + /// Creates an new instance. + public DppBaseTrackedResourceTags() { } } /// Resource tags. - public partial interface IDppTrackedResourceTags : + public partial interface IDppBaseTrackedResourceTags : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IAssociativeArray { } /// Resource tags. - internal partial interface IDppTrackedResourceTagsInternal + internal partial interface IDppBaseTrackedResourceTagsInternal { diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppTrackedResourceTags.dictionary.cs b/src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResourceTags.dictionary.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/DppTrackedResourceTags.dictionary.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResourceTags.dictionary.cs index 771ebfd0c778..abf0458ccc26 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppTrackedResourceTags.dictionary.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResourceTags.dictionary.cs @@ -3,11 +3,11 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; - public partial class DppTrackedResourceTags : + public partial class DppBaseTrackedResourceTags : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IAssociativeArray { protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppTrackedResourceTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseTrackedResourceTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppTrackedResourceTags.json.cs b/src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResourceTags.json.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20220501/DppTrackedResourceTags.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResourceTags.json.cs index c8151980499a..a6b7f7fa800a 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppTrackedResourceTags.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppBaseTrackedResourceTags.json.cs @@ -3,12 +3,12 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Resource tags. - public partial class DppTrackedResourceTags + public partial class DppBaseTrackedResourceTags { /// @@ -54,11 +54,11 @@ public partial class DppTrackedResourceTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject into a new instance of . + /// 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 DppTrackedResourceTags(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + internal DppBaseTrackedResourceTags(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) { bool returnNow = false; BeforeFromJson(json, ref returnNow); @@ -71,25 +71,25 @@ internal DppTrackedResourceTags(Microsoft.Azure.PowerShell.Cmdlets.DataProtectio } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags 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; + return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new DppBaseTrackedResourceTags(json) : null; } /// - /// Serializes this instance of into a . + /// Serializes this instance of into a . /// /// The container to serialize this object into. If the caller /// passes in null, a new instance will be created and returned to the caller. /// Allows the caller to choose the depth of the serialization. See . /// - /// a serialized instance of as a . + /// a serialized instance of as a . /// public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode serializationMode) { diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppIdentityDetails.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/DppIdentityDetails.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20220501/DppIdentityDetails.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppIdentityDetails.PowerShell.cs index 84416846b5cc..abe469fd49ad 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppIdentityDetails.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppIdentityDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,33 +55,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.Api20220501.IDppIdentityDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppIdentityDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -96,21 +96,21 @@ internal DppIdentityDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("PrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetailsInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetailsInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetailsInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetailsInternal)this).PrincipalId, global::System.Convert.ToString); } if (content.Contains("TenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetailsInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetailsInternal)this).TenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetailsInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetailsInternal)this).TenantId, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetailsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetailsInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetailsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -125,15 +125,15 @@ internal DppIdentityDetails(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("PrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetailsInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetailsInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetailsInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetailsInternal)this).PrincipalId, global::System.Convert.ToString); } if (content.Contains("TenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetailsInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetailsInternal)this).TenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetailsInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetailsInternal)this).TenantId, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetailsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetailsInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetailsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetailsInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -143,7 +143,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.Api20220501.IDppIdentityDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/DppIdentityDetails.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/DppIdentityDetails.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/DppIdentityDetails.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppIdentityDetails.TypeConverter.cs index 0034db79cc2e..a6e775515234 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppIdentityDetails.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppIdentityDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IDppIdentityDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppIdentityDetails.cs b/src/DataProtection/generated/api/Models/Api20221201/DppIdentityDetails.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/DppIdentityDetails.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppIdentityDetails.cs index f5e3aa221c18..a7e28520f9cd 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppIdentityDetails.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppIdentityDetails.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Identity details public partial class DppIdentityDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetailsInternal { /// Internal Acessors for PrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetailsInternal.PrincipalId { get => this._principalId; set { {_principalId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetailsInternal.PrincipalId { get => this._principalId; set { {_principalId = value;} } } /// Internal Acessors for TenantId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetailsInternal.TenantId { get => this._tenantId; set { {_tenantId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetailsInternal.TenantId { get => this._tenantId; set { {_tenantId = value;} } } /// Backing field for property. private string _principalId; diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppIdentityDetails.json.cs b/src/DataProtection/generated/api/Models/Api20221201/DppIdentityDetails.json.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/DppIdentityDetails.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppIdentityDetails.json.cs index 5d3a85e9f9ff..d676d6de9f27 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppIdentityDetails.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppIdentityDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -72,13 +72,13 @@ internal DppIdentityDetails(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Ru } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/DppProxyResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/DppProxyResource.PowerShell.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20220501/DppProxyResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppProxyResource.PowerShell.cs index 06c1dc06ca71..e0b2f33af739 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppProxyResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppProxyResource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -54,33 +54,33 @@ public partial class DppProxyResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool 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.Api20220501.IDppProxyResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DppProxyResource(content); } /// - /// 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.Api20220501.IDppProxyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DppProxyResource(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -95,29 +95,29 @@ internal DppProxyResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppProxyResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppProxyResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -132,23 +132,23 @@ internal DppProxyResource(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppProxyResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppProxyResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemDataTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } @@ -158,7 +158,7 @@ internal DppProxyResource(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.Api20220501.IDppProxyResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResource 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/Api20220501/DppProxyResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/DppProxyResource.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/DppProxyResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppProxyResource.TypeConverter.cs index ea4c12529c5f..506d8fa36b84 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppProxyResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppProxyResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IDppProxyResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppProxyResource.cs b/src/DataProtection/generated/api/Models/Api20221201/DppProxyResource.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20220501/DppProxyResource.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppProxyResource.cs index 4cf6bc752d8f..3241d72f0ad0 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppProxyResource.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppProxyResource.cs @@ -3,13 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; public partial class DppProxyResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal { /// Backing field for property. @@ -20,16 +20,16 @@ public partial class DppProxyResource : public string Id { get => this._id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _name; @@ -39,18 +39,18 @@ public partial class DppProxyResource : public string Name { get => this._name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData _systemData; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemData()); } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemData()); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceTags _tag; /// Proxy Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppProxyResourceTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppProxyResourceTags()); set => this._tag = value; } /// Backing field for property. private string _type; @@ -92,16 +92,16 @@ public partial interface IDppProxyResource : ReadOnly = true, Description = @"Metadata pertaining to creation and last modification of the resource.", SerializedName = @"systemData", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData SystemData { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData SystemData { get; } /// Proxy Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, ReadOnly = false, Description = @"Proxy Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceTags Tag { get; set; } /// /// Proxy Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... /// @@ -122,9 +122,9 @@ internal partial interface IDppProxyResourceInternal /// Proxy 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.Api20220501.ISystemData SystemData { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData SystemData { get; set; } /// Proxy Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceTags Tag { get; set; } /// /// Proxy Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... /// diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppProxyResource.json.cs b/src/DataProtection/generated/api/Models/Api20221201/DppProxyResource.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/DppProxyResource.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppProxyResource.json.cs index 47b497f679a7..d0f6f1d8354b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppProxyResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppProxyResource.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -67,19 +67,19 @@ internal DppProxyResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runt {_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;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppProxyResourceTags.FromJson(__jsonTags) : Tag;} - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemData.FromJson(__jsonSystemData) : SystemData;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppProxyResourceTags.FromJson(__jsonTags) : Tag;} + {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemData.FromJson(__jsonSystemData) : SystemData;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new DppProxyResource(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppProxyResourceTags.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/DppProxyResourceTags.PowerShell.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20220501/DppProxyResourceTags.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppProxyResourceTags.PowerShell.cs index 7a996b5cc56a..fe89831d2796 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppProxyResourceTags.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppProxyResourceTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DppProxyResourceTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool 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.Api20220501.IDppProxyResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DppProxyResourceTags(content); } /// - /// 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.Api20220501.IDppProxyResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DppProxyResourceTags(content); } /// - /// 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 DppProxyResourceTags(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. @@ -125,7 +125,7 @@ internal DppProxyResourceTags(global::System.Management.Automation.PSObject cont /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceTags 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/Api20220501/DppProxyResourceTags.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/DppProxyResourceTags.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/DppProxyResourceTags.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppProxyResourceTags.TypeConverter.cs index d191f2f6e5d0..40a6dfc3128d 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppProxyResourceTags.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppProxyResourceTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IDppProxyResourceTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppProxyResourceTags.cs b/src/DataProtection/generated/api/Models/Api20221201/DppProxyResourceTags.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20220501/DppProxyResourceTags.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppProxyResourceTags.cs index 2badeada0dc0..81d9b44f1927 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppProxyResourceTags.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppProxyResourceTags.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Proxy Resource tags. public partial class DppProxyResourceTags : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceTags, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceTags, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceTagsInternal { /// Creates an new instance. diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppProxyResourceTags.dictionary.cs b/src/DataProtection/generated/api/Models/Api20221201/DppProxyResourceTags.dictionary.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/DppProxyResourceTags.dictionary.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppProxyResourceTags.dictionary.cs index 0d23385eb1fd..f4f477efde0c 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppProxyResourceTags.dictionary.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppProxyResourceTags.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppProxyResourceTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppProxyResourceTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppProxyResourceTags.json.cs b/src/DataProtection/generated/api/Models/Api20221201/DppProxyResourceTags.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/DppProxyResourceTags.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppProxyResourceTags.json.cs index 9d555f17d6d5..1826c0ab36e8 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppProxyResourceTags.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppProxyResourceTags.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -71,13 +71,13 @@ internal DppProxyResourceTags(Microsoft.Azure.PowerShell.Cmdlets.DataProtection. } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new DppProxyResourceTags(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/DppResource.PowerShell.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20220501/DppResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppResource.PowerShell.cs index d3b7550851f8..75161db8c21a 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppResource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,33 +55,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.Api20220501.IDppResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -96,25 +96,25 @@ internal DppResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -129,19 +129,19 @@ internal DppResource(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemDataTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } @@ -151,7 +151,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.Api20220501.IDppResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/DppResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/DppResource.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/DppResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppResource.TypeConverter.cs index 06a1a048a6bb..f501c8fdd567 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IDppResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppResource.cs b/src/DataProtection/generated/api/Models/Api20221201/DppResource.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20220501/DppResource.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppResource.cs index 6c26b2ef25ef..331e0df407ee 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppResource.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppResource.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Resource class public partial class DppResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal { /// Backing field for property. @@ -21,16 +21,16 @@ public partial class DppResource : public string Id { get => this._id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _name; @@ -40,11 +40,11 @@ public partial class DppResource : public string Name { get => this._name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData _systemData; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemData()); } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemData()); } /// Backing field for property. private string _type; @@ -87,8 +87,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.Api20220501.ISystemData) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData SystemData { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData SystemData { get; } /// /// Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... /// @@ -110,7 +110,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.Api20220501.ISystemData SystemData { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData SystemData { get; set; } /// /// Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... /// diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppResource.json.cs b/src/DataProtection/generated/api/Models/Api20221201/DppResource.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/DppResource.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppResource.json.cs index aba346248c0a..bb66fcc5842f 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppResource.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -68,18 +68,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.Api20220501.SystemData.FromJson(__jsonSystemData) : SystemData;} + {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemData.FromJson(__jsonSystemData) : SystemData;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/DppResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/DppResourceList.PowerShell.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20220501/DppResourceList.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppResourceList.PowerShell.cs index 726ca46d4954..d01b1f63b5c7 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppResourceList.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppResourceList.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,33 +55,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.Api20220501.IDppResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -96,13 +96,13 @@ internal DppResourceList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -117,7 +117,7 @@ internal DppResourceList(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -127,7 +127,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.Api20220501.IDppResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/DppResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/DppResourceList.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/DppResourceList.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppResourceList.TypeConverter.cs index eeb7558ac69a..937b1acfa414 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppResourceList.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppResourceList.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IDppResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppResourceList.cs b/src/DataProtection/generated/api/Models/Api20221201/DppResourceList.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/DppResourceList.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppResourceList.cs index c641caf7af83..788ad3d621b9 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppResourceList.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppResourceList.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// ListResource public partial class DppResourceList : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceListInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppResourceList.json.cs b/src/DataProtection/generated/api/Models/Api20221201/DppResourceList.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/DppResourceList.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppResourceList.json.cs index b9703297e0ec..1bee9b6e79e3 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppResourceList.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppResourceList.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -70,13 +70,13 @@ internal DppResourceList(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runti } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/DppTrackedResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/DppTrackedResource.PowerShell.cs similarity index 64% rename from src/DataProtection/generated/api/Models/Api20220501/DppTrackedResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppTrackedResource.PowerShell.cs index b8f29f9e0b5b..18c17ead4bf8 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppTrackedResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppTrackedResource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -54,33 +54,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.Api20220501.IDppTrackedResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppTrackedResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -95,53 +95,53 @@ internal DppTrackedResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppIdentityDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppIdentityDetailsTypeConverter.ConvertFrom); } if (content.Contains("ETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).ETag, global::System.Convert.ToString); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppTrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseTrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("IdentityPrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); } if (content.Contains("IdentityTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); } if (content.Contains("IdentityType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -156,47 +156,47 @@ internal DppTrackedResource(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppIdentityDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppIdentityDetailsTypeConverter.ConvertFrom); } if (content.Contains("ETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).ETag, global::System.Convert.ToString); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppTrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseTrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("IdentityPrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); } if (content.Contains("IdentityTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); } if (content.Contains("IdentityType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -206,7 +206,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.Api20220501.IDppTrackedResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/DppTrackedResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/DppTrackedResource.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/DppTrackedResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppTrackedResource.TypeConverter.cs index aa99ae3ad848..00c27b1a6bdc 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppTrackedResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppTrackedResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IDppTrackedResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppTrackedResource.cs b/src/DataProtection/generated/api/Models/Api20221201/DppTrackedResource.cs similarity index 52% rename from src/DataProtection/generated/api/Models/Api20220501/DppTrackedResource.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppTrackedResource.cs index 52ca222a3d29..59b4cdcd5090 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppTrackedResource.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppTrackedResource.cs @@ -3,136 +3,118 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; public partial class DppTrackedResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { - - /// Backing field for property. - private string _eTag; + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResource __dppBaseTrackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseTrackedResource(); /// Optional ETag. - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public string ETag { get => this._eTag; set => this._eTag = value; } - - /// Backing field for property. - private string _id; + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] + public string ETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).ETag = value ?? null; } /// Resource Id represents the complete path to the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public string Id { get => this._id; } + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).Id; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetails _identity; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppIdentityDetails Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppIdentityDetails()); set => this._identity = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetails Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppIdentityDetailsInternal)Identity).PrincipalId; } + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppIdentityDetailsInternal)Identity).TenantId; } + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppIdentityDetailsInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetailsInternal)Identity).Type = value ?? null; } - - /// Backing field for property. - private string _location; + public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetailsInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetailsInternal)Identity).Type = value ?? null; } /// Resource location. - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public string Location { get => this._location; set => this._location = value; } + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).Location = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal.Id { get => this._id; set { {_id = value;} } } - - /// Internal Acessors for Identity - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppIdentityDetails()); set { {_identity = value;} } } - - /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetailsInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetailsInternal)Identity).PrincipalId = value; } - - /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetailsInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetailsInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).Type = value; } - /// Backing field for property. - private string _name; + /// Internal Acessors for Identity + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppIdentityDetails()); set { {_identity = value;} } } - /// Resource name associated with the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public string Name { get => this._name; } + /// Internal Acessors for IdentityPrincipalId + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetailsInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetailsInternal)Identity).PrincipalId = value; } + + /// Internal Acessors for IdentityTenantId + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetailsInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetailsInternal)Identity).TenantId = value; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData _systemData; + /// 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.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).Name; } /// 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.Api20220501.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemData()); } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags _tag; + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).SystemData; } /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppTrackedResourceTags()); set => this._tag = value; } - - /// Backing field for property. - private string _type; + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).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.Owned)] - public string Type { get => this._type; } + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).Type; } /// Creates an new instance. public DppTrackedResource() { } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// A that will be complete when validation is completed. + /// + public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) + { + await eventListener.AssertNotNull(nameof(__dppBaseTrackedResource), __dppBaseTrackedResource); + await eventListener.AssertObjectIsValid(nameof(__dppBaseTrackedResource), __dppBaseTrackedResource); + } } public partial interface IDppTrackedResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResource { - /// Optional ETag. - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Optional ETag.", - SerializedName = @"eTag", - PossibleTypes = new [] { typeof(string) })] - string ETag { get; set; } - /// Resource Id represents the complete path to the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Resource Id represents the complete path to the resource.", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; } /// /// The object ID of the service principal object for the managed identity that is used to grant role-based access to an Azure /// resource. @@ -162,59 +144,13 @@ public partial interface IDppTrackedResource : SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] string IdentityType { get; set; } - /// Resource location. - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource location.", - SerializedName = @"location", - PossibleTypes = new [] { typeof(string) })] - string Location { get; set; } - /// Resource name associated with the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Resource name associated with the resource.", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; } - /// Metadata pertaining to creation and last modification of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Metadata pertaining to creation and last modification of the resource.", - SerializedName = @"systemData", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20220501.IDppTrackedResourceTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags Tag { get; set; } - /// - /// Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... - /// - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - string Type { get; } } - internal partial interface IDppTrackedResourceInternal - + internal partial interface IDppTrackedResourceInternal : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal { - /// Optional ETag. - string ETag { get; set; } - /// Resource Id represents the complete path to the resource. - string Id { get; set; } /// Input Managed Identity Details - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetails Identity { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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,18 +162,6 @@ internal partial interface IDppTrackedResourceInternal string IdentityTenantId { get; set; } /// The identityType which can be either SystemAssigned or None string IdentityType { get; set; } - /// Resource location. - string Location { get; set; } - /// 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.Api20220501.ISystemData SystemData { get; set; } - /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags Tag { get; set; } - /// - /// Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... - /// - string Type { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/DppTrackedResource.json.cs b/src/DataProtection/generated/api/Models/Api20221201/DppTrackedResource.json.cs new file mode 100644 index 000000000000..41dd9b9d6014 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/DppTrackedResource.json.cs @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by 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.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + public partial class DppTrackedResource + { + + /// + /// 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 serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.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 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 DppTrackedResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __dppBaseTrackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseTrackedResource(json); + {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppIdentityDetails.FromJson(__jsonIdentity) : Identity;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResource. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResource. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; + } + + /// + /// 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; + } + __dppBaseTrackedResource?.ToJson(container, serializationMode); + AddIf( null != this._identity ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) this._identity.ToJson(null,serializationMode) : null, "identity" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppTrackedResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/DppTrackedResourceList.PowerShell.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20220501/DppTrackedResourceList.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppTrackedResourceList.PowerShell.cs index 7f9cfeed8ed8..f281f8872f61 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppTrackedResourceList.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppTrackedResourceList.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -54,35 +54,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.Api20220501.IDppTrackedResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppTrackedResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -97,13 +97,13 @@ internal DppTrackedResourceList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -118,7 +118,7 @@ internal DppTrackedResourceList(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -128,7 +128,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.Api20220501.IDppTrackedResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/DppTrackedResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/DppTrackedResourceList.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/DppTrackedResourceList.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppTrackedResourceList.TypeConverter.cs index 98161f347c1f..bf3f087fe5e7 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppTrackedResourceList.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppTrackedResourceList.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IDppTrackedResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppTrackedResourceList.cs b/src/DataProtection/generated/api/Models/Api20221201/DppTrackedResourceList.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/DppTrackedResourceList.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppTrackedResourceList.cs index df1cc7931d5f..7f5b2ec66c27 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppTrackedResourceList.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppTrackedResourceList.cs @@ -3,13 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; public partial class DppTrackedResourceList : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceListInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppTrackedResourceList.json.cs b/src/DataProtection/generated/api/Models/Api20221201/DppTrackedResourceList.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/DppTrackedResourceList.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppTrackedResourceList.json.cs index b92f45894486..bd0a4e51075a 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppTrackedResourceList.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppTrackedResourceList.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -69,13 +69,13 @@ internal DppTrackedResourceList(Microsoft.Azure.PowerShell.Cmdlets.DataProtectio } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/DppWorkerRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequest.PowerShell.cs similarity index 79% rename from src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequest.PowerShell.cs index e9f160000756..372805e83e18 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -54,33 +54,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.Api20220501.IDppWorkerRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppWorkerRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -95,37 +95,37 @@ internal DppWorkerRequest(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("SubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).SubscriptionId, global::System.Convert.ToString); } if (content.Contains("Uri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).Uri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).Uri, global::System.Convert.ToString); } if (content.Contains("Header")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).Header = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestHeaders) content.GetValueForProperty("Header",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).Header, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppWorkerRequestHeadersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).Header = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestHeaders) content.GetValueForProperty("Header",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).Header, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppWorkerRequestHeadersTypeConverter.ConvertFrom); } if (content.Contains("SupportedGroupVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).SupportedGroupVersion = (string[]) content.GetValueForProperty("SupportedGroupVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).SupportedGroupVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).SupportedGroupVersion = (string[]) content.GetValueForProperty("SupportedGroupVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).SupportedGroupVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("CultureInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).CultureInfo = (string) content.GetValueForProperty("CultureInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).CultureInfo, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).CultureInfo = (string) content.GetValueForProperty("CultureInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).CultureInfo, global::System.Convert.ToString); } if (content.Contains("Parameter")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppWorkerRequestParametersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppWorkerRequestParametersTypeConverter.ConvertFrom); } if (content.Contains("HttpMethod")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).HttpMethod = (string) content.GetValueForProperty("HttpMethod",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).HttpMethod, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).HttpMethod = (string) content.GetValueForProperty("HttpMethod",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -140,31 +140,31 @@ internal DppWorkerRequest(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("SubscriptionId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).SubscriptionId, global::System.Convert.ToString); } if (content.Contains("Uri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).Uri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).Uri, global::System.Convert.ToString); } if (content.Contains("Header")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).Header = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestHeaders) content.GetValueForProperty("Header",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).Header, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppWorkerRequestHeadersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).Header = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestHeaders) content.GetValueForProperty("Header",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).Header, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppWorkerRequestHeadersTypeConverter.ConvertFrom); } if (content.Contains("SupportedGroupVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).SupportedGroupVersion = (string[]) content.GetValueForProperty("SupportedGroupVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).SupportedGroupVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).SupportedGroupVersion = (string[]) content.GetValueForProperty("SupportedGroupVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).SupportedGroupVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("CultureInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).CultureInfo = (string) content.GetValueForProperty("CultureInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).CultureInfo, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).CultureInfo = (string) content.GetValueForProperty("CultureInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).CultureInfo, global::System.Convert.ToString); } if (content.Contains("Parameter")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppWorkerRequestParametersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).Parameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestParameters) content.GetValueForProperty("Parameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).Parameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppWorkerRequestParametersTypeConverter.ConvertFrom); } if (content.Contains("HttpMethod")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).HttpMethod = (string) content.GetValueForProperty("HttpMethod",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal)this).HttpMethod, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).HttpMethod = (string) content.GetValueForProperty("HttpMethod",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal)this).HttpMethod, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -174,7 +174,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.Api20220501.IDppWorkerRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/DppWorkerRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequest.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequest.TypeConverter.cs index 145523a00c5a..6b409c10b3de 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IDppWorkerRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequest.cs b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequest.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequest.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequest.cs index 9b845e4ddfb1..fea5190a2967 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequest.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequest.cs @@ -3,13 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; public partial class DppWorkerRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestInternal { /// Backing field for property. @@ -19,13 +19,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.Api20220501.IDppWorkerRequestHeaders _header; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestHeaders _header; /// /// Dictionary of /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestHeaders Header { get => (this._header = this._header ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppWorkerRequestHeaders()); set => this._header = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestHeaders Header { get => (this._header = this._header ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppWorkerRequestHeaders()); set => this._header = value; } /// Backing field for property. private string _httpMethod; @@ -34,11 +34,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.Api20220501.IDppWorkerRequestParameters _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestParameters _parameter; /// Dictionary of [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestParameters Parameter { get => (this._parameter = this._parameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppWorkerRequestParameters()); set => this._parameter = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestParameters Parameter { get => (this._parameter = this._parameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppWorkerRequestParameters()); set => this._parameter = value; } /// Backing field for property. private string _subscriptionId; @@ -82,8 +82,8 @@ public partial interface IDppWorkerRequest : ReadOnly = false, Description = @"Dictionary of ", SerializedName = @"headers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestHeaders) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestHeaders Header { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestHeaders) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestHeaders Header { get; set; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -98,8 +98,8 @@ public partial interface IDppWorkerRequest : ReadOnly = false, Description = @"Dictionary of ", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestParameters) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestParameters Parameter { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestParameters) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestParameters Parameter { get; set; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -133,11 +133,11 @@ internal partial interface IDppWorkerRequestInternal /// /// Dictionary of /// - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestHeaders Header { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestHeaders Header { get; set; } string HttpMethod { get; set; } /// Dictionary of - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestParameters Parameter { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestParameters Parameter { get; set; } string SubscriptionId { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequest.json.cs b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequest.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequest.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequest.json.cs index b8e0c9ec5542..7267f09e78c8 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -66,22 +66,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.Api20220501.DppWorkerRequestHeaders.FromJson(__jsonHeaders) : Header;} + {_header = If( json?.PropertyT("headers"), out var __jsonHeaders) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.DppWorkerRequestParameters.FromJson(__jsonParameters) : Parameter;} + {_parameter = If( json?.PropertyT("parameters"), out var __jsonParameters) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppWorkerRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/DppWorkerRequestHeaders.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestHeaders.PowerShell.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestHeaders.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestHeaders.PowerShell.cs index 8078031e4554..c49389efe08b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestHeaders.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestHeaders.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -57,35 +57,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.Api20220501.IDppWorkerRequestHeaders DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppWorkerRequestHeaders DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -104,7 +104,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. @@ -127,7 +127,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.Api20220501.IDppWorkerRequestHeaders FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/DppWorkerRequestHeaders.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestHeaders.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestHeaders.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestHeaders.TypeConverter.cs index e83d096b26dd..d3c81ad93d6f 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestHeaders.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestHeaders.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IDppWorkerRequestHeaders ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestHeaders ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestHeaders).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestHeaders).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestHeaders.cs b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestHeaders.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestHeaders.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestHeaders.cs index b40f175add50..570a3818ebaf 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestHeaders.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestHeaders.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 /// Dictionary of components·ikn5y4·schemas·dppworkerrequest·properties·headers·additionalproperties /// public partial class DppWorkerRequestHeaders : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestHeaders, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestHeadersInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestHeaders, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestHeadersInternal { /// Creates an new instance. diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestHeaders.dictionary.cs b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestHeaders.dictionary.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestHeaders.dictionary.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestHeaders.dictionary.cs index 3b7a4496246e..98f7b24beecd 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestHeaders.dictionary.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestHeaders.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppWorkerRequestHeaders source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppWorkerRequestHeaders source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestHeaders.json.cs b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestHeaders.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestHeaders.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestHeaders.json.cs index 51becd9b7c40..564e8ff46c9e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestHeaders.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestHeaders.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -73,13 +73,13 @@ internal DppWorkerRequestHeaders(Microsoft.Azure.PowerShell.Cmdlets.DataProtecti } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestHeaders. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestHeaders. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestHeaders. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestHeaders. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestHeaders FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/DppWorkerRequestParameters.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestParameters.PowerShell.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestParameters.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestParameters.PowerShell.cs index ff119b66f0dd..04944717d49a 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestParameters.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestParameters.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,35 +55,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.Api20220501.IDppWorkerRequestParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDppWorkerRequestParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -102,7 +102,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. @@ -125,7 +125,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.Api20220501.IDppWorkerRequestParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/DppWorkerRequestParameters.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestParameters.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestParameters.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestParameters.TypeConverter.cs index 20384fc686c7..5f2cf4bc5144 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestParameters.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestParameters.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IDppWorkerRequestParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestParameters.cs b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestParameters.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestParameters.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestParameters.cs index eafc4b7a5e84..4f46c1c1097e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestParameters.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestParameters.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Dictionary of public partial class DppWorkerRequestParameters : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestParameters, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestParameters, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestParametersInternal { /// Creates an new instance. diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestParameters.dictionary.cs b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestParameters.dictionary.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestParameters.dictionary.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestParameters.dictionary.cs index 45bd07737e94..c52456dff63d 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestParameters.dictionary.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestParameters.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppWorkerRequestParameters source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppWorkerRequestParameters source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestParameters.json.cs b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestParameters.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestParameters.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestParameters.json.cs index c48af548b28c..be7c196899dc 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/DppWorkerRequestParameters.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/DppWorkerRequestParameters.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -71,13 +71,13 @@ internal DppWorkerRequestParameters(Microsoft.Azure.PowerShell.Cmdlets.DataProte } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppWorkerRequestParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppWorkerRequestParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/Error.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/Error.PowerShell.cs similarity index 79% rename from src/DataProtection/generated/api/Models/Api20220501/Error.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/Error.PowerShell.cs index a07514b32576..625a475d4d25 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/Error.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/Error.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,33 +55,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.Api20220501.IError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -96,29 +96,29 @@ internal Error(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -133,23 +133,23 @@ internal Error(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)this).Target, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -159,7 +159,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.Api20220501.IError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/Error.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/Error.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/Error.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/Error.TypeConverter.cs index 6f28c047925c..2710977114a2 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/Error.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/Error.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/Error.cs b/src/DataProtection/generated/api/Models/Api20221201/Error.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20220501/Error.cs rename to src/DataProtection/generated/api/Models/Api20221201/Error.cs index 8a8573ea5c16..5294d9901720 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/Error.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/Error.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// The resource management error response. public partial class Error : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfo[] _additionalInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IErrorAdditionalInfo[] AdditionalInfo { get => this._additionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo[] AdditionalInfo { get => this._additionalInfo; } /// Backing field for property. private string _code; @@ -28,11 +28,11 @@ public partial class Error : public string Code { get => this._code; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError[] _detail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IError[] Detail { get => this._detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError[] Detail { get => this._detail; } /// Backing field for property. private string _message; @@ -42,19 +42,19 @@ public partial class Error : public string Message { get => this._message; } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal.AdditionalInfo { get => this._additionalInfo; set { {_additionalInfo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal.AdditionalInfo { get => this._additionalInfo; set { {_additionalInfo = value;} } } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal.Code { get => this._code; set { {_code = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal.Code { get => this._code; set { {_code = value;} } } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal.Detail { get => this._detail; set { {_detail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal.Detail { get => this._detail; set { {_detail = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal.Message { get => this._message; set { {_message = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal.Message { get => this._message; set { {_message = value;} } } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal.Target { get => this._target; set { {_target = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal.Target { get => this._target; set { {_target = value;} } } /// Backing field for property. private string _target; @@ -79,8 +79,8 @@ public partial interface IError : ReadOnly = true, Description = @"The error additional info.", SerializedName = @"additionalInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfo[] AdditionalInfo { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo[] AdditionalInfo { get; } /// The error code. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -95,8 +95,8 @@ public partial interface IError : ReadOnly = true, Description = @"The error details.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError[] Detail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError[] Detail { get; } /// The error message. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -120,11 +120,11 @@ internal partial interface IErrorInternal { /// The error additional info. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfo[] AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo[] AdditionalInfo { get; set; } /// The error code. string Code { get; set; } /// The error details. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError[] Detail { get; set; } /// The error message. string Message { get; set; } /// The error target. diff --git a/src/DataProtection/generated/api/Models/Api20220501/Error.json.cs b/src/DataProtection/generated/api/Models/Api20221201/Error.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/Error.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/Error.json.cs index fd233efa85da..ece86efb079d 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/Error.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/Error.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,22 +65,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.Api20220501.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IError) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IError) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/ErrorAdditionalInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/ErrorAdditionalInfo.PowerShell.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20220501/ErrorAdditionalInfo.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/ErrorAdditionalInfo.PowerShell.cs index 5746133d0473..a4fcc562dfc5 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ErrorAdditionalInfo.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ErrorAdditionalInfo.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,33 +55,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.Api20220501.IErrorAdditionalInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -96,17 +96,17 @@ internal ErrorAdditionalInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Info")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -121,11 +121,11 @@ internal ErrorAdditionalInfo(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Info")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -135,7 +135,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.Api20220501.IErrorAdditionalInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/ErrorAdditionalInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/ErrorAdditionalInfo.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ErrorAdditionalInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/ErrorAdditionalInfo.TypeConverter.cs index db9b52ab9b1f..2fa67f3e788c 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ErrorAdditionalInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ErrorAdditionalInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IErrorAdditionalInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ErrorAdditionalInfo.cs b/src/DataProtection/generated/api/Models/Api20221201/ErrorAdditionalInfo.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20220501/ErrorAdditionalInfo.cs rename to src/DataProtection/generated/api/Models/Api20221201/ErrorAdditionalInfo.cs index 0feabca267a4..d0c669e0079b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ErrorAdditionalInfo.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ErrorAdditionalInfo.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IErrorAdditionalInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfoInternal { /// Backing field for property. @@ -21,10 +21,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.Api20220501.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.Api20221201.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.Api20220501.IErrorAdditionalInfoInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfoInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _type; diff --git a/src/DataProtection/generated/api/Models/Api20220501/ErrorAdditionalInfo.json.cs b/src/DataProtection/generated/api/Models/Api20221201/ErrorAdditionalInfo.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/ErrorAdditionalInfo.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/ErrorAdditionalInfo.json.cs index a938f416ca9a..9b8225f30e7f 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ErrorAdditionalInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ErrorAdditionalInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -71,13 +71,13 @@ internal ErrorAdditionalInfo(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.R } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/ExportJobsResult.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/ExportJobsResult.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20220501/ExportJobsResult.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/ExportJobsResult.PowerShell.cs index c76f9cfa3573..f4318d62ee9e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ExportJobsResult.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ExportJobsResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,33 +55,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.Api20220501.IExportJobsResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IExportJobsResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -96,25 +96,25 @@ internal ExportJobsResult(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("BlobUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IExportJobsResultInternal)this).BlobUrl = (string) content.GetValueForProperty("BlobUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IExportJobsResultInternal)this).BlobUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IExportJobsResultInternal)this).BlobUrl = (string) content.GetValueForProperty("BlobUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IExportJobsResultInternal)this).BlobUrl, global::System.Convert.ToString); } if (content.Contains("BlobSasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IExportJobsResultInternal)this).BlobSasKey = (string) content.GetValueForProperty("BlobSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IExportJobsResultInternal)this).BlobSasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IExportJobsResultInternal)this).BlobSasKey = (string) content.GetValueForProperty("BlobSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IExportJobsResultInternal)this).BlobSasKey, global::System.Convert.ToString); } if (content.Contains("ExcelFileBlobUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IExportJobsResultInternal)this).ExcelFileBlobUrl = (string) content.GetValueForProperty("ExcelFileBlobUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IExportJobsResultInternal)this).ExcelFileBlobUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IExportJobsResultInternal)this).ExcelFileBlobUrl = (string) content.GetValueForProperty("ExcelFileBlobUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IExportJobsResultInternal)this).ExcelFileBlobUrl, global::System.Convert.ToString); } if (content.Contains("ExcelFileBlobSasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IExportJobsResultInternal)this).ExcelFileBlobSasKey = (string) content.GetValueForProperty("ExcelFileBlobSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IExportJobsResultInternal)this).ExcelFileBlobSasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IExportJobsResultInternal)this).ExcelFileBlobSasKey = (string) content.GetValueForProperty("ExcelFileBlobSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -129,19 +129,19 @@ internal ExportJobsResult(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("BlobUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IExportJobsResultInternal)this).BlobUrl = (string) content.GetValueForProperty("BlobUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IExportJobsResultInternal)this).BlobUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IExportJobsResultInternal)this).BlobUrl = (string) content.GetValueForProperty("BlobUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IExportJobsResultInternal)this).BlobUrl, global::System.Convert.ToString); } if (content.Contains("BlobSasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IExportJobsResultInternal)this).BlobSasKey = (string) content.GetValueForProperty("BlobSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IExportJobsResultInternal)this).BlobSasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IExportJobsResultInternal)this).BlobSasKey = (string) content.GetValueForProperty("BlobSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IExportJobsResultInternal)this).BlobSasKey, global::System.Convert.ToString); } if (content.Contains("ExcelFileBlobUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IExportJobsResultInternal)this).ExcelFileBlobUrl = (string) content.GetValueForProperty("ExcelFileBlobUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IExportJobsResultInternal)this).ExcelFileBlobUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IExportJobsResultInternal)this).ExcelFileBlobUrl = (string) content.GetValueForProperty("ExcelFileBlobUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IExportJobsResultInternal)this).ExcelFileBlobUrl, global::System.Convert.ToString); } if (content.Contains("ExcelFileBlobSasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IExportJobsResultInternal)this).ExcelFileBlobSasKey = (string) content.GetValueForProperty("ExcelFileBlobSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IExportJobsResultInternal)this).ExcelFileBlobSasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IExportJobsResultInternal)this).ExcelFileBlobSasKey = (string) content.GetValueForProperty("ExcelFileBlobSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IExportJobsResultInternal)this).ExcelFileBlobSasKey, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -151,7 +151,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.Api20220501.IExportJobsResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/ExportJobsResult.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/ExportJobsResult.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ExportJobsResult.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/ExportJobsResult.TypeConverter.cs index f0250ba7aeec..dd66a26aedd3 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ExportJobsResult.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ExportJobsResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IExportJobsResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IExportJobsResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IExportJobsResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IExportJobsResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ExportJobsResult.cs b/src/DataProtection/generated/api/Models/Api20221201/ExportJobsResult.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20220501/ExportJobsResult.cs rename to src/DataProtection/generated/api/Models/Api20221201/ExportJobsResult.cs index 2e4b1e4643c8..5ff1f3617725 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ExportJobsResult.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ExportJobsResult.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IExportJobsResult, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IExportJobsResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IExportJobsResult, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IExportJobsResultInternal { /// Backing field for property. @@ -42,16 +42,16 @@ public partial class ExportJobsResult : public string ExcelFileBlobUrl { get => this._excelFileBlobUrl; } /// Internal Acessors for BlobSasKey - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IExportJobsResultInternal.BlobSasKey { get => this._blobSasKey; set { {_blobSasKey = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IExportJobsResultInternal.BlobSasKey { get => this._blobSasKey; set { {_blobSasKey = value;} } } /// Internal Acessors for BlobUrl - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IExportJobsResultInternal.BlobUrl { get => this._blobUrl; set { {_blobUrl = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IExportJobsResultInternal.BlobUrl { get => this._blobUrl; set { {_blobUrl = value;} } } /// Internal Acessors for ExcelFileBlobSasKey - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IExportJobsResultInternal.ExcelFileBlobSasKey { get => this._excelFileBlobSasKey; set { {_excelFileBlobSasKey = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IExportJobsResultInternal.ExcelFileBlobSasKey { get => this._excelFileBlobSasKey; set { {_excelFileBlobSasKey = value;} } } /// Internal Acessors for ExcelFileBlobUrl - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IExportJobsResultInternal.ExcelFileBlobUrl { get => this._excelFileBlobUrl; set { {_excelFileBlobUrl = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IExportJobsResultInternal.ExcelFileBlobUrl { get => this._excelFileBlobUrl; set { {_excelFileBlobUrl = value;} } } /// Creates an new instance. public ExportJobsResult() diff --git a/src/DataProtection/generated/api/Models/Api20220501/ExportJobsResult.json.cs b/src/DataProtection/generated/api/Models/Api20221201/ExportJobsResult.json.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ExportJobsResult.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/ExportJobsResult.json.cs index 41052c85c3c9..8ad41c8f7733 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ExportJobsResult.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ExportJobsResult.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -73,13 +73,13 @@ internal ExportJobsResult(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runt } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IExportJobsResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IExportJobsResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IExportJobsResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IExportJobsResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IExportJobsResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20221201/FeatureSettings.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/FeatureSettings.PowerShell.cs new file mode 100644 index 000000000000..924c245c1cc9 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/FeatureSettings.PowerShell.cs @@ -0,0 +1,152 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Class containing feature settings of vault + [System.ComponentModel.TypeConverter(typeof(FeatureSettingsTypeConverter))] + public partial class FeatureSettings + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes 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.Api20221201.IFeatureSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new FeatureSettings(content); + } + + /// + /// Deserializes a 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.Api20221201.IFeatureSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new FeatureSettings(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal FeatureSettings(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CrossSubscriptionRestoreSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettingsInternal)this).CrossSubscriptionRestoreSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings) content.GetValueForProperty("CrossSubscriptionRestoreSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettingsInternal)this).CrossSubscriptionRestoreSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CrossSubscriptionRestoreSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("CrossSubscriptionRestoreState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettingsInternal)this).CrossSubscriptionRestoreState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState?) content.GetValueForProperty("CrossSubscriptionRestoreState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettingsInternal)this).CrossSubscriptionRestoreState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal FeatureSettings(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("CrossSubscriptionRestoreSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettingsInternal)this).CrossSubscriptionRestoreSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings) content.GetValueForProperty("CrossSubscriptionRestoreSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettingsInternal)this).CrossSubscriptionRestoreSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CrossSubscriptionRestoreSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("CrossSubscriptionRestoreState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettingsInternal)this).CrossSubscriptionRestoreState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState?) content.GetValueForProperty("CrossSubscriptionRestoreState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettingsInternal)this).CrossSubscriptionRestoreState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings 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(); + } + /// Class containing feature settings of vault + [System.ComponentModel.TypeConverter(typeof(FeatureSettingsTypeConverter))] + public partial interface IFeatureSettings + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/FeatureSettings.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/FeatureSettings.TypeConverter.cs new file mode 100644 index 000000000000..3b862f15f9ce --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/FeatureSettings.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class FeatureSettingsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.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 into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return FeatureSettings.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return FeatureSettings.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return FeatureSettings.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/Api20221201/FeatureSettings.cs b/src/DataProtection/generated/api/Models/Api20221201/FeatureSettings.cs new file mode 100644 index 000000000000..c5d0295ab834 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/FeatureSettings.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Class containing feature settings of vault + public partial class FeatureSettings : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettingsInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings _crossSubscriptionRestoreSetting; + + /// CrossSubscriptionRestore Settings + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings CrossSubscriptionRestoreSetting { get => (this._crossSubscriptionRestoreSetting = this._crossSubscriptionRestoreSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CrossSubscriptionRestoreSettings()); set => this._crossSubscriptionRestoreSetting = value; } + + /// CrossSubscriptionRestore state + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState? CrossSubscriptionRestoreState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettingsInternal)CrossSubscriptionRestoreSetting).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettingsInternal)CrossSubscriptionRestoreSetting).State = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState)""); } + + /// Internal Acessors for CrossSubscriptionRestoreSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettingsInternal.CrossSubscriptionRestoreSetting { get => (this._crossSubscriptionRestoreSetting = this._crossSubscriptionRestoreSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CrossSubscriptionRestoreSettings()); set { {_crossSubscriptionRestoreSetting = value;} } } + + /// Creates an new instance. + public FeatureSettings() + { + + } + } + /// Class containing feature settings of vault + public partial interface IFeatureSettings : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable + { + /// CrossSubscriptionRestore state + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"CrossSubscriptionRestore state", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState? CrossSubscriptionRestoreState { get; set; } + + } + /// Class containing feature settings of vault + internal partial interface IFeatureSettingsInternal + + { + /// CrossSubscriptionRestore Settings + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings CrossSubscriptionRestoreSetting { get; set; } + /// CrossSubscriptionRestore state + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState? CrossSubscriptionRestoreState { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/FeatureSettings.json.cs b/src/DataProtection/generated/api/Models/Api20221201/FeatureSettings.json.cs new file mode 100644 index 000000000000..a1af69275ce4 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/FeatureSettings.json.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Class containing feature settings of vault + public partial class FeatureSettings + { + + /// + /// 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 serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.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 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 FeatureSettings(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_crossSubscriptionRestoreSetting = If( json?.PropertyT("crossSubscriptionRestoreSettings"), out var __jsonCrossSubscriptionRestoreSettings) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CrossSubscriptionRestoreSettings.FromJson(__jsonCrossSubscriptionRestoreSettings) : CrossSubscriptionRestoreSetting;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new FeatureSettings(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.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 != this._crossSubscriptionRestoreSetting ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) this._crossSubscriptionRestoreSetting.ToJson(null,serializationMode) : null, "crossSubscriptionRestoreSettings" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/FeatureValidationRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationRequest.PowerShell.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20220501/FeatureValidationRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/FeatureValidationRequest.PowerShell.cs index 7d06a5984062..b64c26f86abc 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/FeatureValidationRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,35 +55,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.Api20220501.IFeatureValidationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IFeatureValidationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -98,21 +98,21 @@ internal FeatureValidationRequest(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("FeatureType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestInternal)this).FeatureType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType?) content.GetValueForProperty("FeatureType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestInternal)this).FeatureType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestInternal)this).FeatureType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType?) content.GetValueForProperty("FeatureType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestInternal)this).FeatureType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType.CreateFrom); } if (content.Contains("FeatureName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestInternal)this).FeatureName = (string) content.GetValueForProperty("FeatureName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestInternal)this).FeatureName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestInternal)this).FeatureName = (string) content.GetValueForProperty("FeatureName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestInternal)this).FeatureName, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -127,15 +127,15 @@ internal FeatureValidationRequest(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("FeatureType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestInternal)this).FeatureType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType?) content.GetValueForProperty("FeatureType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestInternal)this).FeatureType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestInternal)this).FeatureType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType?) content.GetValueForProperty("FeatureType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestInternal)this).FeatureType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType.CreateFrom); } if (content.Contains("FeatureName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestInternal)this).FeatureName = (string) content.GetValueForProperty("FeatureName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestInternal)this).FeatureName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestInternal)this).FeatureName = (string) content.GetValueForProperty("FeatureName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestInternal)this).FeatureName, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestBaseInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -145,7 +145,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.Api20220501.IFeatureValidationRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/FeatureValidationRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationRequest.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/FeatureValidationRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/FeatureValidationRequest.TypeConverter.cs index 8121d412bed3..6c44efeb2543 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/FeatureValidationRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IFeatureValidationRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/FeatureValidationRequest.cs b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationRequest.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20220501/FeatureValidationRequest.cs rename to src/DataProtection/generated/api/Models/Api20221201/FeatureValidationRequest.cs index 59362e2615dd..c629081f0fd9 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/FeatureValidationRequest.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationRequest.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Base class for feature object public partial class FeatureValidationRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestBase __featureValidationRequestBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.FeatureValidationRequestBase(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestBase __featureValidationRequestBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.FeatureValidationRequestBase(); /// Backing field for property. private string _featureName; @@ -35,7 +35,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.Api20220501.IFeatureValidationRequestBaseInternal)__featureValidationRequestBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestBaseInternal)__featureValidationRequestBase).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestBaseInternal)__featureValidationRequestBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestBaseInternal)__featureValidationRequestBase).ObjectType = value ; } /// Creates an new instance. public FeatureValidationRequest() @@ -58,7 +58,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.Api20220501.IFeatureValidationRequestBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestBase { /// backup support feature name. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -80,7 +80,7 @@ public partial interface IFeatureValidationRequest : } /// Base class for feature object internal partial interface IFeatureValidationRequestInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestBaseInternal { /// backup support feature name. string FeatureName { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/FeatureValidationRequest.json.cs b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationRequest.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/FeatureValidationRequest.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/FeatureValidationRequest.json.cs index 63f6135960cb..7ad4f19c3be0 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/FeatureValidationRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,20 +65,20 @@ internal FeatureValidationRequest(Microsoft.Azure.PowerShell.Cmdlets.DataProtect { return; } - __featureValidationRequestBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.FeatureValidationRequestBase(json); + __featureValidationRequestBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IFeatureValidationRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/FeatureValidationRequestBase.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationRequestBase.PowerShell.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20220501/FeatureValidationRequestBase.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/FeatureValidationRequestBase.PowerShell.cs index cf8d4cb1360d..09c5e687d95a 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/FeatureValidationRequestBase.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationRequestBase.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,35 +55,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.Api20220501.IFeatureValidationRequestBase DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IFeatureValidationRequestBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -98,13 +98,13 @@ internal FeatureValidationRequestBase(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -119,7 +119,7 @@ internal FeatureValidationRequestBase(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestBaseInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -129,7 +129,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.Api20220501.IFeatureValidationRequestBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/FeatureValidationRequestBase.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationRequestBase.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/FeatureValidationRequestBase.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/FeatureValidationRequestBase.TypeConverter.cs index 35f78c421679..7b56d98d7ccf 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/FeatureValidationRequestBase.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationRequestBase.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IFeatureValidationRequestBase ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestBase ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestBase).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestBase).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/FeatureValidationRequestBase.cs b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationRequestBase.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/FeatureValidationRequestBase.cs rename to src/DataProtection/generated/api/Models/Api20221201/FeatureValidationRequestBase.cs index e0c462cf1718..867cbf86e57c 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/FeatureValidationRequestBase.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationRequestBase.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IFeatureValidationRequestBase, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestBase, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestBaseInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/FeatureValidationRequestBase.json.cs b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationRequestBase.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/FeatureValidationRequestBase.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/FeatureValidationRequestBase.json.cs index 040a140b8ca1..8efcc0047567 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/FeatureValidationRequestBase.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationRequestBase.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -70,15 +70,15 @@ internal FeatureValidationRequestBase(Microsoft.Azure.PowerShell.Cmdlets.DataPro } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestBase. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestBase interface + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestBase. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IFeatureValidationRequestBase. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationRequestBase. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationRequestBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/FeatureValidationResponse.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationResponse.PowerShell.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20220501/FeatureValidationResponse.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/FeatureValidationResponse.PowerShell.cs index 7fc6ee11d403..88ed1e7f45c5 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/FeatureValidationResponse.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationResponse.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,35 +55,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.Api20220501.IFeatureValidationResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IFeatureValidationResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -98,21 +98,21 @@ internal FeatureValidationResponse(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("FeatureType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseInternal)this).FeatureType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType?) content.GetValueForProperty("FeatureType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseInternal)this).FeatureType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseInternal)this).FeatureType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType?) content.GetValueForProperty("FeatureType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseInternal)this).FeatureType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType.CreateFrom); } if (content.Contains("Feature")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseInternal)this).Feature = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISupportedFeature[]) content.GetValueForProperty("Feature",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseInternal)this).Feature, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SupportedFeatureTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseInternal)this).Feature = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISupportedFeature[]) content.GetValueForProperty("Feature",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseInternal)this).Feature, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SupportedFeatureTypeConverter.ConvertFrom)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -127,15 +127,15 @@ internal FeatureValidationResponse(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("FeatureType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseInternal)this).FeatureType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType?) content.GetValueForProperty("FeatureType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseInternal)this).FeatureType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseInternal)this).FeatureType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType?) content.GetValueForProperty("FeatureType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseInternal)this).FeatureType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType.CreateFrom); } if (content.Contains("Feature")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseInternal)this).Feature = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISupportedFeature[]) content.GetValueForProperty("Feature",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseInternal)this).Feature, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SupportedFeatureTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseInternal)this).Feature = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISupportedFeature[]) content.GetValueForProperty("Feature",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseInternal)this).Feature, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SupportedFeatureTypeConverter.ConvertFrom)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseBaseInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -145,7 +145,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.Api20220501.IFeatureValidationResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/FeatureValidationResponse.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationResponse.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/FeatureValidationResponse.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/FeatureValidationResponse.TypeConverter.cs index db3f9fbc2940..d9411363c464 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/FeatureValidationResponse.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationResponse.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IFeatureValidationResponse ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponse ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponse).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponse).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/FeatureValidationResponse.cs b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationResponse.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20220501/FeatureValidationResponse.cs rename to src/DataProtection/generated/api/Models/Api20221201/FeatureValidationResponse.cs index 2309d931d673..04bed9366bf6 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/FeatureValidationResponse.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationResponse.cs @@ -3,28 +3,28 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Feature Validation Response public partial class FeatureValidationResponse : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponse, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponse, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseBase __featureValidationResponseBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.FeatureValidationResponseBase(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseBase __featureValidationResponseBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.FeatureValidationResponseBase(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISupportedFeature[] _feature; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISupportedFeature[] _feature; /// Response features [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISupportedFeature[] Feature { get => this._feature; set => this._feature = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISupportedFeature[] Feature { get => this._feature; set => this._feature = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureType? _featureType; @@ -35,7 +35,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.Api20220501.IFeatureValidationResponseBaseInternal)__featureValidationResponseBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseBaseInternal)__featureValidationResponseBase).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseBaseInternal)__featureValidationResponseBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseBaseInternal)__featureValidationResponseBase).ObjectType = value ; } /// Creates an new instance. public FeatureValidationResponse() @@ -58,7 +58,7 @@ public FeatureValidationResponse() /// Feature Validation Response public partial interface IFeatureValidationResponse : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseBase { /// Response features [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -66,8 +66,8 @@ public partial interface IFeatureValidationResponse : ReadOnly = false, Description = @"Response features", SerializedName = @"features", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISupportedFeature) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISupportedFeature[] Feature { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISupportedFeature) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISupportedFeature[] Feature { get; set; } /// backup support feature type. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -80,10 +80,10 @@ public partial interface IFeatureValidationResponse : } /// Feature Validation Response internal partial interface IFeatureValidationResponseInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseBaseInternal { /// Response features - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISupportedFeature[] Feature { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/FeatureValidationResponse.json.cs b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationResponse.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20220501/FeatureValidationResponse.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/FeatureValidationResponse.json.cs index 989591f49f95..5da2ce683f15 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/FeatureValidationResponse.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationResponse.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -65,20 +65,20 @@ internal FeatureValidationResponse(Microsoft.Azure.PowerShell.Cmdlets.DataProtec { return; } - __featureValidationResponseBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.FeatureValidationResponseBase(json); + __featureValidationResponseBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ISupportedFeature) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.ISupportedFeature) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SupportedFeature.FromJson(__u) )) ))() : null : Feature;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponse. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponse. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponse. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponse. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/FeatureValidationResponseBase.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationResponseBase.PowerShell.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20220501/FeatureValidationResponseBase.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/FeatureValidationResponseBase.PowerShell.cs index 6a56d17dbbe4..c03335e81f9d 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/FeatureValidationResponseBase.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationResponseBase.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,35 +55,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.Api20220501.IFeatureValidationResponseBase DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IFeatureValidationResponseBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -98,13 +98,13 @@ internal FeatureValidationResponseBase(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -119,7 +119,7 @@ internal FeatureValidationResponseBase(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseBaseInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -129,7 +129,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.Api20220501.IFeatureValidationResponseBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/FeatureValidationResponseBase.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationResponseBase.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/FeatureValidationResponseBase.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/FeatureValidationResponseBase.TypeConverter.cs index 64ab42db578b..d27383f221e7 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/FeatureValidationResponseBase.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationResponseBase.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IFeatureValidationResponseBase ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseBase ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseBase).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseBase).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/FeatureValidationResponseBase.cs b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationResponseBase.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/FeatureValidationResponseBase.cs rename to src/DataProtection/generated/api/Models/Api20221201/FeatureValidationResponseBase.cs index a10b986c0ecd..409c032b91f8 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/FeatureValidationResponseBase.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationResponseBase.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IFeatureValidationResponseBase, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseBase, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseBaseInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/FeatureValidationResponseBase.json.cs b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationResponseBase.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/FeatureValidationResponseBase.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/FeatureValidationResponseBase.json.cs index 3aa76a2ddbc8..ccb3df4234e0 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/FeatureValidationResponseBase.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/FeatureValidationResponseBase.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -70,15 +70,15 @@ internal FeatureValidationResponseBase(Microsoft.Azure.PowerShell.Cmdlets.DataPr } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseBase. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseBase interface + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseBase. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IFeatureValidationResponseBase. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureValidationResponseBase. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IFeatureValidationResponseBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/ImmediateCopyOption.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/ImmediateCopyOption.PowerShell.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20220501/ImmediateCopyOption.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/ImmediateCopyOption.PowerShell.cs index fe9435bb95a6..4685c41f9ea2 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ImmediateCopyOption.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ImmediateCopyOption.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,27 +55,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.Api20220501.IImmediateCopyOption DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IImmediateCopyOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmediateCopyOption DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ImmediateCopyOption(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IImmediateCopyOption FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -103,13 +103,13 @@ internal ImmediateCopyOption(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -124,7 +124,7 @@ internal ImmediateCopyOption(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOptionInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOptionInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ImmediateCopyOption.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/ImmediateCopyOption.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ImmediateCopyOption.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/ImmediateCopyOption.TypeConverter.cs index 81660fe8d1be..0178d5a1985f 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ImmediateCopyOption.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ImmediateCopyOption.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IImmediateCopyOption ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmediateCopyOption ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IImmediateCopyOption).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmediateCopyOption).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ImmediateCopyOption.cs b/src/DataProtection/generated/api/Models/Api20221201/ImmediateCopyOption.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20220501/ImmediateCopyOption.cs rename to src/DataProtection/generated/api/Models/Api20221201/ImmediateCopyOption.cs index dc8af6b9da37..c9f6ed23e952 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ImmediateCopyOption.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ImmediateCopyOption.cs @@ -3,25 +3,25 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Immediate copy Option public partial class ImmediateCopyOption : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IImmediateCopyOption, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IImmediateCopyOptionInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmediateCopyOption, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmediateCopyOptionInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOption __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.CopyOption(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOption __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ICopyOptionInternal)__copyOption).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOptionInternal)__copyOption).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOptionInternal)__copyOption).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOptionInternal)__copyOption).ObjectType = value ; } /// Creates an new instance. public ImmediateCopyOption() @@ -44,13 +44,13 @@ public ImmediateCopyOption() /// Immediate copy Option public partial interface IImmediateCopyOption : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOption + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOption { } /// Immediate copy Option internal partial interface IImmediateCopyOptionInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOptionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOptionInternal { } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ImmediateCopyOption.json.cs b/src/DataProtection/generated/api/Models/Api20221201/ImmediateCopyOption.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/ImmediateCopyOption.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/ImmediateCopyOption.json.cs index 0f6420390309..0eadbf9a86d4 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ImmediateCopyOption.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ImmediateCopyOption.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.IImmediateCopyOption. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmediateCopyOption. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IImmediateCopyOption. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmediateCopyOption. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IImmediateCopyOption FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -77,7 +77,7 @@ internal ImmediateCopyOption(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.R { return; } - __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.CopyOption(json); + __copyOption = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CopyOption(json); AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20221201/ImmutabilitySettings.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/ImmutabilitySettings.PowerShell.cs new file mode 100644 index 000000000000..a39a30408a8f --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/ImmutabilitySettings.PowerShell.cs @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by 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.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Immutability Settings at vault level + [System.ComponentModel.TypeConverter(typeof(ImmutabilitySettingsTypeConverter))] + public partial class ImmutabilitySettings + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes 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.Api20221201.IImmutabilitySettings DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ImmutabilitySettings(content); + } + + /// + /// Deserializes a 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.Api20221201.IImmutabilitySettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ImmutabilitySettings(content); + } + + /// + /// Creates a new instance of , deserializing the content from a 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.Api20221201.IImmutabilitySettings 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 ImmutabilitySettings(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettingsInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettingsInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ImmutabilitySettings(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettingsInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettingsInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Immutability Settings at vault level + [System.ComponentModel.TypeConverter(typeof(ImmutabilitySettingsTypeConverter))] + public partial interface IImmutabilitySettings + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/ImmutabilitySettings.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/ImmutabilitySettings.TypeConverter.cs new file mode 100644 index 000000000000..b839276b7134 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/ImmutabilitySettings.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ImmutabilitySettingsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.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 into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ImmutabilitySettings.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ImmutabilitySettings.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ImmutabilitySettings.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/Api20221201/ImmutabilitySettings.cs b/src/DataProtection/generated/api/Models/Api20221201/ImmutabilitySettings.cs new file mode 100644 index 000000000000..14fd7bc5f1a5 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/ImmutabilitySettings.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by 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.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Immutability Settings at vault level + public partial class ImmutabilitySettings : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettingsInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState? _state; + + /// Immutability state + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState? State { get => this._state; set => this._state = value; } + + /// Creates an new instance. + public ImmutabilitySettings() + { + + } + } + /// Immutability Settings at vault level + public partial interface IImmutabilitySettings : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable + { + /// Immutability state + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Immutability state", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState? State { get; set; } + + } + /// Immutability Settings at vault level + internal partial interface IImmutabilitySettingsInternal + + { + /// Immutability state + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState? State { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/ImmutabilitySettings.json.cs b/src/DataProtection/generated/api/Models/Api20221201/ImmutabilitySettings.json.cs new file mode 100644 index 000000000000..0775f3e49eeb --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/ImmutabilitySettings.json.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Immutability Settings at vault level + public partial class ImmutabilitySettings + { + + /// + /// 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 serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.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.Api20221201.IImmutabilitySettings. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new ImmutabilitySettings(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 ImmutabilitySettings(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_state = If( json?.PropertyT("state"), out var __jsonState) ? (string)__jsonState : (string)State;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.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._state)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._state.ToString()) : null, "state" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/InnerError.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/InnerError.PowerShell.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20220501/InnerError.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/InnerError.PowerShell.cs index ab4e5b4c6a8e..5a05f0d4aa56 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/InnerError.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/InnerError.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,27 +55,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.Api20220501.IInnerError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IInnerError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InnerError(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -103,21 +103,21 @@ internal InnerError(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerErrorAdditionalInfo) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerErrorInternal)this).AdditionalInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.InnerErrorAdditionalInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerErrorAdditionalInfo) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerErrorInternal)this).AdditionalInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.InnerErrorAdditionalInfoTypeConverter.ConvertFrom); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("EmbeddedInnerError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerErrorInternal)this).EmbeddedInnerError = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerError) content.GetValueForProperty("EmbeddedInnerError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerErrorInternal)this).EmbeddedInnerError, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.InnerErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerErrorInternal)this).EmbeddedInnerError = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerError) content.GetValueForProperty("EmbeddedInnerError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerErrorInternal)this).EmbeddedInnerError, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -132,15 +132,15 @@ internal InnerError(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerErrorAdditionalInfo) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerErrorInternal)this).AdditionalInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.InnerErrorAdditionalInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerErrorAdditionalInfo) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerErrorInternal)this).AdditionalInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.InnerErrorAdditionalInfoTypeConverter.ConvertFrom); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("EmbeddedInnerError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerErrorInternal)this).EmbeddedInnerError = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerError) content.GetValueForProperty("EmbeddedInnerError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerErrorInternal)this).EmbeddedInnerError, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.InnerErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerErrorInternal)this).EmbeddedInnerError = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerError) content.GetValueForProperty("EmbeddedInnerError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerErrorInternal)this).EmbeddedInnerError, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.InnerErrorTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/InnerError.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/InnerError.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/InnerError.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/InnerError.TypeConverter.cs index 1dd0de7d7f97..ba9d016f2843 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/InnerError.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/InnerError.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/InnerError.cs b/src/DataProtection/generated/api/Models/Api20221201/InnerError.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20220501/InnerError.cs rename to src/DataProtection/generated/api/Models/Api20221201/InnerError.cs index bb13f3d73cb8..7512566e222f 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/InnerError.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/InnerError.cs @@ -3,24 +3,24 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Inner Error public partial class InnerError : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerError, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerError, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerErrorInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerErrorAdditionalInfo _additionalInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IInnerErrorAdditionalInfo AdditionalInfo { get => (this._additionalInfo = this._additionalInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.InnerErrorAdditionalInfo()); set => this._additionalInfo = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerErrorAdditionalInfo AdditionalInfo { get => (this._additionalInfo = this._additionalInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.InnerErrorAdditionalInfo()); set => this._additionalInfo = value; } /// Backing field for property. private string _code; @@ -30,11 +30,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.Api20220501.IInnerError _embeddedInnerError; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IInnerError EmbeddedInnerError { get => (this._embeddedInnerError = this._embeddedInnerError ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.InnerError()); set => this._embeddedInnerError = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerError EmbeddedInnerError { get => (this._embeddedInnerError = this._embeddedInnerError ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.InnerError()); set => this._embeddedInnerError = value; } /// Creates an new instance. public InnerError() @@ -54,8 +54,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.Api20220501.IInnerErrorAdditionalInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerErrorAdditionalInfo AdditionalInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerErrorAdditionalInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerErrorAdditionalInfo AdditionalInfo { get; set; } /// Unique code for this error [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -70,8 +70,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.Api20220501.IInnerError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerError EmbeddedInnerError { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerError EmbeddedInnerError { get; set; } } /// Inner Error @@ -81,11 +81,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.Api20220501.IInnerErrorAdditionalInfo AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IInnerError EmbeddedInnerError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerError EmbeddedInnerError { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/InnerError.json.cs b/src/DataProtection/generated/api/Models/Api20221201/InnerError.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/InnerError.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/InnerError.json.cs index 10b9becb44da..eff5c70f9eb5 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/InnerError.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/InnerError.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.IInnerError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -77,9 +77,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.Api20220501.InnerErrorAdditionalInfo.FromJson(__jsonAdditionalInfo) : AdditionalInfo;} + {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.InnerError.FromJson(__jsonEmbeddedInnerError) : EmbeddedInnerError;} + {_embeddedInnerError = If( json?.PropertyT("embeddedInnerError"), out var __jsonEmbeddedInnerError) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.InnerError.FromJson(__jsonEmbeddedInnerError) : EmbeddedInnerError;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/InnerErrorAdditionalInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/InnerErrorAdditionalInfo.PowerShell.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20220501/InnerErrorAdditionalInfo.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/InnerErrorAdditionalInfo.PowerShell.cs index aaa347114a5b..d5c2ad0537de 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/InnerErrorAdditionalInfo.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/InnerErrorAdditionalInfo.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -57,29 +57,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.Api20220501.IInnerErrorAdditionalInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IInnerErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InnerErrorAdditionalInfo(content); } @@ -89,10 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerErrorAdditionalInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -111,7 +111,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/Api20220501/InnerErrorAdditionalInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/InnerErrorAdditionalInfo.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/InnerErrorAdditionalInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/InnerErrorAdditionalInfo.TypeConverter.cs index 9013be0dc81a..52d3a0654cb8 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/InnerErrorAdditionalInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/InnerErrorAdditionalInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IInnerErrorAdditionalInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerErrorAdditionalInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerErrorAdditionalInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerErrorAdditionalInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/InnerErrorAdditionalInfo.cs b/src/DataProtection/generated/api/Models/Api20221201/InnerErrorAdditionalInfo.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20220501/InnerErrorAdditionalInfo.cs rename to src/DataProtection/generated/api/Models/Api20221201/InnerErrorAdditionalInfo.cs index 97f25cbf266e..bf154a41d30f 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/InnerErrorAdditionalInfo.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/InnerErrorAdditionalInfo.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 /// 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.Api20220501.IInnerErrorAdditionalInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerErrorAdditionalInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerErrorAdditionalInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerErrorAdditionalInfoInternal { /// Creates an new instance. diff --git a/src/DataProtection/generated/api/Models/Api20220501/InnerErrorAdditionalInfo.dictionary.cs b/src/DataProtection/generated/api/Models/Api20221201/InnerErrorAdditionalInfo.dictionary.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/InnerErrorAdditionalInfo.dictionary.cs rename to src/DataProtection/generated/api/Models/Api20221201/InnerErrorAdditionalInfo.dictionary.cs index 582f253faebf..aae47b4ed2e6 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/InnerErrorAdditionalInfo.dictionary.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/InnerErrorAdditionalInfo.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.InnerErrorAdditionalInfo source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.InnerErrorAdditionalInfo source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/InnerErrorAdditionalInfo.json.cs b/src/DataProtection/generated/api/Models/Api20221201/InnerErrorAdditionalInfo.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/InnerErrorAdditionalInfo.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/InnerErrorAdditionalInfo.json.cs index 0c19a55d4a86..cb2f55b01998 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/InnerErrorAdditionalInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/InnerErrorAdditionalInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -56,13 +56,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.Api20220501.IInnerErrorAdditionalInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerErrorAdditionalInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerErrorAdditionalInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerErrorAdditionalInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/ItemLevelRestoreCriteria.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/ItemLevelRestoreCriteria.PowerShell.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20220501/ItemLevelRestoreCriteria.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/ItemLevelRestoreCriteria.PowerShell.cs index 6dbfbd25a579..d318823f0f22 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ItemLevelRestoreCriteria.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ItemLevelRestoreCriteria.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ItemLevelRestoreCriteria partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool 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.Api20220501.IItemLevelRestoreCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ItemLevelRestoreCriteria(content); } /// - /// 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.Api20220501.IItemLevelRestoreCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ItemLevelRestoreCriteria(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteria FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteria 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. @@ -105,13 +105,13 @@ internal ItemLevelRestoreCriteria(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal)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. @@ -126,7 +126,7 @@ internal ItemLevelRestoreCriteria(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ItemLevelRestoreCriteria.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/ItemLevelRestoreCriteria.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ItemLevelRestoreCriteria.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/ItemLevelRestoreCriteria.TypeConverter.cs index 06facb0d2a0d..b72603c8ad61 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ItemLevelRestoreCriteria.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ItemLevelRestoreCriteria.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IItemLevelRestoreCriteria ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteria ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteria).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteria).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ItemLevelRestoreCriteria.cs b/src/DataProtection/generated/api/Models/Api20221201/ItemLevelRestoreCriteria.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/ItemLevelRestoreCriteria.cs rename to src/DataProtection/generated/api/Models/Api20221201/ItemLevelRestoreCriteria.cs index 73cd8fd0fd8d..b2500ba37198 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ItemLevelRestoreCriteria.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ItemLevelRestoreCriteria.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IItemLevelRestoreCriteria, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteriaInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteria, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/ItemLevelRestoreCriteria.json.cs b/src/DataProtection/generated/api/Models/Api20221201/ItemLevelRestoreCriteria.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/ItemLevelRestoreCriteria.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/ItemLevelRestoreCriteria.json.cs index d6bf7835792c..9eb6c0b45fa5 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ItemLevelRestoreCriteria.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ItemLevelRestoreCriteria.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class ItemLevelRestoreCriteria 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.Api20220501.IItemLevelRestoreCriteria. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteria interface is + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteria. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IItemLevelRestoreCriteria. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteria. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteria 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/Api20220501/ItemLevelRestoreTargetInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/ItemLevelRestoreTargetInfo.PowerShell.cs similarity index 77% rename from src/DataProtection/generated/api/Models/Api20220501/ItemLevelRestoreTargetInfo.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/ItemLevelRestoreTargetInfo.PowerShell.cs index acbbd7027fa0..1a0aafa35fdc 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ItemLevelRestoreTargetInfo.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ItemLevelRestoreTargetInfo.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ItemLevelRestoreTargetInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool 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.Api20220501.IItemLevelRestoreTargetInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreTargetInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ItemLevelRestoreTargetInfo(content); } /// - /// 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.Api20220501.IItemLevelRestoreTargetInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreTargetInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ItemLevelRestoreTargetInfo(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreTargetInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreTargetInfo 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. @@ -105,37 +105,37 @@ internal ItemLevelRestoreTargetInfo(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("RestoreCriterion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreTargetInfoInternal)this).RestoreCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteria[]) content.GetValueForProperty("RestoreCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreTargetInfoInternal)this).RestoreCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ItemLevelRestoreCriteriaTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreTargetInfoInternal)this).RestoreCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteria[]) content.GetValueForProperty("RestoreCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreTargetInfoInternal)this).RestoreCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ItemLevelRestoreCriteriaTypeConverter.ConvertFrom)); } if (content.Contains("DatasourceInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreTargetInfoInternal)this).DatasourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasource) content.GetValueForProperty("DatasourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreTargetInfoInternal)this).DatasourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DatasourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreTargetInfoInternal)this).DatasourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource) content.GetValueForProperty("DatasourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreTargetInfoInternal)this).DatasourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceTypeConverter.ConvertFrom); } if (content.Contains("DatasourceSetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreTargetInfoInternal)this).DatasourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSet) content.GetValueForProperty("DatasourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreTargetInfoInternal)this).DatasourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DatasourceSetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreTargetInfoInternal)this).DatasourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet) content.GetValueForProperty("DatasourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreTargetInfoInternal)this).DatasourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceSetTypeConverter.ConvertFrom); } if (content.Contains("DatasourceAuthCredentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreTargetInfoInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreTargetInfoInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AuthCredentialsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreTargetInfoInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreTargetInfoInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AuthCredentialsTypeConverter.ConvertFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RecoveryOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); } if (content.Contains("RestoreLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -150,31 +150,31 @@ internal ItemLevelRestoreTargetInfo(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("RestoreCriterion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreTargetInfoInternal)this).RestoreCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteria[]) content.GetValueForProperty("RestoreCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreTargetInfoInternal)this).RestoreCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ItemLevelRestoreCriteriaTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreTargetInfoInternal)this).RestoreCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteria[]) content.GetValueForProperty("RestoreCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreTargetInfoInternal)this).RestoreCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ItemLevelRestoreCriteriaTypeConverter.ConvertFrom)); } if (content.Contains("DatasourceInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreTargetInfoInternal)this).DatasourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasource) content.GetValueForProperty("DatasourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreTargetInfoInternal)this).DatasourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DatasourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreTargetInfoInternal)this).DatasourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource) content.GetValueForProperty("DatasourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreTargetInfoInternal)this).DatasourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceTypeConverter.ConvertFrom); } if (content.Contains("DatasourceSetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreTargetInfoInternal)this).DatasourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSet) content.GetValueForProperty("DatasourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreTargetInfoInternal)this).DatasourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DatasourceSetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreTargetInfoInternal)this).DatasourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet) content.GetValueForProperty("DatasourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreTargetInfoInternal)this).DatasourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceSetTypeConverter.ConvertFrom); } if (content.Contains("DatasourceAuthCredentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreTargetInfoInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreTargetInfoInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AuthCredentialsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreTargetInfoInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreTargetInfoInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AuthCredentialsTypeConverter.ConvertFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RecoveryOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); } if (content.Contains("RestoreLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ItemLevelRestoreTargetInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/ItemLevelRestoreTargetInfo.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ItemLevelRestoreTargetInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/ItemLevelRestoreTargetInfo.TypeConverter.cs index d6cd7f4cc24f..c6743f002f1a 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ItemLevelRestoreTargetInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ItemLevelRestoreTargetInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IItemLevelRestoreTargetInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreTargetInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreTargetInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreTargetInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ItemLevelRestoreTargetInfo.cs b/src/DataProtection/generated/api/Models/Api20221201/ItemLevelRestoreTargetInfo.cs similarity index 78% rename from src/DataProtection/generated/api/Models/Api20220501/ItemLevelRestoreTargetInfo.cs rename to src/DataProtection/generated/api/Models/Api20221201/ItemLevelRestoreTargetInfo.cs index b7a451014b31..240c1ce7f665 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ItemLevelRestoreTargetInfo.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ItemLevelRestoreTargetInfo.cs @@ -3,64 +3,64 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IItemLevelRestoreTargetInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreTargetInfoInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreTargetInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreTargetInfoInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreTargetInfoBase(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreTargetInfoBase(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials _datasourceAuthCredentials; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials _datasourceAuthCredentials; /// Credentials to use to authenticate with data source provider. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials DatasourceAuthCredentials { get => (this._datasourceAuthCredentials = this._datasourceAuthCredentials ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AuthCredentials()); set => this._datasourceAuthCredentials = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials DatasourceAuthCredentials { get => (this._datasourceAuthCredentials = this._datasourceAuthCredentials ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AuthCredentials()); set => this._datasourceAuthCredentials = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasource _datasourceInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDatasource DatasourceInfo { get => (this._datasourceInfo = this._datasourceInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.Datasource()); set => this._datasourceInfo = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource DatasourceInfo { get => (this._datasourceInfo = this._datasourceInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.Datasource()); set => this._datasourceInfo = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSet _datasourceSetInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDatasourceSet DatasourceSetInfo { get => (this._datasourceSetInfo = this._datasourceSetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DatasourceSet()); set => this._datasourceSetInfo = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet DatasourceSetInfo { get => (this._datasourceSetInfo = this._datasourceSetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceSet()); set => this._datasourceSetInfo = value; } /// Internal Acessors for RecoveryOption - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal.RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal.RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; } + public string RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteria[] _restoreCriterion; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteria[] _restoreCriterion; /// Restore Criteria [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteria[] RestoreCriterion { get => this._restoreCriterion; set => this._restoreCriterion = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation = value ?? null; } + public string RestoreLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation = value ?? null; } /// Creates an new instance. public ItemLevelRestoreTargetInfo() @@ -83,7 +83,7 @@ public ItemLevelRestoreTargetInfo() /// 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.Api20220501.IRestoreTargetInfoBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase { /// Credentials to use to authenticate with data source provider. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -91,46 +91,46 @@ public partial interface IItemLevelRestoreTargetInfo : ReadOnly = false, Description = @"Credentials to use to authenticate with data source provider.", SerializedName = @"datasourceAuthCredentials", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials DatasourceAuthCredentials { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials DatasourceAuthCredentials { get; set; } /// 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.Api20220501.IDatasource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasource DatasourceInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDatasourceSet) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSet DatasourceSetInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IItemLevelRestoreCriteria) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteria[] RestoreCriterion { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteria) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteria[] RestoreCriterion { get; set; } } /// Restore target info for Item level restore operation internal partial interface IItemLevelRestoreTargetInfoInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal { /// Credentials to use to authenticate with data source provider. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials DatasourceAuthCredentials { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials DatasourceAuthCredentials { get; set; } /// Information of target DS - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasource DatasourceInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource DatasourceInfo { get; set; } /// Information of target DS Set - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSet DatasourceSetInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet DatasourceSetInfo { get; set; } /// Restore Criteria - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteria[] RestoreCriterion { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteria[] RestoreCriterion { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/ItemLevelRestoreTargetInfo.json.cs b/src/DataProtection/generated/api/Models/Api20221201/ItemLevelRestoreTargetInfo.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20220501/ItemLevelRestoreTargetInfo.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/ItemLevelRestoreTargetInfo.json.cs index 2948236667ed..532897a76798 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ItemLevelRestoreTargetInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ItemLevelRestoreTargetInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ItemLevelRestoreTargetInfo 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.Api20220501.IItemLevelRestoreTargetInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreTargetInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreTargetInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreTargetInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreTargetInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -77,11 +77,11 @@ internal ItemLevelRestoreTargetInfo(Microsoft.Azure.PowerShell.Cmdlets.DataProte { return; } - __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20220501.IItemLevelRestoreCriteria) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ItemLevelRestoreCriteria.FromJson(__u) )) ))() : null : RestoreCriterion;} - {_datasourceInfo = If( json?.PropertyT("datasourceInfo"), out var __jsonDatasourceInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.Datasource.FromJson(__jsonDatasourceInfo) : DatasourceInfo;} - {_datasourceSetInfo = If( json?.PropertyT("datasourceSetInfo"), out var __jsonDatasourceSetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DatasourceSet.FromJson(__jsonDatasourceSetInfo) : DatasourceSetInfo;} - {_datasourceAuthCredentials = If( json?.PropertyT("datasourceAuthCredentials"), out var __jsonDatasourceAuthCredentials) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AuthCredentials.FromJson(__jsonDatasourceAuthCredentials) : DatasourceAuthCredentials;} + __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20221201.IItemLevelRestoreCriteria) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ItemLevelRestoreCriteria.FromJson(__u) )) ))() : null : RestoreCriterion;} + {_datasourceInfo = If( json?.PropertyT("datasourceInfo"), out var __jsonDatasourceInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.Datasource.FromJson(__jsonDatasourceInfo) : DatasourceInfo;} + {_datasourceSetInfo = If( json?.PropertyT("datasourceSetInfo"), out var __jsonDatasourceSetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceSet.FromJson(__jsonDatasourceSetInfo) : DatasourceSetInfo;} + {_datasourceAuthCredentials = If( json?.PropertyT("datasourceAuthCredentials"), out var __jsonDatasourceAuthCredentials) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AuthCredentials.FromJson(__jsonDatasourceAuthCredentials) : DatasourceAuthCredentials;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfo.PowerShell.cs similarity index 77% rename from src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfo.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfo.PowerShell.cs index 480c6c79a210..ae059df79858 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfo.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfo.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class JobExtendedInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool 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.Api20220501.IJobExtendedInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobExtendedInfo(content); } /// - /// 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.Api20220501.IJobExtendedInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobExtendedInfo(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfo 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. @@ -103,53 +103,53 @@ internal JobExtendedInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("SourceRecoverPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).SourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("SourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).SourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).SourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("SourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).SourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("TargetRecoverPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).TargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("TargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).TargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).TargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("TargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).TargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("AdditionalDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).AdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).AdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).AdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).AdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); } if (content.Contains("BackupInstanceState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).BackupInstanceState = (string) content.GetValueForProperty("BackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).BackupInstanceState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).BackupInstanceState = (string) content.GetValueForProperty("BackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).BackupInstanceState, global::System.Convert.ToString); } if (content.Contains("DataTransferredInByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).DataTransferredInByte = (double?) content.GetValueForProperty("DataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).DataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).DataTransferredInByte = (double?) content.GetValueForProperty("DataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).DataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("RecoveryDestination")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).RecoveryDestination = (string) content.GetValueForProperty("RecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).RecoveryDestination, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).RecoveryDestination = (string) content.GetValueForProperty("RecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).RecoveryDestination, global::System.Convert.ToString); } if (content.Contains("SubTask")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).SubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTask[]) content.GetValueForProperty("SubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).SubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobSubTaskTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).SubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask[]) content.GetValueForProperty("SubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).SubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobSubTaskTypeConverter.ConvertFrom)); } if (content.Contains("SourceRecoverPointRecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("SourceRecoverPointRecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("TargetRecoverPointRecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("TargetRecoverPointRecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointTime, (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.Api20221201.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -164,47 +164,47 @@ internal JobExtendedInfo(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("SourceRecoverPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).SourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("SourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).SourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).SourceRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("SourceRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).SourceRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("TargetRecoverPoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).TargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("TargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).TargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).TargetRecoverPoint = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails) content.GetValueForProperty("TargetRecoverPoint",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).TargetRecoverPoint, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreJobRecoveryPointDetailsTypeConverter.ConvertFrom); } if (content.Contains("AdditionalDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).AdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).AdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).AdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoAdditionalDetails) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).AdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobExtendedInfoAdditionalDetailsTypeConverter.ConvertFrom); } if (content.Contains("BackupInstanceState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).BackupInstanceState = (string) content.GetValueForProperty("BackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).BackupInstanceState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).BackupInstanceState = (string) content.GetValueForProperty("BackupInstanceState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).BackupInstanceState, global::System.Convert.ToString); } if (content.Contains("DataTransferredInByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).DataTransferredInByte = (double?) content.GetValueForProperty("DataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).DataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).DataTransferredInByte = (double?) content.GetValueForProperty("DataTransferredInByte",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).DataTransferredInByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("RecoveryDestination")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).RecoveryDestination = (string) content.GetValueForProperty("RecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).RecoveryDestination, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).RecoveryDestination = (string) content.GetValueForProperty("RecoveryDestination",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).RecoveryDestination, global::System.Convert.ToString); } if (content.Contains("SubTask")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).SubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTask[]) content.GetValueForProperty("SubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).SubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobSubTaskTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).SubTask = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask[]) content.GetValueForProperty("SubTask",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).SubTask, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobSubTaskTypeConverter.ConvertFrom)); } if (content.Contains("SourceRecoverPointRecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointId = (string) content.GetValueForProperty("SourceRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("SourceRecoverPointRecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("SourceRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).SourceRecoverPointRecoveryPointTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("TargetRecoverPointRecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointId = (string) content.GetValueForProperty("TargetRecoverPointRecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointId, global::System.Convert.ToString); } if (content.Contains("TargetRecoverPointRecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointTime, (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.Api20221201.IJobExtendedInfoInternal)this).TargetRecoverPointRecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("TargetRecoverPointRecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfo.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfo.TypeConverter.cs index 44863b3bd5a1..8e42b019fe7f 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IJobExtendedInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfo.cs b/src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfo.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfo.cs rename to src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfo.cs index ef84628508e9..a3a79bd5d115 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfo.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfo.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Extended Information about the job public partial class JobExtendedInfo : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoAdditionalDetails _additionalDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IJobExtendedInfoAdditionalDetails AdditionalDetail { get => (this._additionalDetail = this._additionalDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobExtendedInfoAdditionalDetails()); set => this._additionalDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoAdditionalDetails AdditionalDetail { get => (this._additionalDetail = this._additionalDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobExtendedInfoAdditionalDetails()); set => this._additionalDetail = value; } /// Backing field for property. private string _backupInstanceState; @@ -35,22 +35,22 @@ public partial class JobExtendedInfo : public double? DataTransferredInByte { get => this._dataTransferredInByte; } /// Internal Acessors for BackupInstanceState - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal.BackupInstanceState { get => this._backupInstanceState; set { {_backupInstanceState = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal.BackupInstanceState { get => this._backupInstanceState; set { {_backupInstanceState = value;} } } /// Internal Acessors for DataTransferredInByte - double? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal.DataTransferredInByte { get => this._dataTransferredInByte; set { {_dataTransferredInByte = value;} } } + double? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal.DataTransferredInByte { get => this._dataTransferredInByte; set { {_dataTransferredInByte = value;} } } /// Internal Acessors for RecoveryDestination - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal.RecoveryDestination { get => this._recoveryDestination; set { {_recoveryDestination = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal.RecoveryDestination { get => this._recoveryDestination; set { {_recoveryDestination = value;} } } /// Internal Acessors for SourceRecoverPoint - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal.SourceRecoverPoint { get => (this._sourceRecoverPoint = this._sourceRecoverPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreJobRecoveryPointDetails()); set { {_sourceRecoverPoint = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal.SourceRecoverPoint { get => (this._sourceRecoverPoint = this._sourceRecoverPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreJobRecoveryPointDetails()); set { {_sourceRecoverPoint = value;} } } /// Internal Acessors for SubTask - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTask[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal.SubTask { get => this._subTask; set { {_subTask = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal.SubTask { get => this._subTask; set { {_subTask = value;} } } /// Internal Acessors for TargetRecoverPoint - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoInternal.TargetRecoverPoint { get => (this._targetRecoverPoint = this._targetRecoverPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreJobRecoveryPointDetails()); set { {_targetRecoverPoint = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoInternal.TargetRecoverPoint { get => (this._targetRecoverPoint = this._targetRecoverPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreJobRecoveryPointDetails()); set { {_targetRecoverPoint = value;} } } /// Backing field for property. private string _recoveryDestination; @@ -60,37 +60,37 @@ public partial class JobExtendedInfo : public string RecoveryDestination { get => this._recoveryDestination; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails _sourceRecoverPoint; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRestoreJobRecoveryPointDetails SourceRecoverPoint { get => (this._sourceRecoverPoint = this._sourceRecoverPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreJobRecoveryPointDetails()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails SourceRecoverPoint { get => (this._sourceRecoverPoint = this._sourceRecoverPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreJobRecoveryPointDetails()); } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string SourceRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetailsInternal)SourceRecoverPoint).RecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetailsInternal)SourceRecoverPoint).RecoveryPointId = value ?? null; } + public string SourceRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetailsInternal)SourceRecoverPoint).RecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRestoreJobRecoveryPointDetailsInternal)SourceRecoverPoint).RecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetailsInternal)SourceRecoverPoint).RecoveryPointTime = value ?? default(global::System.DateTime); } + public global::System.DateTime? SourceRecoverPointRecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetailsInternal)SourceRecoverPoint).RecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetailsInternal)SourceRecoverPoint).RecoveryPointTime = value ?? default(global::System.DateTime); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTask[] _subTask; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IJobSubTask[] SubTask { get => this._subTask; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask[] SubTask { get => this._subTask; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails _targetRecoverPoint; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRestoreJobRecoveryPointDetails TargetRecoverPoint { get => (this._targetRecoverPoint = this._targetRecoverPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreJobRecoveryPointDetails()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails TargetRecoverPoint { get => (this._targetRecoverPoint = this._targetRecoverPoint ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreJobRecoveryPointDetails()); } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string TargetRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetailsInternal)TargetRecoverPoint).RecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetailsInternal)TargetRecoverPoint).RecoveryPointId = value ?? null; } + public string TargetRecoverPointRecoveryPointId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetailsInternal)TargetRecoverPoint).RecoveryPointId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRestoreJobRecoveryPointDetailsInternal)TargetRecoverPoint).RecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetailsInternal)TargetRecoverPoint).RecoveryPointTime = value ?? default(global::System.DateTime); } + public global::System.DateTime? TargetRecoverPointRecoveryPointTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetailsInternal)TargetRecoverPoint).RecoveryPointTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetailsInternal)TargetRecoverPoint).RecoveryPointTime = value ?? default(global::System.DateTime); } /// Creates an new instance. public JobExtendedInfo() @@ -108,8 +108,8 @@ public partial interface IJobExtendedInfo : ReadOnly = false, Description = @"Job's Additional Details", SerializedName = @"additionalDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoAdditionalDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoAdditionalDetails AdditionalDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoAdditionalDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoAdditionalDetails AdditionalDetail { get; set; } /// State of the Backup Instance [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -156,8 +156,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.Api20220501.IJobSubTask) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTask[] SubTask { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask[] SubTask { get; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -181,7 +181,7 @@ internal partial interface IJobExtendedInfoInternal { /// Job's Additional Details - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoAdditionalDetails AdditionalDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoAdditionalDetails AdditionalDetail { get; set; } /// State of the Backup Instance string BackupInstanceState { get; set; } /// Number of bytes transferred @@ -189,15 +189,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.Api20220501.IRestoreJobRecoveryPointDetails SourceRecoverPoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IJobSubTask[] SubTask { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask[] SubTask { get; set; } /// Details of the Target Recovery Point - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails TargetRecoverPoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails TargetRecoverPoint { get; set; } string TargetRecoverPointRecoveryPointId { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfo.json.cs b/src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfo.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfo.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfo.json.cs index c74d85fe8794..0096073a32ad 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.IJobExtendedInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -77,13 +77,13 @@ internal JobExtendedInfo(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runti { return; } - {_sourceRecoverPoint = If( json?.PropertyT("sourceRecoverPoint"), out var __jsonSourceRecoverPoint) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreJobRecoveryPointDetails.FromJson(__jsonSourceRecoverPoint) : SourceRecoverPoint;} - {_targetRecoverPoint = If( json?.PropertyT("targetRecoverPoint"), out var __jsonTargetRecoverPoint) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreJobRecoveryPointDetails.FromJson(__jsonTargetRecoverPoint) : TargetRecoverPoint;} - {_additionalDetail = If( json?.PropertyT("additionalDetails"), out var __jsonAdditionalDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobExtendedInfoAdditionalDetails.FromJson(__jsonAdditionalDetails) : AdditionalDetail;} + {_sourceRecoverPoint = If( json?.PropertyT("sourceRecoverPoint"), out var __jsonSourceRecoverPoint) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreJobRecoveryPointDetails.FromJson(__jsonSourceRecoverPoint) : SourceRecoverPoint;} + {_targetRecoverPoint = If( json?.PropertyT("targetRecoverPoint"), out var __jsonTargetRecoverPoint) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreJobRecoveryPointDetails.FromJson(__jsonTargetRecoverPoint) : TargetRecoverPoint;} + {_additionalDetail = If( json?.PropertyT("additionalDetails"), out var __jsonAdditionalDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IJobSubTask) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IJobSubTask) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobSubTask.FromJson(__u) )) ))() : null : SubTask;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfoAdditionalDetails.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfoAdditionalDetails.PowerShell.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfoAdditionalDetails.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfoAdditionalDetails.PowerShell.cs index 4b5e4fd8ec97..12d7fa4f2a29 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfoAdditionalDetails.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfoAdditionalDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,29 +55,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.Api20220501.IJobExtendedInfoAdditionalDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IJobExtendedInfoAdditionalDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoAdditionalDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobExtendedInfoAdditionalDetails(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoAdditionalDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -109,7 +109,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/Api20220501/JobExtendedInfoAdditionalDetails.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfoAdditionalDetails.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfoAdditionalDetails.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfoAdditionalDetails.TypeConverter.cs index 1996e928573e..93ce8a9d202e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfoAdditionalDetails.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfoAdditionalDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoAdditionalDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoAdditionalDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoAdditionalDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoAdditionalDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfoAdditionalDetails.cs b/src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfoAdditionalDetails.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfoAdditionalDetails.cs rename to src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfoAdditionalDetails.cs index 263b4600be47..78ac62dbf23a 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfoAdditionalDetails.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfoAdditionalDetails.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Job's Additional Details public partial class JobExtendedInfoAdditionalDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoAdditionalDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoAdditionalDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoAdditionalDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoAdditionalDetailsInternal { /// Creates an new instance. diff --git a/src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfoAdditionalDetails.dictionary.cs b/src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfoAdditionalDetails.dictionary.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfoAdditionalDetails.dictionary.cs rename to src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfoAdditionalDetails.dictionary.cs index 436d9f1e8419..661dda37fdbd 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfoAdditionalDetails.dictionary.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfoAdditionalDetails.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobExtendedInfoAdditionalDetails source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobExtendedInfoAdditionalDetails source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfoAdditionalDetails.json.cs b/src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfoAdditionalDetails.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfoAdditionalDetails.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfoAdditionalDetails.json.cs index 4fad60ea49cf..7c8d4b954a57 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/JobExtendedInfoAdditionalDetails.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/JobExtendedInfoAdditionalDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.IJobExtendedInfoAdditionalDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoAdditionalDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoAdditionalDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobExtendedInfoAdditionalDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobExtendedInfoAdditionalDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/JobSubTask.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/JobSubTask.PowerShell.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20220501/JobSubTask.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/JobSubTask.PowerShell.cs index eaa3df98ee82..e78a48b9c927 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/JobSubTask.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/JobSubTask.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,27 +55,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.Api20220501.IJobSubTask DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IJobSubTask DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobSubTask(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTask FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -103,29 +103,29 @@ internal JobSubTask(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("AdditionalDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskInternal)this).AdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskAdditionalDetails) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskInternal)this).AdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobSubTaskAdditionalDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskInternal)this).AdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskAdditionalDetails) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskInternal)this).AdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobSubTaskAdditionalDetailsTypeConverter.ConvertFrom); } if (content.Contains("TaskId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskInternal)this).TaskId = (int) content.GetValueForProperty("TaskId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskInternal)this).TaskId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskInternal)this).TaskId = (int) content.GetValueForProperty("TaskId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskInternal)this).TaskId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("TaskName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskInternal)this).TaskName = (string) content.GetValueForProperty("TaskName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskInternal)this).TaskName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskInternal)this).TaskName = (string) content.GetValueForProperty("TaskName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskInternal)this).TaskName, global::System.Convert.ToString); } if (content.Contains("TaskProgress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskInternal)this).TaskProgress = (string) content.GetValueForProperty("TaskProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskInternal)this).TaskProgress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskInternal)this).TaskProgress = (string) content.GetValueForProperty("TaskProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskInternal)this).TaskProgress, global::System.Convert.ToString); } if (content.Contains("TaskStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskInternal)this).TaskStatus = (string) content.GetValueForProperty("TaskStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskInternal)this).TaskStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskInternal)this).TaskStatus = (string) content.GetValueForProperty("TaskStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -140,23 +140,23 @@ internal JobSubTask(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("AdditionalDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskInternal)this).AdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskAdditionalDetails) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskInternal)this).AdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobSubTaskAdditionalDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskInternal)this).AdditionalDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskAdditionalDetails) content.GetValueForProperty("AdditionalDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskInternal)this).AdditionalDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobSubTaskAdditionalDetailsTypeConverter.ConvertFrom); } if (content.Contains("TaskId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskInternal)this).TaskId = (int) content.GetValueForProperty("TaskId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskInternal)this).TaskId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskInternal)this).TaskId = (int) content.GetValueForProperty("TaskId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskInternal)this).TaskId, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("TaskName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskInternal)this).TaskName = (string) content.GetValueForProperty("TaskName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskInternal)this).TaskName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskInternal)this).TaskName = (string) content.GetValueForProperty("TaskName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskInternal)this).TaskName, global::System.Convert.ToString); } if (content.Contains("TaskProgress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskInternal)this).TaskProgress = (string) content.GetValueForProperty("TaskProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskInternal)this).TaskProgress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskInternal)this).TaskProgress = (string) content.GetValueForProperty("TaskProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskInternal)this).TaskProgress, global::System.Convert.ToString); } if (content.Contains("TaskStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskInternal)this).TaskStatus = (string) content.GetValueForProperty("TaskStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskInternal)this).TaskStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskInternal)this).TaskStatus = (string) content.GetValueForProperty("TaskStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskInternal)this).TaskStatus, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/JobSubTask.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/JobSubTask.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/JobSubTask.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/JobSubTask.TypeConverter.cs index a1c6e3630880..df34ad69e6e8 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/JobSubTask.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/JobSubTask.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTask ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTask).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/JobSubTask.cs b/src/DataProtection/generated/api/Models/Api20221201/JobSubTask.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20220501/JobSubTask.cs rename to src/DataProtection/generated/api/Models/Api20221201/JobSubTask.cs index 2894d42eafe4..14ead84468d1 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/JobSubTask.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/JobSubTask.cs @@ -3,25 +3,25 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IJobSubTask, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskAdditionalDetails _additionalDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IJobSubTaskAdditionalDetails AdditionalDetail { get => (this._additionalDetail = this._additionalDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobSubTaskAdditionalDetails()); set => this._additionalDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskAdditionalDetails AdditionalDetail { get => (this._additionalDetail = this._additionalDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobSubTaskAdditionalDetails()); set => this._additionalDetail = value; } /// Internal Acessors for TaskProgress - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskInternal.TaskProgress { get => this._taskProgress; set { {_taskProgress = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskInternal.TaskProgress { get => this._taskProgress; set { {_taskProgress = value;} } } /// Backing field for property. private int _taskId; @@ -67,8 +67,8 @@ public partial interface IJobSubTask : ReadOnly = false, Description = @"Additional details of Sub Tasks", SerializedName = @"additionalDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskAdditionalDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskAdditionalDetails AdditionalDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskAdditionalDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskAdditionalDetails AdditionalDetail { get; set; } /// Task Id of the Sub Task [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, @@ -108,7 +108,7 @@ internal partial interface IJobSubTaskInternal { /// Additional details of Sub Tasks - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskAdditionalDetails AdditionalDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/JobSubTask.json.cs b/src/DataProtection/generated/api/Models/Api20221201/JobSubTask.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/JobSubTask.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/JobSubTask.json.cs index d6ccdde6c067..56039147b4d9 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/JobSubTask.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/JobSubTask.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.IJobSubTask. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTask. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTask. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTask FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -77,7 +77,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.Api20220501.JobSubTaskAdditionalDetails.FromJson(__jsonAdditionalDetails) : AdditionalDetail;} + {_additionalDetail = If( json?.PropertyT("additionalDetails"), out var __jsonAdditionalDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/JobSubTaskAdditionalDetails.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/JobSubTaskAdditionalDetails.PowerShell.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20220501/JobSubTaskAdditionalDetails.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/JobSubTaskAdditionalDetails.PowerShell.cs index 36d40571e758..c7efbba86b04 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/JobSubTaskAdditionalDetails.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/JobSubTaskAdditionalDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,29 +55,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.Api20220501.IJobSubTaskAdditionalDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IJobSubTaskAdditionalDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskAdditionalDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobSubTaskAdditionalDetails(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskAdditionalDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -109,7 +109,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/Api20220501/JobSubTaskAdditionalDetails.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/JobSubTaskAdditionalDetails.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/JobSubTaskAdditionalDetails.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/JobSubTaskAdditionalDetails.TypeConverter.cs index 20e151a8797f..d67316de07d7 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/JobSubTaskAdditionalDetails.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/JobSubTaskAdditionalDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IJobSubTaskAdditionalDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskAdditionalDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskAdditionalDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskAdditionalDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/JobSubTaskAdditionalDetails.cs b/src/DataProtection/generated/api/Models/Api20221201/JobSubTaskAdditionalDetails.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20220501/JobSubTaskAdditionalDetails.cs rename to src/DataProtection/generated/api/Models/Api20221201/JobSubTaskAdditionalDetails.cs index 13f17f8a2ceb..f46cd6cebc91 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/JobSubTaskAdditionalDetails.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/JobSubTaskAdditionalDetails.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Additional details of Sub Tasks public partial class JobSubTaskAdditionalDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskAdditionalDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskAdditionalDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskAdditionalDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskAdditionalDetailsInternal { /// Creates an new instance. diff --git a/src/DataProtection/generated/api/Models/Api20220501/JobSubTaskAdditionalDetails.dictionary.cs b/src/DataProtection/generated/api/Models/Api20221201/JobSubTaskAdditionalDetails.dictionary.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/JobSubTaskAdditionalDetails.dictionary.cs rename to src/DataProtection/generated/api/Models/Api20221201/JobSubTaskAdditionalDetails.dictionary.cs index 3c6edd33e70d..e4fbdf66f762 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/JobSubTaskAdditionalDetails.dictionary.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/JobSubTaskAdditionalDetails.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.JobSubTaskAdditionalDetails source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.JobSubTaskAdditionalDetails source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/JobSubTaskAdditionalDetails.json.cs b/src/DataProtection/generated/api/Models/Api20221201/JobSubTaskAdditionalDetails.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/JobSubTaskAdditionalDetails.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/JobSubTaskAdditionalDetails.json.cs index 8f2b1aefaa4e..edddb25eaabe 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/JobSubTaskAdditionalDetails.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/JobSubTaskAdditionalDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.IJobSubTaskAdditionalDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskAdditionalDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskAdditionalDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IJobSubTaskAdditionalDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IJobSubTaskAdditionalDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/KubernetesPvRestoreCriteria.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/KubernetesPvRestoreCriteria.PowerShell.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20220501/KubernetesPvRestoreCriteria.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/KubernetesPvRestoreCriteria.PowerShell.cs index 54e7fa3f33c2..2e2a8c67c6bd 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/KubernetesPvRestoreCriteria.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/KubernetesPvRestoreCriteria.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class KubernetesPvRestoreCriteria partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool 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.Api20220501.IKubernetesPvRestoreCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesPvRestoreCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new KubernetesPvRestoreCriteria(content); } /// - /// 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.Api20220501.IKubernetesPvRestoreCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesPvRestoreCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new KubernetesPvRestoreCriteria(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesPvRestoreCriteria FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesPvRestoreCriteria 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. @@ -105,21 +105,21 @@ internal KubernetesPvRestoreCriteria(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesPvRestoreCriteriaInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesPvRestoreCriteriaInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesPvRestoreCriteriaInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesPvRestoreCriteriaInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("StorageClassName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesPvRestoreCriteriaInternal)this).StorageClassName = (string) content.GetValueForProperty("StorageClassName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesPvRestoreCriteriaInternal)this).StorageClassName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesPvRestoreCriteriaInternal)this).StorageClassName = (string) content.GetValueForProperty("StorageClassName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesPvRestoreCriteriaInternal)this).StorageClassName, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal)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. @@ -134,15 +134,15 @@ internal KubernetesPvRestoreCriteria(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesPvRestoreCriteriaInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesPvRestoreCriteriaInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesPvRestoreCriteriaInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesPvRestoreCriteriaInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("StorageClassName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesPvRestoreCriteriaInternal)this).StorageClassName = (string) content.GetValueForProperty("StorageClassName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesPvRestoreCriteriaInternal)this).StorageClassName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesPvRestoreCriteriaInternal)this).StorageClassName = (string) content.GetValueForProperty("StorageClassName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesPvRestoreCriteriaInternal)this).StorageClassName, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/KubernetesPvRestoreCriteria.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/KubernetesPvRestoreCriteria.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/KubernetesPvRestoreCriteria.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/KubernetesPvRestoreCriteria.TypeConverter.cs index 60ec20903a2d..1a5f7235d253 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/KubernetesPvRestoreCriteria.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/KubernetesPvRestoreCriteria.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IKubernetesPvRestoreCriteria ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesPvRestoreCriteria ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesPvRestoreCriteria).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesPvRestoreCriteria).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/KubernetesPvRestoreCriteria.cs b/src/DataProtection/generated/api/Models/Api20221201/KubernetesPvRestoreCriteria.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20220501/KubernetesPvRestoreCriteria.cs rename to src/DataProtection/generated/api/Models/Api20221201/KubernetesPvRestoreCriteria.cs index 6b3de983aec5..2c0a5b0be459 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/KubernetesPvRestoreCriteria.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/KubernetesPvRestoreCriteria.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Item Level kubernetes persistent volume target info for restore operation public partial class KubernetesPvRestoreCriteria : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesPvRestoreCriteria, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesPvRestoreCriteriaInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesPvRestoreCriteria, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesPvRestoreCriteriaInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteria __itemLevelRestoreCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ItemLevelRestoreCriteria(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteria __itemLevelRestoreCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ItemLevelRestoreCriteria(); /// Backing field for property. private string _name; @@ -28,7 +28,7 @@ public partial class KubernetesPvRestoreCriteria : /// 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.Api20220501.IItemLevelRestoreCriteriaInternal)__itemLevelRestoreCriteria).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteriaInternal)__itemLevelRestoreCriteria).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal)__itemLevelRestoreCriteria).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal)__itemLevelRestoreCriteria).ObjectType = value ; } /// Backing field for property. private string _storageClassName; @@ -58,7 +58,7 @@ public KubernetesPvRestoreCriteria() /// Item Level kubernetes persistent volume target info for restore operation public partial interface IKubernetesPvRestoreCriteria : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteria { /// Selected persistent volume claim name [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -80,7 +80,7 @@ public partial interface IKubernetesPvRestoreCriteria : } /// Item Level kubernetes persistent volume target info for restore operation internal partial interface IKubernetesPvRestoreCriteriaInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteriaInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal { /// Selected persistent volume claim name string Name { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/KubernetesPvRestoreCriteria.json.cs b/src/DataProtection/generated/api/Models/Api20221201/KubernetesPvRestoreCriteria.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/KubernetesPvRestoreCriteria.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/KubernetesPvRestoreCriteria.json.cs index bcfcdf1e43dc..397a8d8fc9c0 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/KubernetesPvRestoreCriteria.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/KubernetesPvRestoreCriteria.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class KubernetesPvRestoreCriteria 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.Api20220501.IKubernetesPvRestoreCriteria. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesPvRestoreCriteria. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesPvRestoreCriteria. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesPvRestoreCriteria. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesPvRestoreCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesPvRestoreCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new KubernetesPvRestoreCriteria(json) : null; } @@ -77,7 +77,7 @@ internal KubernetesPvRestoreCriteria(Microsoft.Azure.PowerShell.Cmdlets.DataProt { return; } - __itemLevelRestoreCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ItemLevelRestoreCriteria(json); + __itemLevelRestoreCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ItemLevelRestoreCriteria(json); {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_storageClassName = If( json?.PropertyT("storageClassName"), out var __jsonStorageClassName) ? (string)__jsonStorageClassName : (string)StorageClassName;} AfterFromJson(json); diff --git a/src/DataProtection/generated/api/Models/Api20220501/KubernetesStorageClassRestoreCriteria.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/KubernetesStorageClassRestoreCriteria.PowerShell.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20220501/KubernetesStorageClassRestoreCriteria.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/KubernetesStorageClassRestoreCriteria.PowerShell.cs index 4cd8352dbda0..c4e9dfe4a100 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/KubernetesStorageClassRestoreCriteria.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/KubernetesStorageClassRestoreCriteria.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class KubernetesStorageClassRestoreCriteria partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool 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.Api20220501.IKubernetesStorageClassRestoreCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesStorageClassRestoreCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new KubernetesStorageClassRestoreCriteria(content); } /// - /// 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.Api20220501.IKubernetesStorageClassRestoreCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesStorageClassRestoreCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new KubernetesStorageClassRestoreCriteria(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesStorageClassRestoreCriteria FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesStorageClassRestoreCriteria 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. @@ -108,21 +108,21 @@ internal KubernetesStorageClassRestoreCriteria(global::System.Collections.IDicti // actually deserialize if (content.Contains("SelectedStorageClassName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesStorageClassRestoreCriteriaInternal)this).SelectedStorageClassName = (string) content.GetValueForProperty("SelectedStorageClassName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesStorageClassRestoreCriteriaInternal)this).SelectedStorageClassName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesStorageClassRestoreCriteriaInternal)this).SelectedStorageClassName = (string) content.GetValueForProperty("SelectedStorageClassName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesStorageClassRestoreCriteriaInternal)this).SelectedStorageClassName, global::System.Convert.ToString); } if (content.Contains("Provisioner")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesStorageClassRestoreCriteriaInternal)this).Provisioner = (string) content.GetValueForProperty("Provisioner",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesStorageClassRestoreCriteriaInternal)this).Provisioner, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesStorageClassRestoreCriteriaInternal)this).Provisioner = (string) content.GetValueForProperty("Provisioner",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesStorageClassRestoreCriteriaInternal)this).Provisioner, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal)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. @@ -137,15 +137,15 @@ internal KubernetesStorageClassRestoreCriteria(global::System.Management.Automat // actually deserialize if (content.Contains("SelectedStorageClassName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesStorageClassRestoreCriteriaInternal)this).SelectedStorageClassName = (string) content.GetValueForProperty("SelectedStorageClassName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesStorageClassRestoreCriteriaInternal)this).SelectedStorageClassName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesStorageClassRestoreCriteriaInternal)this).SelectedStorageClassName = (string) content.GetValueForProperty("SelectedStorageClassName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesStorageClassRestoreCriteriaInternal)this).SelectedStorageClassName, global::System.Convert.ToString); } if (content.Contains("Provisioner")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesStorageClassRestoreCriteriaInternal)this).Provisioner = (string) content.GetValueForProperty("Provisioner",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesStorageClassRestoreCriteriaInternal)this).Provisioner, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesStorageClassRestoreCriteriaInternal)this).Provisioner = (string) content.GetValueForProperty("Provisioner",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesStorageClassRestoreCriteriaInternal)this).Provisioner, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/KubernetesStorageClassRestoreCriteria.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/KubernetesStorageClassRestoreCriteria.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/KubernetesStorageClassRestoreCriteria.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/KubernetesStorageClassRestoreCriteria.TypeConverter.cs index 831fbcae322a..4340a8efd197 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/KubernetesStorageClassRestoreCriteria.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/KubernetesStorageClassRestoreCriteria.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -109,14 +109,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesStorageClassRestoreCriteria ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesStorageClassRestoreCriteria ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesStorageClassRestoreCriteria).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesStorageClassRestoreCriteria).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/KubernetesStorageClassRestoreCriteria.cs b/src/DataProtection/generated/api/Models/Api20221201/KubernetesStorageClassRestoreCriteria.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20220501/KubernetesStorageClassRestoreCriteria.cs rename to src/DataProtection/generated/api/Models/Api20221201/KubernetesStorageClassRestoreCriteria.cs index f4b930b6b4a6..daccd966705d 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/KubernetesStorageClassRestoreCriteria.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/KubernetesStorageClassRestoreCriteria.cs @@ -3,25 +3,25 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Item Level kubernetes storage class target info for restore operation public partial class KubernetesStorageClassRestoreCriteria : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesStorageClassRestoreCriteria, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesStorageClassRestoreCriteriaInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesStorageClassRestoreCriteria, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesStorageClassRestoreCriteriaInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteria __itemLevelRestoreCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ItemLevelRestoreCriteria(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteria __itemLevelRestoreCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ItemLevelRestoreCriteria(); /// 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.Api20220501.IItemLevelRestoreCriteriaInternal)__itemLevelRestoreCriteria).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteriaInternal)__itemLevelRestoreCriteria).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal)__itemLevelRestoreCriteria).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal)__itemLevelRestoreCriteria).ObjectType = value ; } /// Backing field for property. private string _provisioner; @@ -58,7 +58,7 @@ public KubernetesStorageClassRestoreCriteria() /// Item Level kubernetes storage class target info for restore operation public partial interface IKubernetesStorageClassRestoreCriteria : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteria { /// Provisioner of the storage class [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -80,7 +80,7 @@ public partial interface IKubernetesStorageClassRestoreCriteria : } /// Item Level kubernetes storage class target info for restore operation internal partial interface IKubernetesStorageClassRestoreCriteriaInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteriaInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal { /// Provisioner of the storage class string Provisioner { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/KubernetesStorageClassRestoreCriteria.json.cs b/src/DataProtection/generated/api/Models/Api20221201/KubernetesStorageClassRestoreCriteria.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/KubernetesStorageClassRestoreCriteria.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/KubernetesStorageClassRestoreCriteria.json.cs index a34dd720af1b..8216c0785f32 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/KubernetesStorageClassRestoreCriteria.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/KubernetesStorageClassRestoreCriteria.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class KubernetesStorageClassRestoreCriteria 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.Api20220501.IKubernetesStorageClassRestoreCriteria. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesStorageClassRestoreCriteria. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesStorageClassRestoreCriteria. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesStorageClassRestoreCriteria. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IKubernetesStorageClassRestoreCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IKubernetesStorageClassRestoreCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new KubernetesStorageClassRestoreCriteria(json) : null; } @@ -77,7 +77,7 @@ internal KubernetesStorageClassRestoreCriteria(Microsoft.Azure.PowerShell.Cmdlet { return; } - __itemLevelRestoreCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ItemLevelRestoreCriteria(json); + __itemLevelRestoreCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ItemLevelRestoreCriteria(json); {_selectedStorageClassName = If( json?.PropertyT("selectedStorageClassName"), out var __jsonSelectedStorageClassName) ? (string)__jsonSelectedStorageClassName : (string)SelectedStorageClassName;} {_provisioner = If( json?.PropertyT("provisioner"), out var __jsonProvisioner) ? (string)__jsonProvisioner : (string)Provisioner;} AfterFromJson(json); diff --git a/src/DataProtection/generated/api/Models/Api20220501/MonitoringSettings.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/MonitoringSettings.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20220501/MonitoringSettings.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/MonitoringSettings.PowerShell.cs index d349fce0bcae..b0197b2a0c9e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/MonitoringSettings.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/MonitoringSettings.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class MonitoringSettings partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool 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.Api20220501.IMonitoringSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new MonitoringSettings(content); } /// - /// 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.Api20220501.IMonitoringSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new MonitoringSettings(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings 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. @@ -103,17 +103,17 @@ internal MonitoringSettings(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("AzureMonitorAlertSetting")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettingsInternal)this).AzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings) content.GetValueForProperty("AzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettingsInternal)this).AzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettingsInternal)this).AzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings) content.GetValueForProperty("AzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettingsInternal)this).AzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); } if (content.Contains("AzureMonitorAlertsForAllJobFailure")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettingsInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettingsInternal)this).AzureMonitorAlertsForAllJobFailure, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettingsInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettingsInternal)this).AzureMonitorAlertsForAllJobFailure, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -128,11 +128,11 @@ internal MonitoringSettings(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("AzureMonitorAlertSetting")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettingsInternal)this).AzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings) content.GetValueForProperty("AzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettingsInternal)this).AzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettingsInternal)this).AzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings) content.GetValueForProperty("AzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettingsInternal)this).AzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); } if (content.Contains("AzureMonitorAlertsForAllJobFailure")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettingsInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettingsInternal)this).AzureMonitorAlertsForAllJobFailure, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettingsInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettingsInternal)this).AzureMonitorAlertsForAllJobFailure, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/MonitoringSettings.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/MonitoringSettings.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/MonitoringSettings.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/MonitoringSettings.TypeConverter.cs index 063aec1a953c..4d2553375455 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/MonitoringSettings.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/MonitoringSettings.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IMonitoringSettings ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettings).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/MonitoringSettings.cs b/src/DataProtection/generated/api/Models/Api20221201/MonitoringSettings.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20220501/MonitoringSettings.cs rename to src/DataProtection/generated/api/Models/Api20221201/MonitoringSettings.cs index 1299db650538..970ba116098a 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/MonitoringSettings.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/MonitoringSettings.cs @@ -3,28 +3,28 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Monitoring Settings public partial class MonitoringSettings : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettings, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettingsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettingsInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings _azureMonitorAlertSetting; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings _azureMonitorAlertSetting; /// Settings for Azure Monitor based alerts [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings AzureMonitorAlertSetting { get => (this._azureMonitorAlertSetting = this._azureMonitorAlertSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureMonitorAlertSettings()); set => this._azureMonitorAlertSetting = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings AzureMonitorAlertSetting { get => (this._azureMonitorAlertSetting = this._azureMonitorAlertSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureMonitorAlertSettings()); set => this._azureMonitorAlertSetting = value; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettingsInternal)AzureMonitorAlertSetting).AlertsForAllJobFailure; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettingsInternal)AzureMonitorAlertSetting).AlertsForAllJobFailure = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettingsInternal)AzureMonitorAlertSetting).AlertsForAllJobFailure; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettingsInternal)AzureMonitorAlertSetting).AlertsForAllJobFailure = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState)""); } /// Internal Acessors for AzureMonitorAlertSetting - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettingsInternal.AzureMonitorAlertSetting { get => (this._azureMonitorAlertSetting = this._azureMonitorAlertSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureMonitorAlertSettings()); set { {_azureMonitorAlertSetting = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettingsInternal.AzureMonitorAlertSetting { get => (this._azureMonitorAlertSetting = this._azureMonitorAlertSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureMonitorAlertSettings()); set { {_azureMonitorAlertSetting = value;} } } /// Creates an new instance. public MonitoringSettings() @@ -50,7 +50,7 @@ internal partial interface IMonitoringSettingsInternal { /// Settings for Azure Monitor based alerts - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureMonitorAlertSettings AzureMonitorAlertSetting { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings AzureMonitorAlertSetting { get; set; } Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/MonitoringSettings.json.cs b/src/DataProtection/generated/api/Models/Api20221201/MonitoringSettings.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/MonitoringSettings.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/MonitoringSettings.json.cs index 6757d7b1d4f3..36e403f73dd2 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/MonitoringSettings.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/MonitoringSettings.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class MonitoringSettings 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.Api20220501.IMonitoringSettings. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettings. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IMonitoringSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new MonitoringSettings(json) : null; } @@ -77,7 +77,7 @@ internal MonitoringSettings(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Ru { return; } - {_azureMonitorAlertSetting = If( json?.PropertyT("azureMonitorAlertSettings"), out var __jsonAzureMonitorAlertSettings) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureMonitorAlertSettings.FromJson(__jsonAzureMonitorAlertSettings) : AzureMonitorAlertSetting;} + {_azureMonitorAlertSetting = If( json?.PropertyT("azureMonitorAlertSettings"), out var __jsonAzureMonitorAlertSettings) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureMonitorAlertSettings.FromJson(__jsonAzureMonitorAlertSettings) : AzureMonitorAlertSetting;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/OperationExtendedInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/OperationExtendedInfo.PowerShell.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20220501/OperationExtendedInfo.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/OperationExtendedInfo.PowerShell.cs index ba5769ad24ef..a6c83a3a2320 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/OperationExtendedInfo.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/OperationExtendedInfo.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,29 +55,29 @@ 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 . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationExtendedInfo(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -105,13 +105,13 @@ internal OperationExtendedInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfoInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfoInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfoInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -126,7 +126,7 @@ internal OperationExtendedInfo(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfoInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfoInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfoInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfoInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/OperationExtendedInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/OperationExtendedInfo.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/OperationExtendedInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/OperationExtendedInfo.TypeConverter.cs index fe15b11e1b47..75ed0c94fa4c 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/OperationExtendedInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/OperationExtendedInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IOperationExtendedInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/OperationExtendedInfo.cs b/src/DataProtection/generated/api/Models/Api20221201/OperationExtendedInfo.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/OperationExtendedInfo.cs rename to src/DataProtection/generated/api/Models/Api20221201/OperationExtendedInfo.cs index 9ab1667013b8..46702877f72c 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/OperationExtendedInfo.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/OperationExtendedInfo.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Operation Extended Info public partial class OperationExtendedInfo : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfoInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/OperationExtendedInfo.json.cs b/src/DataProtection/generated/api/Models/Api20221201/OperationExtendedInfo.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/OperationExtendedInfo.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/OperationExtendedInfo.json.cs index 56b490504767..00a3e716587d 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/OperationExtendedInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/OperationExtendedInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,15 +54,15 @@ 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.Api20220501.IOperationExtendedInfo. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfo interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfo. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfo 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.Api20220501.IOperationExtendedInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfo 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/Api20220501/OperationJobExtendedInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/OperationJobExtendedInfo.PowerShell.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20220501/OperationJobExtendedInfo.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/OperationJobExtendedInfo.PowerShell.cs index 77616d642bec..8109edb0c098 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/OperationJobExtendedInfo.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/OperationJobExtendedInfo.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,29 +55,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.Api20220501.IOperationJobExtendedInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IOperationJobExtendedInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationJobExtendedInfo(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -105,17 +105,17 @@ internal OperationJobExtendedInfo(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("JobId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfoInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfoInternal)this).JobId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfoInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfoInternal)this).JobId, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfoInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfoInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfoInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -130,11 +130,11 @@ internal OperationJobExtendedInfo(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("JobId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfoInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfoInternal)this).JobId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfoInternal)this).JobId = (string) content.GetValueForProperty("JobId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfoInternal)this).JobId, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfoInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfoInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfoInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfoInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/OperationJobExtendedInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/OperationJobExtendedInfo.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/OperationJobExtendedInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/OperationJobExtendedInfo.TypeConverter.cs index c58e2b5dfa98..cf7d6d019d54 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/OperationJobExtendedInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/OperationJobExtendedInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IOperationJobExtendedInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/OperationJobExtendedInfo.cs b/src/DataProtection/generated/api/Models/Api20221201/OperationJobExtendedInfo.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20220501/OperationJobExtendedInfo.cs rename to src/DataProtection/generated/api/Models/Api20221201/OperationJobExtendedInfo.cs index 3500d40b927f..d38d84b968a3 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/OperationJobExtendedInfo.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/OperationJobExtendedInfo.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Operation Job Extended Info public partial class OperationJobExtendedInfo : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfoInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfoInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfo __operationExtendedInfo = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.OperationExtendedInfo(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfo __operationExtendedInfo = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.OperationExtendedInfo(); /// Backing field for property. private string _jobId; @@ -30,7 +30,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.Api20220501.IOperationExtendedInfoInternal)__operationExtendedInfo).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfoInternal)__operationExtendedInfo).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfoInternal)__operationExtendedInfo).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfoInternal)__operationExtendedInfo).ObjectType = value ; } /// Creates an new instance. public OperationJobExtendedInfo() @@ -53,7 +53,7 @@ public OperationJobExtendedInfo() /// Operation Job Extended Info public partial interface IOperationJobExtendedInfo : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfo + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfo { /// Arm Id of the job created for this operation. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -67,7 +67,7 @@ public partial interface IOperationJobExtendedInfo : } /// Operation Job Extended Info internal partial interface IOperationJobExtendedInfoInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfoInternal { /// Arm Id of the job created for this operation. string JobId { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/OperationJobExtendedInfo.json.cs b/src/DataProtection/generated/api/Models/Api20221201/OperationJobExtendedInfo.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/OperationJobExtendedInfo.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/OperationJobExtendedInfo.json.cs index df61ba2db8ee..426b753f3434 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/OperationJobExtendedInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/OperationJobExtendedInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.IOperationJobExtendedInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -77,7 +77,7 @@ internal OperationJobExtendedInfo(Microsoft.Azure.PowerShell.Cmdlets.DataProtect { return; } - __operationExtendedInfo = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.OperationExtendedInfo(json); + __operationExtendedInfo = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.OperationExtendedInfo(json); {_jobId = If( json?.PropertyT("jobId"), out var __jsonJobId) ? (string)__jsonJobId : (string)JobId;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/OperationResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/OperationResource.PowerShell.cs similarity index 74% rename from src/DataProtection/generated/api/Models/Api20220501/OperationResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/OperationResource.PowerShell.cs index 610307726f25..a55817d6c095 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/OperationResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/OperationResource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class OperationResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool 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.Api20220501.IOperationResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OperationResource(content); } /// - /// 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.Api20220501.IOperationResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationResource(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResource 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. @@ -103,61 +103,61 @@ internal OperationResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ErrorTypeConverter.ConvertFrom); } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfo) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.OperationExtendedInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfo) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.OperationExtendedInfoTypeConverter.ConvertFrom); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IOperationResourceInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IOperationResourceInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Status, global::System.Convert.ToString); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)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. @@ -172,55 +172,55 @@ internal OperationResource(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ErrorTypeConverter.ConvertFrom); } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfo) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.OperationExtendedInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfo) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.OperationExtendedInfoTypeConverter.ConvertFrom); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IOperationResourceInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IOperationResourceInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Status, global::System.Convert.ToString); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/OperationResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/OperationResource.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/OperationResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/OperationResource.TypeConverter.cs index fdcda6df8716..3f8bbcf03ea2 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/OperationResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/OperationResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IOperationResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/OperationResource.cs b/src/DataProtection/generated/api/Models/Api20221201/OperationResource.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20220501/OperationResource.cs rename to src/DataProtection/generated/api/Models/Api20221201/OperationResource.cs index ef2ea09d5e52..53494bdb1a65 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/OperationResource.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/OperationResource.cs @@ -3,27 +3,27 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Operation Resource public partial class OperationResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)Error).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IErrorInternal)Error).Code; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)Error).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)Error).Detail; } /// Backing field for property. private global::System.DateTime? _endTime; @@ -33,7 +33,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.Api20220501.IError _error; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError _error; /// /// Required if status == failed or status == canceled. This is the OData v4 error format, used by the RPC and will go into @@ -41,7 +41,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.Api20220501.IError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.Error()); set => this._error = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.Error()); set => this._error = value; } /// Backing field for property. private string _id; @@ -52,28 +52,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.Api20220501.IErrorInternal)Error).Message; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)Error).Message; } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)Error).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)Error).AdditionalInfo = value; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)Error).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)Error).Code = value; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)Error).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)Error).Detail = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.Error()); set { {_error = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.Error()); set { {_error = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)Error).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)Error).Message = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfo Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.OperationExtendedInfo()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfo Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.OperationExtendedInfo()); set { {_property = value;} } } /// Internal Acessors for Target - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResourceInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorInternal)Error).Target = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResourceInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)Error).Target = value; } /// Backing field for property. private string _name; @@ -88,14 +88,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.Api20220501.IOperationExtendedInfoInternal)Property).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfoInternal)Property).ObjectType = value ?? null; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfoInternal)Property).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfoInternal)Property).ObjectType = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfo _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IOperationExtendedInfo Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.OperationExtendedInfo()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfo Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.OperationExtendedInfo()); set => this._property = value; } /// Backing field for property. private global::System.DateTime? _startTime; @@ -112,7 +112,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.Api20220501.IErrorInternal)Error).Target; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorInternal)Error).Target; } /// Creates an new instance. public OperationResource() @@ -130,8 +130,8 @@ public partial interface IOperationResource : ReadOnly = true, Description = @"The error additional info.", SerializedName = @"additionalInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfo[] AdditionalInfo { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo[] AdditionalInfo { get; } /// The error code. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -146,8 +146,8 @@ public partial interface IOperationResource : ReadOnly = true, Description = @"The error details.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError[] Detail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError[] Detail { get; } /// End time of the operation [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -223,11 +223,11 @@ internal partial interface IOperationResourceInternal { /// The error additional info. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IErrorAdditionalInfo[] AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IErrorAdditionalInfo[] AdditionalInfo { get; set; } /// The error code. string Code { get; set; } /// The error details. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IError[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError[] Detail { get; set; } /// End time of the operation global::System.DateTime? EndTime { get; set; } /// @@ -235,7 +235,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.Api20220501.IError Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IError Error { get; set; } /// It should match what is used to GET the operation result string Id { get; set; } /// The error message. @@ -249,7 +249,7 @@ internal partial interface IOperationResourceInternal /// string ObjectType { get; set; } /// End time of the operation - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationExtendedInfo Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationExtendedInfo Property { get; set; } /// Start time of the operation global::System.DateTime? StartTime { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/OperationResource.json.cs b/src/DataProtection/generated/api/Models/Api20221201/OperationResource.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/OperationResource.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/OperationResource.json.cs index ef366ee8092c..7c244803723b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/OperationResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/OperationResource.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.IOperationResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -77,8 +77,8 @@ internal OperationResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Run { return; } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.Error.FromJson(__jsonError) : Error;} - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.OperationExtendedInfo.FromJson(__jsonProperties) : Property;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.Error.FromJson(__jsonError) : Error;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20221201/PatchBackupVaultInput.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/PatchBackupVaultInput.PowerShell.cs new file mode 100644 index 000000000000..ff29c0dde2d2 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/PatchBackupVaultInput.PowerShell.cs @@ -0,0 +1,234 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Backup Vault Contract for Patch Backup Vault API. + [System.ComponentModel.TypeConverter(typeof(PatchBackupVaultInputTypeConverter))] + public partial class PatchBackupVaultInput + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes 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.Api20221201.IPatchBackupVaultInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new PatchBackupVaultInput(content); + } + + /// + /// Deserializes a 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.Api20221201.IPatchBackupVaultInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new PatchBackupVaultInput(content); + } + + /// + /// Creates a new instance of , deserializing the content from a 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.Api20221201.IPatchBackupVaultInput 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 PatchBackupVaultInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MonitoringSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).MonitoringSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings) content.GetValueForProperty("MonitoringSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).MonitoringSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.MonitoringSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("SecuritySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).SecuritySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettings) content.GetValueForProperty("SecuritySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).SecuritySetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecuritySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FeatureSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).FeatureSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings) content.GetValueForProperty("FeatureSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).FeatureSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.FeatureSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("SecuritySettingImmutabilitySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).SecuritySettingImmutabilitySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings) content.GetValueForProperty("SecuritySettingImmutabilitySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).SecuritySettingImmutabilitySetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ImmutabilitySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("MonitoringSettingAzureMonitorAlertSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).MonitoringSettingAzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings) content.GetValueForProperty("MonitoringSettingAzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).MonitoringSettingAzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("SoftDeleteSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).SoftDeleteSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings) content.GetValueForProperty("SoftDeleteSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).SoftDeleteSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SoftDeleteSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FeatureSettingCrossSubscriptionRestoreSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).FeatureSettingCrossSubscriptionRestoreSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings) content.GetValueForProperty("FeatureSettingCrossSubscriptionRestoreSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).FeatureSettingCrossSubscriptionRestoreSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CrossSubscriptionRestoreSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("AzureMonitorAlertsForAllJobFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).AzureMonitorAlertsForAllJobFailure, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState.CreateFrom); + } + if (content.Contains("SoftDeleteState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).SoftDeleteState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState?) content.GetValueForProperty("SoftDeleteState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).SoftDeleteState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState.CreateFrom); + } + if (content.Contains("SoftDeleteRetentionDurationInDay")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).SoftDeleteRetentionDurationInDay = (double?) content.GetValueForProperty("SoftDeleteRetentionDurationInDay",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).SoftDeleteRetentionDurationInDay, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("ImmutabilityState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).ImmutabilityState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState?) content.GetValueForProperty("ImmutabilityState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).ImmutabilityState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState.CreateFrom); + } + if (content.Contains("CrossSubscriptionRestoreState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).CrossSubscriptionRestoreState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState?) content.GetValueForProperty("CrossSubscriptionRestoreState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).CrossSubscriptionRestoreState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal PatchBackupVaultInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MonitoringSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).MonitoringSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings) content.GetValueForProperty("MonitoringSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).MonitoringSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.MonitoringSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("SecuritySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).SecuritySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettings) content.GetValueForProperty("SecuritySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).SecuritySetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecuritySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FeatureSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).FeatureSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings) content.GetValueForProperty("FeatureSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).FeatureSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.FeatureSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("SecuritySettingImmutabilitySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).SecuritySettingImmutabilitySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings) content.GetValueForProperty("SecuritySettingImmutabilitySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).SecuritySettingImmutabilitySetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ImmutabilitySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("MonitoringSettingAzureMonitorAlertSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).MonitoringSettingAzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings) content.GetValueForProperty("MonitoringSettingAzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).MonitoringSettingAzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("SoftDeleteSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).SoftDeleteSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings) content.GetValueForProperty("SoftDeleteSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).SoftDeleteSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SoftDeleteSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FeatureSettingCrossSubscriptionRestoreSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).FeatureSettingCrossSubscriptionRestoreSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings) content.GetValueForProperty("FeatureSettingCrossSubscriptionRestoreSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).FeatureSettingCrossSubscriptionRestoreSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CrossSubscriptionRestoreSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("AzureMonitorAlertsForAllJobFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).AzureMonitorAlertsForAllJobFailure, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState.CreateFrom); + } + if (content.Contains("SoftDeleteState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).SoftDeleteState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState?) content.GetValueForProperty("SoftDeleteState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).SoftDeleteState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState.CreateFrom); + } + if (content.Contains("SoftDeleteRetentionDurationInDay")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).SoftDeleteRetentionDurationInDay = (double?) content.GetValueForProperty("SoftDeleteRetentionDurationInDay",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).SoftDeleteRetentionDurationInDay, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("ImmutabilityState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).ImmutabilityState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState?) content.GetValueForProperty("ImmutabilityState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).ImmutabilityState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState.CreateFrom); + } + if (content.Contains("CrossSubscriptionRestoreState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).CrossSubscriptionRestoreState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState?) content.GetValueForProperty("CrossSubscriptionRestoreState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)this).CrossSubscriptionRestoreState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Backup Vault Contract for Patch Backup Vault API. + [System.ComponentModel.TypeConverter(typeof(PatchBackupVaultInputTypeConverter))] + public partial interface IPatchBackupVaultInput + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/PatchBackupVaultInput.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/PatchBackupVaultInput.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/PatchBackupVaultInput.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/PatchBackupVaultInput.TypeConverter.cs index bf78a1b6d84d..29d04bb601ad 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/PatchBackupVaultInput.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/PatchBackupVaultInput.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IPatchBackupVaultInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20221201/PatchBackupVaultInput.cs b/src/DataProtection/generated/api/Models/Api20221201/PatchBackupVaultInput.cs new file mode 100644 index 000000000000..f2136aa1a397 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/PatchBackupVaultInput.cs @@ -0,0 +1,157 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Backup Vault Contract for Patch Backup Vault API. + public partial class PatchBackupVaultInput : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInput, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal + { + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettingsInternal)MonitoringSetting).AzureMonitorAlertsForAllJobFailure; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettingsInternal)MonitoringSetting).AzureMonitorAlertsForAllJobFailure = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState)""); } + + /// CrossSubscriptionRestore state + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState? CrossSubscriptionRestoreState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettingsInternal)FeatureSetting).CrossSubscriptionRestoreState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettingsInternal)FeatureSetting).CrossSubscriptionRestoreState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState)""); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings _featureSetting; + + /// Feature Settings + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings FeatureSetting { get => (this._featureSetting = this._featureSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.FeatureSettings()); set => this._featureSetting = value; } + + /// Immutability state + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState? ImmutabilityState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)SecuritySetting).ImmutabilityState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)SecuritySetting).ImmutabilityState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState)""); } + + /// Internal Acessors for FeatureSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal.FeatureSetting { get => (this._featureSetting = this._featureSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.FeatureSettings()); set { {_featureSetting = value;} } } + + /// Internal Acessors for FeatureSettingCrossSubscriptionRestoreSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal.FeatureSettingCrossSubscriptionRestoreSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettingsInternal)FeatureSetting).CrossSubscriptionRestoreSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettingsInternal)FeatureSetting).CrossSubscriptionRestoreSetting = value; } + + /// Internal Acessors for MonitoringSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal.MonitoringSetting { get => (this._monitoringSetting = this._monitoringSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.MonitoringSettings()); set { {_monitoringSetting = value;} } } + + /// Internal Acessors for MonitoringSettingAzureMonitorAlertSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal.MonitoringSettingAzureMonitorAlertSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettingsInternal)MonitoringSetting).AzureMonitorAlertSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettingsInternal)MonitoringSetting).AzureMonitorAlertSetting = value; } + + /// Internal Acessors for SecuritySetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal.SecuritySetting { get => (this._securitySetting = this._securitySetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecuritySettings()); set { {_securitySetting = value;} } } + + /// Internal Acessors for SecuritySettingImmutabilitySetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal.SecuritySettingImmutabilitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)SecuritySetting).ImmutabilitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)SecuritySetting).ImmutabilitySetting = value; } + + /// Internal Acessors for SoftDeleteSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal.SoftDeleteSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)SecuritySetting).SoftDeleteSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)SecuritySetting).SoftDeleteSetting = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings _monitoringSetting; + + /// Monitoring Settings + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings MonitoringSetting { get => (this._monitoringSetting = this._monitoringSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.MonitoringSettings()); set => this._monitoringSetting = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettings _securitySetting; + + /// Security Settings + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettings SecuritySetting { get => (this._securitySetting = this._securitySetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecuritySettings()); set => this._securitySetting = value; } + + /// Soft delete retention duration + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public double? SoftDeleteRetentionDurationInDay { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)SecuritySetting).SoftDeleteRetentionDurationInDay; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)SecuritySetting).SoftDeleteRetentionDurationInDay = value ?? default(double); } + + /// State of soft delete + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState? SoftDeleteState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)SecuritySetting).SoftDeleteState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)SecuritySetting).SoftDeleteState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState)""); } + + /// Creates an new instance. + public PatchBackupVaultInput() + { + + } + } + /// Backup Vault Contract for Patch Backup Vault API. + public partial interface IPatchBackupVaultInput : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable + { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"alertsForAllJobFailures", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { get; set; } + /// CrossSubscriptionRestore state + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"CrossSubscriptionRestore state", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState? CrossSubscriptionRestoreState { get; set; } + /// Immutability state + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Immutability state", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState? ImmutabilityState { get; set; } + /// Soft delete retention duration + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Soft delete retention duration", + SerializedName = @"retentionDurationInDays", + PossibleTypes = new [] { typeof(double) })] + double? SoftDeleteRetentionDurationInDay { get; set; } + /// State of soft delete + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"State of soft delete", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState? SoftDeleteState { get; set; } + + } + /// Backup Vault Contract for Patch Backup Vault API. + internal partial interface IPatchBackupVaultInputInternal + + { + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { get; set; } + /// CrossSubscriptionRestore state + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState? CrossSubscriptionRestoreState { get; set; } + /// Feature Settings + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings FeatureSetting { get; set; } + /// CrossSubscriptionRestore Settings + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings FeatureSettingCrossSubscriptionRestoreSetting { get; set; } + /// Immutability state + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState? ImmutabilityState { get; set; } + /// Monitoring Settings + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings MonitoringSetting { get; set; } + /// Settings for Azure Monitor based alerts + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings MonitoringSettingAzureMonitorAlertSetting { get; set; } + /// Security Settings + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettings SecuritySetting { get; set; } + /// Immutability Settings at vault level + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings SecuritySettingImmutabilitySetting { get; set; } + /// Soft delete retention duration + double? SoftDeleteRetentionDurationInDay { get; set; } + /// Soft delete related settings + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings SoftDeleteSetting { get; set; } + /// State of soft delete + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState? SoftDeleteState { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/PatchBackupVaultInput.json.cs b/src/DataProtection/generated/api/Models/Api20221201/PatchBackupVaultInput.json.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20220501/PatchBackupVaultInput.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/PatchBackupVaultInput.json.cs index 9d2c26593b25..b5cf17a4d1d5 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/PatchBackupVaultInput.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/PatchBackupVaultInput.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class PatchBackupVaultInput 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.Api20220501.IPatchBackupVaultInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchBackupVaultInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new PatchBackupVaultInput(json) : null; } @@ -77,7 +77,9 @@ internal PatchBackupVaultInput(Microsoft.Azure.PowerShell.Cmdlets.DataProtection { return; } - {_monitoringSetting = If( json?.PropertyT("monitoringSettings"), out var __jsonMonitoringSettings) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.MonitoringSettings.FromJson(__jsonMonitoringSettings) : MonitoringSetting;} + {_monitoringSetting = If( json?.PropertyT("monitoringSettings"), out var __jsonMonitoringSettings) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.MonitoringSettings.FromJson(__jsonMonitoringSettings) : MonitoringSetting;} + {_securitySetting = If( json?.PropertyT("securitySettings"), out var __jsonSecuritySettings) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecuritySettings.FromJson(__jsonSecuritySettings) : SecuritySetting;} + {_featureSetting = If( json?.PropertyT("featureSettings"), out var __jsonFeatureSettings) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.FeatureSettings.FromJson(__jsonFeatureSettings) : FeatureSetting;} AfterFromJson(json); } @@ -101,6 +103,8 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode T return container; } AddIf( null != this._monitoringSetting ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) this._monitoringSetting.ToJson(null,serializationMode) : null, "monitoringSettings" ,container.Add ); + AddIf( null != this._securitySetting ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) this._securitySetting.ToJson(null,serializationMode) : null, "securitySettings" ,container.Add ); + AddIf( null != this._featureSetting ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) this._featureSetting.ToJson(null,serializationMode) : null, "featureSettings" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/DataProtection/generated/api/Models/Api20221201/PatchResourceGuardInput.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceGuardInput.PowerShell.cs new file mode 100644 index 000000000000..ec77a853fd6d --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceGuardInput.PowerShell.cs @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by 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.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Patch Request content for Microsoft.DataProtection Resource Guard resources + [System.ComponentModel.TypeConverter(typeof(PatchResourceGuardInputTypeConverter))] + public partial class PatchResourceGuardInput + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes 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.Api20221201.IPatchResourceGuardInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new PatchResourceGuardInput(content); + } + + /// + /// Deserializes a 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.Api20221201.IPatchResourceGuardInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new PatchResourceGuardInput(content); + } + + /// + /// Creates a new instance of , deserializing the content from a 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.Api20221201.IPatchResourceGuardInput 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 PatchResourceGuardInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInputInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInputTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInputInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PatchResourceGuardInputTagsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal PatchResourceGuardInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInputInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInputTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInputInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PatchResourceGuardInputTagsTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Patch Request content for Microsoft.DataProtection Resource Guard resources + [System.ComponentModel.TypeConverter(typeof(PatchResourceGuardInputTypeConverter))] + public partial interface IPatchResourceGuardInput + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/PatchResourceGuardInput.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceGuardInput.TypeConverter.cs new file mode 100644 index 000000000000..44519936d1b7 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceGuardInput.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class PatchResourceGuardInputTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.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 into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInput ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInput).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return PatchResourceGuardInput.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return PatchResourceGuardInput.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return PatchResourceGuardInput.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/Api20221201/PatchResourceGuardInput.cs b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceGuardInput.cs new file mode 100644 index 000000000000..162b1cb7f0b3 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceGuardInput.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by 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.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Patch Request content for Microsoft.DataProtection Resource Guard resources + public partial class PatchResourceGuardInput : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInput, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInputInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInputTags _tag; + + /// Resource Guard tags. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInputTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PatchResourceGuardInputTags()); set => this._tag = value; } + + /// Creates an new instance. + public PatchResourceGuardInput() + { + + } + } + /// Patch Request content for Microsoft.DataProtection Resource Guard resources + public partial interface IPatchResourceGuardInput : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable + { + /// Resource Guard tags. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource Guard tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInputTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInputTags Tag { get; set; } + + } + /// Patch Request content for Microsoft.DataProtection Resource Guard resources + internal partial interface IPatchResourceGuardInputInternal + + { + /// Resource Guard tags. + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInputTags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/PatchResourceGuardInput.json.cs b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceGuardInput.json.cs new file mode 100644 index 000000000000..3347c6481760 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceGuardInput.json.cs @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Patch Request content for Microsoft.DataProtection Resource Guard resources + public partial class PatchResourceGuardInput + { + + /// + /// 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 serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.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.Api20221201.IPatchResourceGuardInput. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInput. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new PatchResourceGuardInput(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 PatchResourceGuardInput(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PatchResourceGuardInputTags.FromJson(__jsonTags) : Tag;} + 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 != this._tag ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) this._tag.ToJson(null,serializationMode) : null, "tags" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/PatchResourceGuardInputTags.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceGuardInputTags.PowerShell.cs new file mode 100644 index 000000000000..33ae34cea75c --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceGuardInputTags.PowerShell.cs @@ -0,0 +1,142 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by 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.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Resource Guard tags. + [System.ComponentModel.TypeConverter(typeof(PatchResourceGuardInputTagsTypeConverter))] + public partial class PatchResourceGuardInputTags + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes 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.Api20221201.IPatchResourceGuardInputTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new PatchResourceGuardInputTags(content); + } + + /// + /// Deserializes a 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.Api20221201.IPatchResourceGuardInputTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new PatchResourceGuardInputTags(content); + } + + /// + /// Creates a new instance of , deserializing the content from a 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.Api20221201.IPatchResourceGuardInputTags 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 PatchResourceGuardInputTags(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal PatchResourceGuardInputTags(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Resource Guard tags. + [System.ComponentModel.TypeConverter(typeof(PatchResourceGuardInputTagsTypeConverter))] + public partial interface IPatchResourceGuardInputTags + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/PatchResourceGuardInputTags.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceGuardInputTags.TypeConverter.cs new file mode 100644 index 000000000000..de8b95a217b1 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceGuardInputTags.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class PatchResourceGuardInputTagsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.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 into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInputTags ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInputTags).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return PatchResourceGuardInputTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return PatchResourceGuardInputTags.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return PatchResourceGuardInputTags.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/Api20221201/PatchResourceGuardInputTags.cs b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceGuardInputTags.cs new file mode 100644 index 000000000000..c1128a9f828a --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceGuardInputTags.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by 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.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Resource Guard tags. + public partial class PatchResourceGuardInputTags : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInputTags, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInputTagsInternal + { + + /// Creates an new instance. + public PatchResourceGuardInputTags() + { + + } + } + /// Resource Guard tags. + public partial interface IPatchResourceGuardInputTags : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IAssociativeArray + { + + } + /// Resource Guard tags. + internal partial interface IPatchResourceGuardInputTagsInternal + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/PatchResourceGuardInputTags.dictionary.cs b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceGuardInputTags.dictionary.cs new file mode 100644 index 000000000000..4640befb0f5e --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceGuardInputTags.dictionary.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + public partial class PatchResourceGuardInputTags : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PatchResourceGuardInputTags source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/PatchResourceGuardInputTags.json.cs b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceGuardInputTags.json.cs new file mode 100644 index 000000000000..78ca7639ecc9 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceGuardInputTags.json.cs @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by 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.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Resource Guard tags. + public partial class PatchResourceGuardInputTags + { + + /// + /// 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 serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.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.Api20221201.IPatchResourceGuardInputTags. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInputTags. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceGuardInputTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new PatchResourceGuardInputTags(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 PatchResourceGuardInputTags(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.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; + } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInput.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInput.PowerShell.cs new file mode 100644 index 000000000000..cbab5a503938 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInput.PowerShell.cs @@ -0,0 +1,282 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by 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.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Patch Request content for Microsoft.DataProtection resources + [System.ComponentModel.TypeConverter(typeof(PatchResourceRequestInputTypeConverter))] + public partial class PatchResourceRequestInput + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes 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.Api20221201.IPatchResourceRequestInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new PatchResourceRequestInput(content); + } + + /// + /// Deserializes a 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.Api20221201.IPatchResourceRequestInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new PatchResourceRequestInput(content); + } + + /// + /// Creates a new instance of , deserializing the content from a 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.Api20221201.IPatchResourceRequestInput 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 PatchResourceRequestInput(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppIdentityDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInput) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PatchBackupVaultInputTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PatchResourceRequestInputTagsTypeConverter.ConvertFrom); + } + if (content.Contains("MonitoringSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).MonitoringSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings) content.GetValueForProperty("MonitoringSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).MonitoringSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.MonitoringSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("SecuritySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).SecuritySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettings) content.GetValueForProperty("SecuritySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).SecuritySetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecuritySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FeatureSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).FeatureSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings) content.GetValueForProperty("FeatureSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).FeatureSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.FeatureSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).IdentityType, global::System.Convert.ToString); + } + if (content.Contains("SecuritySettingImmutabilitySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).SecuritySettingImmutabilitySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings) content.GetValueForProperty("SecuritySettingImmutabilitySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).SecuritySettingImmutabilitySetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ImmutabilitySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("MonitoringSettingAzureMonitorAlertSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).MonitoringSettingAzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings) content.GetValueForProperty("MonitoringSettingAzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).MonitoringSettingAzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("SoftDeleteSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).SoftDeleteSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings) content.GetValueForProperty("SoftDeleteSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).SoftDeleteSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SoftDeleteSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FeatureSettingCrossSubscriptionRestoreSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).FeatureSettingCrossSubscriptionRestoreSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings) content.GetValueForProperty("FeatureSettingCrossSubscriptionRestoreSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).FeatureSettingCrossSubscriptionRestoreSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CrossSubscriptionRestoreSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("AzureMonitorAlertsForAllJobFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).AzureMonitorAlertsForAllJobFailure, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState.CreateFrom); + } + if (content.Contains("SoftDeleteState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).SoftDeleteState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState?) content.GetValueForProperty("SoftDeleteState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).SoftDeleteState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState.CreateFrom); + } + if (content.Contains("SoftDeleteRetentionDurationInDay")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).SoftDeleteRetentionDurationInDay = (double?) content.GetValueForProperty("SoftDeleteRetentionDurationInDay",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).SoftDeleteRetentionDurationInDay, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("ImmutabilityState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).ImmutabilityState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState?) content.GetValueForProperty("ImmutabilityState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).ImmutabilityState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState.CreateFrom); + } + if (content.Contains("CrossSubscriptionRestoreState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).CrossSubscriptionRestoreState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState?) content.GetValueForProperty("CrossSubscriptionRestoreState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).CrossSubscriptionRestoreState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal PatchResourceRequestInput(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Identity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppIdentityDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInput) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PatchBackupVaultInputTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PatchResourceRequestInputTagsTypeConverter.ConvertFrom); + } + if (content.Contains("MonitoringSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).MonitoringSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings) content.GetValueForProperty("MonitoringSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).MonitoringSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.MonitoringSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("SecuritySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).SecuritySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettings) content.GetValueForProperty("SecuritySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).SecuritySetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecuritySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FeatureSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).FeatureSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings) content.GetValueForProperty("FeatureSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).FeatureSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.FeatureSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).IdentityType, global::System.Convert.ToString); + } + if (content.Contains("SecuritySettingImmutabilitySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).SecuritySettingImmutabilitySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings) content.GetValueForProperty("SecuritySettingImmutabilitySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).SecuritySettingImmutabilitySetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ImmutabilitySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("MonitoringSettingAzureMonitorAlertSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).MonitoringSettingAzureMonitorAlertSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings) content.GetValueForProperty("MonitoringSettingAzureMonitorAlertSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).MonitoringSettingAzureMonitorAlertSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureMonitorAlertSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("SoftDeleteSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).SoftDeleteSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings) content.GetValueForProperty("SoftDeleteSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).SoftDeleteSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SoftDeleteSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("FeatureSettingCrossSubscriptionRestoreSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).FeatureSettingCrossSubscriptionRestoreSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings) content.GetValueForProperty("FeatureSettingCrossSubscriptionRestoreSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).FeatureSettingCrossSubscriptionRestoreSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CrossSubscriptionRestoreSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("AzureMonitorAlertsForAllJobFailure")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).AzureMonitorAlertsForAllJobFailure = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState?) content.GetValueForProperty("AzureMonitorAlertsForAllJobFailure",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).AzureMonitorAlertsForAllJobFailure, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState.CreateFrom); + } + if (content.Contains("SoftDeleteState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).SoftDeleteState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState?) content.GetValueForProperty("SoftDeleteState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).SoftDeleteState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState.CreateFrom); + } + if (content.Contains("SoftDeleteRetentionDurationInDay")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).SoftDeleteRetentionDurationInDay = (double?) content.GetValueForProperty("SoftDeleteRetentionDurationInDay",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).SoftDeleteRetentionDurationInDay, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("ImmutabilityState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).ImmutabilityState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState?) content.GetValueForProperty("ImmutabilityState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).ImmutabilityState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState.CreateFrom); + } + if (content.Contains("CrossSubscriptionRestoreState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).CrossSubscriptionRestoreState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState?) content.GetValueForProperty("CrossSubscriptionRestoreState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal)this).CrossSubscriptionRestoreState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Patch Request content for Microsoft.DataProtection resources + [System.ComponentModel.TypeConverter(typeof(PatchResourceRequestInputTypeConverter))] + public partial interface IPatchResourceRequestInput + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInput.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInput.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInput.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInput.TypeConverter.cs index a8a6640f2fe1..c50380ae5603 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInput.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInput.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IPatchResourceRequestInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInput.cs b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInput.cs new file mode 100644 index 000000000000..12c61bf0d44b --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInput.cs @@ -0,0 +1,240 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + 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.Api20221201.IPatchResourceRequestInput, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal + { + + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)Property).AzureMonitorAlertsForAllJobFailure; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)Property).AzureMonitorAlertsForAllJobFailure = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState)""); } + + /// CrossSubscriptionRestore state + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState? CrossSubscriptionRestoreState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)Property).CrossSubscriptionRestoreState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)Property).CrossSubscriptionRestoreState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState)""); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20221201.IDppIdentityDetails Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20221201.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.Api20221201.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.Api20221201.IDppIdentityDetailsInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetailsInternal)Identity).Type = value ?? null; } + + /// Immutability state + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState? ImmutabilityState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)Property).ImmutabilityState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)Property).ImmutabilityState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState)""); } + + /// Internal Acessors for FeatureSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal.FeatureSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)Property).FeatureSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)Property).FeatureSetting = value; } + + /// Internal Acessors for FeatureSettingCrossSubscriptionRestoreSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal.FeatureSettingCrossSubscriptionRestoreSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)Property).FeatureSettingCrossSubscriptionRestoreSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)Property).FeatureSettingCrossSubscriptionRestoreSetting = value; } + + /// Internal Acessors for Identity + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetails Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppIdentityDetails()); set { {_identity = value;} } } + + /// Internal Acessors for IdentityPrincipalId + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetailsInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetailsInternal)Identity).PrincipalId = value; } + + /// Internal Acessors for IdentityTenantId + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetailsInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppIdentityDetailsInternal)Identity).TenantId = value; } + + /// Internal Acessors for MonitoringSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal.MonitoringSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)Property).MonitoringSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)Property).MonitoringSetting = value; } + + /// Internal Acessors for MonitoringSettingAzureMonitorAlertSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal.MonitoringSettingAzureMonitorAlertSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)Property).MonitoringSettingAzureMonitorAlertSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)Property).MonitoringSettingAzureMonitorAlertSetting = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInput Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PatchBackupVaultInput()); set { {_property = value;} } } + + /// Internal Acessors for SecuritySetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal.SecuritySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)Property).SecuritySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)Property).SecuritySetting = value; } + + /// Internal Acessors for SecuritySettingImmutabilitySetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal.SecuritySettingImmutabilitySetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)Property).SecuritySettingImmutabilitySetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)Property).SecuritySettingImmutabilitySetting = value; } + + /// Internal Acessors for SoftDeleteSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputInternal.SoftDeleteSetting { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)Property).SoftDeleteSetting; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)Property).SoftDeleteSetting = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInput _property; + + /// Resource properties. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInput Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PatchBackupVaultInput()); set => this._property = value; } + + /// Soft delete retention duration + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public double? SoftDeleteRetentionDurationInDay { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)Property).SoftDeleteRetentionDurationInDay; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)Property).SoftDeleteRetentionDurationInDay = value ?? default(double); } + + /// State of soft delete + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState? SoftDeleteState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)Property).SoftDeleteState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInputInternal)Property).SoftDeleteState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState)""); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputTags _tag; + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PatchResourceRequestInputTags()); set => this._tag = value; } + + /// Creates an new instance. + public PatchResourceRequestInput() + { + + } + } + /// Patch Request content for Microsoft.DataProtection resources + public partial interface IPatchResourceRequestInput : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable + { + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"", + SerializedName = @"alertsForAllJobFailures", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { get; set; } + /// CrossSubscriptionRestore state + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"CrossSubscriptionRestore state", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState? CrossSubscriptionRestoreState { 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. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The object ID of the service principal object for the managed identity that is used to grant role-based access to an Azure resource.", + SerializedName = @"principalId", + PossibleTypes = new [] { typeof(string) })] + string IdentityPrincipalId { get; } + /// + /// A Globally Unique Identifier (GUID) that represents the Azure AD tenant where the resource is now a member. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"A Globally Unique Identifier (GUID) that represents the Azure AD tenant where the resource is now a member.", + SerializedName = @"tenantId", + PossibleTypes = new [] { typeof(string) })] + string IdentityTenantId { get; } + /// The identityType which can be either SystemAssigned or None + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The identityType which can be either SystemAssigned or None", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string IdentityType { get; set; } + /// Immutability state + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Immutability state", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState? ImmutabilityState { get; set; } + /// Soft delete retention duration + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Soft delete retention duration", + SerializedName = @"retentionDurationInDays", + PossibleTypes = new [] { typeof(double) })] + double? SoftDeleteRetentionDurationInDay { get; set; } + /// State of soft delete + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"State of soft delete", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState? SoftDeleteState { get; set; } + /// 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.Api20221201.IPatchResourceRequestInputTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputTags Tag { get; set; } + + } + /// Patch Request content for Microsoft.DataProtection resources + internal partial interface IPatchResourceRequestInputInternal + + { + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState? AzureMonitorAlertsForAllJobFailure { get; set; } + /// CrossSubscriptionRestore state + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState? CrossSubscriptionRestoreState { get; set; } + /// Feature Settings + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IFeatureSettings FeatureSetting { get; set; } + /// CrossSubscriptionRestore Settings + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICrossSubscriptionRestoreSettings FeatureSettingCrossSubscriptionRestoreSetting { get; set; } + /// Input Managed Identity Details + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. + /// + string IdentityPrincipalId { get; set; } + /// + /// A Globally Unique Identifier (GUID) that represents the Azure AD tenant where the resource is now a member. + /// + string IdentityTenantId { get; set; } + /// The identityType which can be either SystemAssigned or None + string IdentityType { get; set; } + /// Immutability state + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState? ImmutabilityState { get; set; } + /// Monitoring Settings + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IMonitoringSettings MonitoringSetting { get; set; } + /// Settings for Azure Monitor based alerts + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureMonitorAlertSettings MonitoringSettingAzureMonitorAlertSetting { get; set; } + /// Resource properties. + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchBackupVaultInput Property { get; set; } + /// Security Settings + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettings SecuritySetting { get; set; } + /// Immutability Settings at vault level + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings SecuritySettingImmutabilitySetting { get; set; } + /// Soft delete retention duration + double? SoftDeleteRetentionDurationInDay { get; set; } + /// Soft delete related settings + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings SoftDeleteSetting { get; set; } + /// State of soft delete + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState? SoftDeleteState { get; set; } + /// Resource tags. + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputTags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInput.json.cs b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInput.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInput.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInput.json.cs index 87a81f68371a..e3a8f421b73b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInput.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInput.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.IPatchResourceRequestInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -77,9 +77,9 @@ internal PatchResourceRequestInput(Microsoft.Azure.PowerShell.Cmdlets.DataProtec { return; } - {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppIdentityDetails.FromJson(__jsonIdentity) : Identity;} - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.PatchBackupVaultInput.FromJson(__jsonProperties) : Property;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.PatchResourceRequestInputTags.FromJson(__jsonTags) : Tag;} + {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppIdentityDetails.FromJson(__jsonIdentity) : Identity;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PatchBackupVaultInput.FromJson(__jsonProperties) : Property;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PatchResourceRequestInputTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInputTags.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInputTags.PowerShell.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInputTags.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInputTags.PowerShell.cs index ef2fa250b138..ccf485b8b182 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInputTags.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInputTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,29 +55,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.Api20220501.IPatchResourceRequestInputTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IPatchResourceRequestInputTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new PatchResourceRequestInputTags(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -109,7 +109,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/Api20220501/PatchResourceRequestInputTags.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInputTags.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInputTags.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInputTags.TypeConverter.cs index d110e836c8b0..164dcac36cb0 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInputTags.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInputTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IPatchResourceRequestInputTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInputTags.cs b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInputTags.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInputTags.cs rename to src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInputTags.cs index b883b375a12b..e5e2ea88e683 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInputTags.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInputTags.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Resource tags. public partial class PatchResourceRequestInputTags : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputTags, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputTags, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputTagsInternal { /// Creates an new instance. diff --git a/src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInputTags.dictionary.cs b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInputTags.dictionary.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInputTags.dictionary.cs rename to src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInputTags.dictionary.cs index 3fbfba679661..b5952f1ecc16 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInputTags.dictionary.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInputTags.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.PatchResourceRequestInputTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PatchResourceRequestInputTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInputTags.json.cs b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInputTags.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInputTags.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInputTags.json.cs index 9cf5abe96eaa..a268391a9927 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/PatchResourceRequestInputTags.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/PatchResourceRequestInputTags.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.IPatchResourceRequestInputTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/PolicyInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/PolicyInfo.PowerShell.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20220501/PolicyInfo.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/PolicyInfo.PowerShell.cs index f1d32ca72b5c..43fafd330f12 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/PolicyInfo.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/PolicyInfo.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,27 +55,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.Api20220501.IPolicyInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IPolicyInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new PolicyInfo(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -103,21 +103,21 @@ internal PolicyInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("PolicyId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyInfoInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyInfoInternal)this).PolicyId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfoInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfoInternal)this).PolicyId, global::System.Convert.ToString); } if (content.Contains("PolicyVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyInfoInternal)this).PolicyVersion = (string) content.GetValueForProperty("PolicyVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyInfoInternal)this).PolicyVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfoInternal)this).PolicyVersion = (string) content.GetValueForProperty("PolicyVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfoInternal)this).PolicyVersion, global::System.Convert.ToString); } if (content.Contains("PolicyParameter")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyInfoInternal)this).PolicyParameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyParameters) content.GetValueForProperty("PolicyParameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyInfoInternal)this).PolicyParameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.PolicyParametersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfoInternal)this).PolicyParameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyParameters) content.GetValueForProperty("PolicyParameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfoInternal)this).PolicyParameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -132,15 +132,15 @@ internal PolicyInfo(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("PolicyId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyInfoInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyInfoInternal)this).PolicyId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfoInternal)this).PolicyId = (string) content.GetValueForProperty("PolicyId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfoInternal)this).PolicyId, global::System.Convert.ToString); } if (content.Contains("PolicyVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyInfoInternal)this).PolicyVersion = (string) content.GetValueForProperty("PolicyVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyInfoInternal)this).PolicyVersion, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfoInternal)this).PolicyVersion = (string) content.GetValueForProperty("PolicyVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfoInternal)this).PolicyVersion, global::System.Convert.ToString); } if (content.Contains("PolicyParameter")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyInfoInternal)this).PolicyParameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyParameters) content.GetValueForProperty("PolicyParameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyInfoInternal)this).PolicyParameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.PolicyParametersTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfoInternal)this).PolicyParameter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyParameters) content.GetValueForProperty("PolicyParameter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfoInternal)this).PolicyParameter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PolicyParametersTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/PolicyInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/PolicyInfo.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/PolicyInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/PolicyInfo.TypeConverter.cs index f591592a3310..2a64c7bf3970 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/PolicyInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/PolicyInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/PolicyInfo.cs b/src/DataProtection/generated/api/Models/Api20221201/PolicyInfo.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20220501/PolicyInfo.cs rename to src/DataProtection/generated/api/Models/Api20221201/PolicyInfo.cs index 280be3889efa..0cf6ec4baabb 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/PolicyInfo.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/PolicyInfo.cs @@ -3,18 +3,18 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Policy Info in backupInstance public partial class PolicyInfo : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfoInternal { /// Internal Acessors for PolicyVersion - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyInfoInternal.PolicyVersion { get => this._policyVersion; set { {_policyVersion = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfoInternal.PolicyVersion { get => this._policyVersion; set { {_policyVersion = value;} } } /// Backing field for property. private string _policyId; @@ -23,11 +23,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.Api20220501.IPolicyParameters _policyParameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IPolicyParameters PolicyParameter { get => (this._policyParameter = this._policyParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.PolicyParameters()); set => this._policyParameter = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyParameters PolicyParameter { get => (this._policyParameter = this._policyParameter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PolicyParameters()); set => this._policyParameter = value; } /// Backing field for property. private string _policyVersion; @@ -58,8 +58,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.Api20220501.IPolicyParameters) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyParameters PolicyParameter { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyParameters) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyParameters PolicyParameter { get; set; } [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -76,7 +76,7 @@ internal partial interface IPolicyInfoInternal { string PolicyId { get; set; } /// Policy parameters for the backup instance - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyParameters PolicyParameter { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyParameters PolicyParameter { get; set; } string PolicyVersion { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/PolicyInfo.json.cs b/src/DataProtection/generated/api/Models/Api20221201/PolicyInfo.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/PolicyInfo.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/PolicyInfo.json.cs index 3e5953c1aaca..26dc01fd59b7 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/PolicyInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/PolicyInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.IPolicyInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -79,7 +79,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.Api20220501.PolicyParameters.FromJson(__jsonPolicyParameters) : PolicyParameter;} + {_policyParameter = If( json?.PropertyT("policyParameters"), out var __jsonPolicyParameters) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PolicyParameters.FromJson(__jsonPolicyParameters) : PolicyParameter;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/PolicyParameters.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/PolicyParameters.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20220501/PolicyParameters.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/PolicyParameters.PowerShell.cs index 2d9b39b2c141..56664613c7e5 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/PolicyParameters.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/PolicyParameters.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,27 +55,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.Api20220501.IPolicyParameters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IPolicyParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyParameters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new PolicyParameters(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyParameters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -103,13 +103,13 @@ internal PolicyParameters(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DataStoreParametersList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyParametersInternal)this).DataStoreParametersList = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParameters[]) content.GetValueForProperty("DataStoreParametersList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyParametersInternal)this).DataStoreParametersList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DataStoreParametersTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyParametersInternal)this).DataStoreParametersList = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParameters[]) content.GetValueForProperty("DataStoreParametersList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyParametersInternal)this).DataStoreParametersList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -124,7 +124,7 @@ internal PolicyParameters(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("DataStoreParametersList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyParametersInternal)this).DataStoreParametersList = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParameters[]) content.GetValueForProperty("DataStoreParametersList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyParametersInternal)this).DataStoreParametersList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DataStoreParametersTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyParametersInternal)this).DataStoreParametersList = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParameters[]) content.GetValueForProperty("DataStoreParametersList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyParametersInternal)this).DataStoreParametersList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DataStoreParametersTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/PolicyParameters.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/PolicyParameters.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/PolicyParameters.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/PolicyParameters.TypeConverter.cs index 0cb33742444d..eebac027dca1 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/PolicyParameters.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/PolicyParameters.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IPolicyParameters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyParameters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyParameters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyParameters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/PolicyParameters.cs b/src/DataProtection/generated/api/Models/Api20221201/PolicyParameters.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20220501/PolicyParameters.cs rename to src/DataProtection/generated/api/Models/Api20221201/PolicyParameters.cs index ff2d2e2c091e..39acf15a57fa 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/PolicyParameters.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/PolicyParameters.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Parameters in Policy public partial class PolicyParameters : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyParameters, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyParametersInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyParameters, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyParametersInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParameters[] _dataStoreParametersList; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDataStoreParameters[] DataStoreParametersList { get => this._dataStoreParametersList; set => this._dataStoreParametersList = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParameters[] DataStoreParametersList { get => this._dataStoreParametersList; set => this._dataStoreParametersList = value; } /// Creates an new instance. public PolicyParameters() @@ -36,8 +36,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.Api20220501.IDataStoreParameters) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParameters[] DataStoreParametersList { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParameters) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParameters[] DataStoreParametersList { get; set; } } /// Parameters in Policy @@ -45,7 +45,7 @@ internal partial interface IPolicyParametersInternal { /// Gets or sets the DataStore Parameters - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreParameters[] DataStoreParametersList { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreParameters[] DataStoreParametersList { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/PolicyParameters.json.cs b/src/DataProtection/generated/api/Models/Api20221201/PolicyParameters.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/PolicyParameters.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/PolicyParameters.json.cs index 10f2bdee3532..dcdb093c0cc5 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/PolicyParameters.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/PolicyParameters.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.IPolicyParameters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyParameters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyParameters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPolicyParameters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPolicyParameters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -77,7 +77,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.Api20220501.IDataStoreParameters) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IDataStoreParameters) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DataStoreParameters.FromJson(__u) )) ))() : null : DataStoreParametersList;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ProtectionStatusDetails.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/ProtectionStatusDetails.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20220501/ProtectionStatusDetails.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/ProtectionStatusDetails.PowerShell.cs index 010b195d62cc..eb67b95759da 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ProtectionStatusDetails.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ProtectionStatusDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,29 +55,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.Api20220501.IProtectionStatusDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IProtectionStatusDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ProtectionStatusDetails(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IProtectionStatusDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -105,17 +105,17 @@ internal ProtectionStatusDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ErrorDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IProtectionStatusDetailsInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IProtectionStatusDetailsInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.UserFacingErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetailsInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetailsInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingErrorTypeConverter.ConvertFrom); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IProtectionStatusDetailsInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IProtectionStatusDetailsInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetailsInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -130,11 +130,11 @@ internal ProtectionStatusDetails(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("ErrorDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IProtectionStatusDetailsInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IProtectionStatusDetailsInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.UserFacingErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetailsInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetailsInternal)this).ErrorDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingErrorTypeConverter.ConvertFrom); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IProtectionStatusDetailsInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IProtectionStatusDetailsInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetailsInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetailsInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ProtectionStatusDetails.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/ProtectionStatusDetails.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ProtectionStatusDetails.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/ProtectionStatusDetails.TypeConverter.cs index 020a08d52747..1df06c4a44ec 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ProtectionStatusDetails.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ProtectionStatusDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IProtectionStatusDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IProtectionStatusDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ProtectionStatusDetails.cs b/src/DataProtection/generated/api/Models/Api20221201/ProtectionStatusDetails.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20220501/ProtectionStatusDetails.cs rename to src/DataProtection/generated/api/Models/Api20221201/ProtectionStatusDetails.cs index 12399e3c64a9..90c747e48dcb 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ProtectionStatusDetails.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ProtectionStatusDetails.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Protection status details public partial class ProtectionStatusDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IProtectionStatusDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IProtectionStatusDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetailsInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError _errorDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IUserFacingError ErrorDetail { get => (this._errorDetail = this._errorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.UserFacingError()); set => this._errorDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError ErrorDetail { get => (this._errorDetail = this._errorDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingError()); set => this._errorDetail = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Status? _status; @@ -43,8 +43,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.Api20220501.IUserFacingError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError ErrorDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError ErrorDetail { get; set; } /// Specifies the protection status of the resource [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -60,7 +60,7 @@ internal partial interface IProtectionStatusDetailsInternal { /// Specifies the protection status error of the resource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError ErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/ProtectionStatusDetails.json.cs b/src/DataProtection/generated/api/Models/Api20221201/ProtectionStatusDetails.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/ProtectionStatusDetails.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/ProtectionStatusDetails.json.cs index 7dca05a5e6aa..9b1f2889402e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ProtectionStatusDetails.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ProtectionStatusDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.IProtectionStatusDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IProtectionStatusDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IProtectionStatusDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IProtectionStatusDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -77,7 +77,7 @@ internal ProtectionStatusDetails(Microsoft.Azure.PowerShell.Cmdlets.DataProtecti { return; } - {_errorDetail = If( json?.PropertyT("errorDetails"), out var __jsonErrorDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.UserFacingError.FromJson(__jsonErrorDetails) : ErrorDetail;} + {_errorDetail = If( json?.PropertyT("errorDetails"), out var __jsonErrorDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/RangeBasedItemLevelRestoreCriteria.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/RangeBasedItemLevelRestoreCriteria.PowerShell.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20220501/RangeBasedItemLevelRestoreCriteria.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/RangeBasedItemLevelRestoreCriteria.PowerShell.cs index f67e86d253bf..c8115e0b23a7 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RangeBasedItemLevelRestoreCriteria.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RangeBasedItemLevelRestoreCriteria.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class RangeBasedItemLevelRestoreCriteria partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool 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.Api20220501.IRangeBasedItemLevelRestoreCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRangeBasedItemLevelRestoreCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RangeBasedItemLevelRestoreCriteria(content); } /// - /// 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.Api20220501.IRangeBasedItemLevelRestoreCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRangeBasedItemLevelRestoreCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RangeBasedItemLevelRestoreCriteria(content); } @@ -89,10 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRangeBasedItemLevelRestoreCriteria FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRangeBasedItemLevelRestoreCriteria 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. @@ -107,21 +107,21 @@ internal RangeBasedItemLevelRestoreCriteria(global::System.Collections.IDictiona // actually deserialize if (content.Contains("MinMatchingValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRangeBasedItemLevelRestoreCriteriaInternal)this).MinMatchingValue = (string) content.GetValueForProperty("MinMatchingValue",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRangeBasedItemLevelRestoreCriteriaInternal)this).MinMatchingValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRangeBasedItemLevelRestoreCriteriaInternal)this).MinMatchingValue = (string) content.GetValueForProperty("MinMatchingValue",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRangeBasedItemLevelRestoreCriteriaInternal)this).MinMatchingValue, global::System.Convert.ToString); } if (content.Contains("MaxMatchingValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRangeBasedItemLevelRestoreCriteriaInternal)this).MaxMatchingValue = (string) content.GetValueForProperty("MaxMatchingValue",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRangeBasedItemLevelRestoreCriteriaInternal)this).MaxMatchingValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRangeBasedItemLevelRestoreCriteriaInternal)this).MaxMatchingValue = (string) content.GetValueForProperty("MaxMatchingValue",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRangeBasedItemLevelRestoreCriteriaInternal)this).MaxMatchingValue, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal)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. @@ -136,15 +136,15 @@ internal RangeBasedItemLevelRestoreCriteria(global::System.Management.Automation // actually deserialize if (content.Contains("MinMatchingValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRangeBasedItemLevelRestoreCriteriaInternal)this).MinMatchingValue = (string) content.GetValueForProperty("MinMatchingValue",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRangeBasedItemLevelRestoreCriteriaInternal)this).MinMatchingValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRangeBasedItemLevelRestoreCriteriaInternal)this).MinMatchingValue = (string) content.GetValueForProperty("MinMatchingValue",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRangeBasedItemLevelRestoreCriteriaInternal)this).MinMatchingValue, global::System.Convert.ToString); } if (content.Contains("MaxMatchingValue")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRangeBasedItemLevelRestoreCriteriaInternal)this).MaxMatchingValue = (string) content.GetValueForProperty("MaxMatchingValue",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRangeBasedItemLevelRestoreCriteriaInternal)this).MaxMatchingValue, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRangeBasedItemLevelRestoreCriteriaInternal)this).MaxMatchingValue = (string) content.GetValueForProperty("MaxMatchingValue",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRangeBasedItemLevelRestoreCriteriaInternal)this).MaxMatchingValue, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/RangeBasedItemLevelRestoreCriteria.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/RangeBasedItemLevelRestoreCriteria.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/RangeBasedItemLevelRestoreCriteria.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/RangeBasedItemLevelRestoreCriteria.TypeConverter.cs index f01cb5555be7..e36ef765fe77 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RangeBasedItemLevelRestoreCriteria.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RangeBasedItemLevelRestoreCriteria.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -108,14 +108,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRangeBasedItemLevelRestoreCriteria ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRangeBasedItemLevelRestoreCriteria ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRangeBasedItemLevelRestoreCriteria).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRangeBasedItemLevelRestoreCriteria).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/RangeBasedItemLevelRestoreCriteria.cs b/src/DataProtection/generated/api/Models/Api20221201/RangeBasedItemLevelRestoreCriteria.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20220501/RangeBasedItemLevelRestoreCriteria.cs rename to src/DataProtection/generated/api/Models/Api20221201/RangeBasedItemLevelRestoreCriteria.cs index 41e0307d9240..e93e76cf3c72 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RangeBasedItemLevelRestoreCriteria.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RangeBasedItemLevelRestoreCriteria.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IRangeBasedItemLevelRestoreCriteria, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRangeBasedItemLevelRestoreCriteriaInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRangeBasedItemLevelRestoreCriteria, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRangeBasedItemLevelRestoreCriteriaInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteria __itemLevelRestoreCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ItemLevelRestoreCriteria(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteria __itemLevelRestoreCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ItemLevelRestoreCriteria(); /// Backing field for property. private string _maxMatchingValue; @@ -35,7 +35,7 @@ public partial class RangeBasedItemLevelRestoreCriteria : /// 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.Api20220501.IItemLevelRestoreCriteriaInternal)__itemLevelRestoreCriteria).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteriaInternal)__itemLevelRestoreCriteria).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal)__itemLevelRestoreCriteria).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal)__itemLevelRestoreCriteria).ObjectType = value ; } /// Creates an new instance. public RangeBasedItemLevelRestoreCriteria() @@ -58,7 +58,7 @@ public RangeBasedItemLevelRestoreCriteria() /// Item Level target info for restore operation public partial interface IRangeBasedItemLevelRestoreCriteria : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteria { /// maximum value for range prefix match [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -80,7 +80,7 @@ public partial interface IRangeBasedItemLevelRestoreCriteria : } /// Item Level target info for restore operation internal partial interface IRangeBasedItemLevelRestoreCriteriaInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IItemLevelRestoreCriteriaInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IItemLevelRestoreCriteriaInternal { /// maximum value for range prefix match string MaxMatchingValue { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/RangeBasedItemLevelRestoreCriteria.json.cs b/src/DataProtection/generated/api/Models/Api20221201/RangeBasedItemLevelRestoreCriteria.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/RangeBasedItemLevelRestoreCriteria.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/RangeBasedItemLevelRestoreCriteria.json.cs index e1a0eb0361fc..34c2a9ea37f5 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RangeBasedItemLevelRestoreCriteria.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RangeBasedItemLevelRestoreCriteria.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RangeBasedItemLevelRestoreCriteria 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.Api20220501.IRangeBasedItemLevelRestoreCriteria. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRangeBasedItemLevelRestoreCriteria. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRangeBasedItemLevelRestoreCriteria. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRangeBasedItemLevelRestoreCriteria. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRangeBasedItemLevelRestoreCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -77,7 +77,7 @@ internal RangeBasedItemLevelRestoreCriteria(Microsoft.Azure.PowerShell.Cmdlets.D { return; } - __itemLevelRestoreCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ItemLevelRestoreCriteria(json); + __itemLevelRestoreCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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); diff --git a/src/DataProtection/generated/api/Models/Api20220501/RecoveryPointDataStoreDetails.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/RecoveryPointDataStoreDetails.PowerShell.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20220501/RecoveryPointDataStoreDetails.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/RecoveryPointDataStoreDetails.PowerShell.cs index d0b7614c7fe6..b97be81ba046 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RecoveryPointDataStoreDetails.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RecoveryPointDataStoreDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,29 +55,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.Api20220501.IRecoveryPointDataStoreDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRecoveryPointDataStoreDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RecoveryPointDataStoreDetails(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -105,45 +105,45 @@ internal RecoveryPointDataStoreDetails(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("CreationTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).CreationTime = (global::System.DateTime?) content.GetValueForProperty("CreationTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).CreationTime = (global::System.DateTime?) content.GetValueForProperty("CreationTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).CreationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ExpiryTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).ExpiryTime = (global::System.DateTime?) content.GetValueForProperty("ExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).ExpiryTime = (global::System.DateTime?) content.GetValueForProperty("ExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).ExpiryTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("MetaData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).MetaData = (string) content.GetValueForProperty("MetaData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).MetaData, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).MetaData = (string) content.GetValueForProperty("MetaData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).MetaData, global::System.Convert.ToString); } if (content.Contains("State")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).State, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).State, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Visible")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).Visible = (bool?) content.GetValueForProperty("Visible",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).Visible, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).Visible = (bool?) content.GetValueForProperty("Visible",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).Visible, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("RehydrationExpiryTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).RehydrationExpiryTime = (global::System.DateTime?) content.GetValueForProperty("RehydrationExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).RehydrationExpiryTime = (global::System.DateTime?) content.GetValueForProperty("RehydrationExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).RehydrationExpiryTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("RehydrationStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).RehydrationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus?) content.GetValueForProperty("RehydrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).RehydrationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).RehydrationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus?) content.GetValueForProperty("RehydrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -158,39 +158,39 @@ internal RecoveryPointDataStoreDetails(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("CreationTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).CreationTime = (global::System.DateTime?) content.GetValueForProperty("CreationTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).CreationTime = (global::System.DateTime?) content.GetValueForProperty("CreationTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).CreationTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ExpiryTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).ExpiryTime = (global::System.DateTime?) content.GetValueForProperty("ExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).ExpiryTime = (global::System.DateTime?) content.GetValueForProperty("ExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).ExpiryTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("MetaData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).MetaData = (string) content.GetValueForProperty("MetaData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).MetaData, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).MetaData = (string) content.GetValueForProperty("MetaData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).MetaData, global::System.Convert.ToString); } if (content.Contains("State")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).State, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).State, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("Visible")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).Visible = (bool?) content.GetValueForProperty("Visible",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).Visible, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).Visible = (bool?) content.GetValueForProperty("Visible",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).Visible, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("RehydrationExpiryTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).RehydrationExpiryTime = (global::System.DateTime?) content.GetValueForProperty("RehydrationExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).RehydrationExpiryTime = (global::System.DateTime?) content.GetValueForProperty("RehydrationExpiryTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).RehydrationExpiryTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("RehydrationStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).RehydrationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus?) content.GetValueForProperty("RehydrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal)this).RehydrationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).RehydrationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus?) content.GetValueForProperty("RehydrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal)this).RehydrationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/RecoveryPointDataStoreDetails.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/RecoveryPointDataStoreDetails.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/RecoveryPointDataStoreDetails.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/RecoveryPointDataStoreDetails.TypeConverter.cs index f329e721bdc4..ed5f2bb134b8 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RecoveryPointDataStoreDetails.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RecoveryPointDataStoreDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IRecoveryPointDataStoreDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/RecoveryPointDataStoreDetails.cs b/src/DataProtection/generated/api/Models/Api20221201/RecoveryPointDataStoreDetails.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/RecoveryPointDataStoreDetails.cs rename to src/DataProtection/generated/api/Models/Api20221201/RecoveryPointDataStoreDetails.cs index 5f84cb37532d..b4ac3aeb620a 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RecoveryPointDataStoreDetails.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RecoveryPointDataStoreDetails.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// RecoveryPoint datastore details public partial class RecoveryPointDataStoreDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetailsInternal { /// Backing field for property. @@ -38,10 +38,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.Api20220501.IRecoveryPointDataStoreDetailsInternal.RehydrationExpiryTime { get => this._rehydrationExpiryTime; set { {_rehydrationExpiryTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRecoveryPointDataStoreDetailsInternal.RehydrationStatus { get => this._rehydrationStatus; set { {_rehydrationStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RehydrationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/RecoveryPointDataStoreDetails.json.cs b/src/DataProtection/generated/api/Models/Api20221201/RecoveryPointDataStoreDetails.json.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/RecoveryPointDataStoreDetails.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/RecoveryPointDataStoreDetails.json.cs index 5a21b010f51d..a50683418e87 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RecoveryPointDataStoreDetails.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RecoveryPointDataStoreDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.IRecoveryPointDataStoreDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointDataStoreDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointDataStoreDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/RecoveryPointsFilters.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/RecoveryPointsFilters.PowerShell.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20220501/RecoveryPointsFilters.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/RecoveryPointsFilters.PowerShell.cs index 37bab2d26691..b71b9855b626 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RecoveryPointsFilters.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RecoveryPointsFilters.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -54,29 +54,29 @@ 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 . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFilters DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFilters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFilters DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RecoveryPointsFilters(content); } @@ -86,10 +86,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFilters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -104,33 +104,33 @@ internal RecoveryPointsFilters(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("RestorePointDataStoreId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFiltersInternal)this).RestorePointDataStoreId = (string) content.GetValueForProperty("RestorePointDataStoreId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFiltersInternal)this).RestorePointDataStoreId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFiltersInternal)this).RestorePointDataStoreId = (string) content.GetValueForProperty("RestorePointDataStoreId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFiltersInternal)this).RestorePointDataStoreId, global::System.Convert.ToString); } if (content.Contains("IsVisible")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFiltersInternal)this).IsVisible = (bool?) content.GetValueForProperty("IsVisible",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFiltersInternal)this).IsVisible, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFiltersInternal)this).IsVisible = (bool?) content.GetValueForProperty("IsVisible",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFiltersInternal)this).IsVisible, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("StartDate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFiltersInternal)this).StartDate = (string) content.GetValueForProperty("StartDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFiltersInternal)this).StartDate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFiltersInternal)this).StartDate = (string) content.GetValueForProperty("StartDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFiltersInternal)this).StartDate, global::System.Convert.ToString); } if (content.Contains("EndDate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFiltersInternal)this).EndDate = (string) content.GetValueForProperty("EndDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFiltersInternal)this).EndDate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFiltersInternal)this).EndDate = (string) content.GetValueForProperty("EndDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFiltersInternal)this).EndDate, global::System.Convert.ToString); } if (content.Contains("ExtendedInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFiltersInternal)this).ExtendedInfo = (bool?) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFiltersInternal)this).ExtendedInfo, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFiltersInternal)this).ExtendedInfo = (bool?) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFiltersInternal)this).ExtendedInfo, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("RestorePointState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFiltersInternal)this).RestorePointState = (string) content.GetValueForProperty("RestorePointState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFiltersInternal)this).RestorePointState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFiltersInternal)this).RestorePointState = (string) content.GetValueForProperty("RestorePointState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -145,27 +145,27 @@ internal RecoveryPointsFilters(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("RestorePointDataStoreId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFiltersInternal)this).RestorePointDataStoreId = (string) content.GetValueForProperty("RestorePointDataStoreId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFiltersInternal)this).RestorePointDataStoreId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFiltersInternal)this).RestorePointDataStoreId = (string) content.GetValueForProperty("RestorePointDataStoreId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFiltersInternal)this).RestorePointDataStoreId, global::System.Convert.ToString); } if (content.Contains("IsVisible")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFiltersInternal)this).IsVisible = (bool?) content.GetValueForProperty("IsVisible",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFiltersInternal)this).IsVisible, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFiltersInternal)this).IsVisible = (bool?) content.GetValueForProperty("IsVisible",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFiltersInternal)this).IsVisible, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("StartDate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFiltersInternal)this).StartDate = (string) content.GetValueForProperty("StartDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFiltersInternal)this).StartDate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFiltersInternal)this).StartDate = (string) content.GetValueForProperty("StartDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFiltersInternal)this).StartDate, global::System.Convert.ToString); } if (content.Contains("EndDate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFiltersInternal)this).EndDate = (string) content.GetValueForProperty("EndDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFiltersInternal)this).EndDate, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFiltersInternal)this).EndDate = (string) content.GetValueForProperty("EndDate",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFiltersInternal)this).EndDate, global::System.Convert.ToString); } if (content.Contains("ExtendedInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFiltersInternal)this).ExtendedInfo = (bool?) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFiltersInternal)this).ExtendedInfo, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFiltersInternal)this).ExtendedInfo = (bool?) content.GetValueForProperty("ExtendedInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFiltersInternal)this).ExtendedInfo, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("RestorePointState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFiltersInternal)this).RestorePointState = (string) content.GetValueForProperty("RestorePointState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFiltersInternal)this).RestorePointState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFiltersInternal)this).RestorePointState = (string) content.GetValueForProperty("RestorePointState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFiltersInternal)this).RestorePointState, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/RecoveryPointsFilters.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/RecoveryPointsFilters.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/RecoveryPointsFilters.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/RecoveryPointsFilters.TypeConverter.cs index 64d87494f2ad..de9c90e15cd5 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RecoveryPointsFilters.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RecoveryPointsFilters.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IRecoveryPointsFilters ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFilters ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFilters).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFilters).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/RecoveryPointsFilters.cs b/src/DataProtection/generated/api/Models/Api20221201/RecoveryPointsFilters.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/RecoveryPointsFilters.cs rename to src/DataProtection/generated/api/Models/Api20221201/RecoveryPointsFilters.cs index e0d76957a7e2..f28ee284bb72 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RecoveryPointsFilters.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RecoveryPointsFilters.cs @@ -3,13 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; public partial class RecoveryPointsFilters : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFilters, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFiltersInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFilters, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFiltersInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/RecoveryPointsFilters.json.cs b/src/DataProtection/generated/api/Models/Api20221201/RecoveryPointsFilters.json.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/RecoveryPointsFilters.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/RecoveryPointsFilters.json.cs index 588edcb4bd0d..271e726a171e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RecoveryPointsFilters.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RecoveryPointsFilters.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -53,13 +53,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.Api20220501.IRecoveryPointsFilters. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFilters. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFilters. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRecoveryPointsFilters. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRecoveryPointsFilters FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/ResourceGuard.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuard.PowerShell.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20220501/ResourceGuard.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/ResourceGuard.PowerShell.cs index be77ab33d5e0..97ab9b163779 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuard.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuard.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -54,27 +54,27 @@ public partial class ResourceGuard partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool 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.Api20220501.IResourceGuard DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuard DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ResourceGuard(content); } /// - /// 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.Api20220501.IResourceGuard DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuard DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResourceGuard(content); } @@ -84,10 +84,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuard FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuard 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,29 +102,29 @@ internal ResourceGuard(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); } if (content.Contains("AllowAutoApproval")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)this).AllowAutoApproval = (bool?) content.GetValueForProperty("AllowAutoApproval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)this).AllowAutoApproval, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)this).AllowAutoApproval = (bool?) content.GetValueForProperty("AllowAutoApproval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)this).AllowAutoApproval, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)this).Operation = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperation[]) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)this).Operation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceGuardOperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)this).Operation = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperation[]) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)this).Operation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceGuardOperationTypeConverter.ConvertFrom)); } if (content.Contains("CriticalOperationExclusionList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)this).CriticalOperationExclusionList = (string[]) content.GetValueForProperty("CriticalOperationExclusionList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)this).CriticalOperationExclusionList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)this).CriticalOperationExclusionList = (string[]) content.GetValueForProperty("CriticalOperationExclusionList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)this).CriticalOperationExclusionList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -139,23 +139,23 @@ internal ResourceGuard(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); } if (content.Contains("AllowAutoApproval")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)this).AllowAutoApproval = (bool?) content.GetValueForProperty("AllowAutoApproval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)this).AllowAutoApproval, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)this).AllowAutoApproval = (bool?) content.GetValueForProperty("AllowAutoApproval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)this).AllowAutoApproval, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)this).Operation = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperation[]) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)this).Operation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceGuardOperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)this).Operation = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperation[]) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)this).Operation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceGuardOperationTypeConverter.ConvertFrom)); } if (content.Contains("CriticalOperationExclusionList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)this).CriticalOperationExclusionList = (string[]) content.GetValueForProperty("CriticalOperationExclusionList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)this).CriticalOperationExclusionList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)this).CriticalOperationExclusionList = (string[]) content.GetValueForProperty("CriticalOperationExclusionList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)this).CriticalOperationExclusionList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuard.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuard.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ResourceGuard.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/ResourceGuard.TypeConverter.cs index 039b86b02064..99df5a7ec6b9 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuard.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuard.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IResourceGuard ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuard ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuard).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuard).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuard.cs b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuard.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20220501/ResourceGuard.cs rename to src/DataProtection/generated/api/Models/Api20221201/ResourceGuard.cs index df947bf7e94b..cd3da6dedbf5 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuard.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuard.cs @@ -3,13 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; public partial class ResourceGuard : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuard, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuard, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal { /// Backing field for property. @@ -34,25 +34,25 @@ public partial class ResourceGuard : public string Description { get => this._description; } /// Internal Acessors for AllowAutoApproval - bool? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal.AllowAutoApproval { get => this._allowAutoApproval; set { {_allowAutoApproval = value;} } } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal.AllowAutoApproval { get => this._allowAutoApproval; set { {_allowAutoApproval = value;} } } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal.Description { get => this._description; set { {_description = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal.Description { get => this._description; set { {_description = value;} } } /// Internal Acessors for Operation - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperation[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal.Operation { get => this._operation; set { {_operation = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperation[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal.Operation { get => this._operation; set { {_operation = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperation[] _operation; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperation[] _operation; /// /// {readonly} List of operation details those are protected by the ResourceGuard resource /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperation[] Operation { get => this._operation; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperation[] Operation { get => this._operation; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? _provisioningState; @@ -102,8 +102,8 @@ public partial interface IResourceGuard : ReadOnly = true, Description = @"{readonly} List of operation details those are protected by the ResourceGuard resource", SerializedName = @"resourceGuardOperations", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperation) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperation[] Operation { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperation) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperation[] Operation { get; } /// Provisioning state of the BackupVault resource [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -126,7 +126,7 @@ internal partial interface IResourceGuardInternal /// /// {readonly} List of operation details those are protected by the ResourceGuard resource /// - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperation[] Operation { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperation[] Operation { get; set; } /// Provisioning state of the BackupVault resource Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? ProvisioningState { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuard.json.cs b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuard.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/ResourceGuard.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/ResourceGuard.json.cs index c3be976ae96a..38f77c067cd0 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuard.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuard.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -53,13 +53,13 @@ public partial class ResourceGuard 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.Api20220501.IResourceGuard. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuard. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuard. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuard. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuard FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuard FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new ResourceGuard(json) : null; } @@ -78,7 +78,7 @@ internal ResourceGuard(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime } {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} {_allowAutoApproval = If( json?.PropertyT("allowAutoApprovals"), out var __jsonAllowAutoApprovals) ? (bool?)__jsonAllowAutoApprovals : AllowAutoApproval;} - {_operation = If( json?.PropertyT("resourceGuardOperations"), out var __jsonResourceGuardOperations) ? If( __jsonResourceGuardOperations 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.Api20220501.IResourceGuardOperation) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceGuardOperation.FromJson(__u) )) ))() : null : Operation;} + {_operation = If( json?.PropertyT("resourceGuardOperations"), out var __jsonResourceGuardOperations) ? If( __jsonResourceGuardOperations 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.Api20221201.IResourceGuardOperation) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceGuardOperation.FromJson(__u) )) ))() : null : Operation;} {_criticalOperationExclusionList = If( json?.PropertyT("vaultCriticalOperationExclusionList"), out var __jsonVaultCriticalOperationExclusionList) ? If( __jsonVaultCriticalOperationExclusionList 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 : CriticalOperationExclusionList;} {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} AfterFromJson(json); diff --git a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuardOperation.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuardOperation.PowerShell.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20220501/ResourceGuardOperation.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/ResourceGuardOperation.PowerShell.cs index 4357b5de263b..9e90a4be4864 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuardOperation.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuardOperation.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ResourceGuardOperation partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool 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.Api20220501.IResourceGuardOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ResourceGuardOperation(content); } /// - /// 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.Api20220501.IResourceGuardOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResourceGuardOperation(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperation 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. @@ -105,17 +105,17 @@ internal ResourceGuardOperation(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("VaultCriticalOperation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperationInternal)this).VaultCriticalOperation = (string) content.GetValueForProperty("VaultCriticalOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperationInternal)this).VaultCriticalOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperationInternal)this).VaultCriticalOperation = (string) content.GetValueForProperty("VaultCriticalOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperationInternal)this).VaultCriticalOperation, global::System.Convert.ToString); } if (content.Contains("RequestResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperationInternal)this).RequestResourceType = (string) content.GetValueForProperty("RequestResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperationInternal)this).RequestResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperationInternal)this).RequestResourceType = (string) content.GetValueForProperty("RequestResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperationInternal)this).RequestResourceType, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -130,11 +130,11 @@ internal ResourceGuardOperation(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("VaultCriticalOperation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperationInternal)this).VaultCriticalOperation = (string) content.GetValueForProperty("VaultCriticalOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperationInternal)this).VaultCriticalOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperationInternal)this).VaultCriticalOperation = (string) content.GetValueForProperty("VaultCriticalOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperationInternal)this).VaultCriticalOperation, global::System.Convert.ToString); } if (content.Contains("RequestResourceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperationInternal)this).RequestResourceType = (string) content.GetValueForProperty("RequestResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperationInternal)this).RequestResourceType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperationInternal)this).RequestResourceType = (string) content.GetValueForProperty("RequestResourceType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperationInternal)this).RequestResourceType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuardOperation.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuardOperation.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ResourceGuardOperation.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/ResourceGuardOperation.TypeConverter.cs index f0e2ff97bb14..fd01f7a49f85 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuardOperation.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuardOperation.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IResourceGuardOperation ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperation ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperation).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperation).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuardOperation.cs b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuardOperation.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20220501/ResourceGuardOperation.cs rename to src/DataProtection/generated/api/Models/Api20221201/ResourceGuardOperation.cs index a25e9a70d2a9..e77697c762eb 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuardOperation.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuardOperation.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// This class contains all the details about a critical operation. public partial class ResourceGuardOperation : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperation, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperationInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperation, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperationInternal { /// Internal Acessors for RequestResourceType - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperationInternal.RequestResourceType { get => this._requestResourceType; set { {_requestResourceType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperationInternal.RequestResourceType { get => this._requestResourceType; set { {_requestResourceType = value;} } } /// Internal Acessors for VaultCriticalOperation - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperationInternal.VaultCriticalOperation { get => this._vaultCriticalOperation; set { {_vaultCriticalOperation = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperationInternal.VaultCriticalOperation { get => this._vaultCriticalOperation; set { {_vaultCriticalOperation = value;} } } /// Backing field for property. private string _requestResourceType; diff --git a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuardOperation.json.cs b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuardOperation.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/ResourceGuardOperation.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/ResourceGuardOperation.json.cs index 2df9974d5a77..291170f4e614 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuardOperation.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuardOperation.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ResourceGuardOperation 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.Api20220501.IResourceGuardOperation. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperation. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperation. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperation. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new ResourceGuardOperation(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuardResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuardResource.PowerShell.cs similarity index 54% rename from src/DataProtection/generated/api/Models/Api20220501/ResourceGuardResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/ResourceGuardResource.PowerShell.cs index 1bd46f8b0890..4f76e55c9e15 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuardResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuardResource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -54,29 +54,29 @@ public partial class ResourceGuardResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool 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.Api20220501.IResourceGuardResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ResourceGuardResource(content); } /// - /// 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.Api20220501.IResourceGuardResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResourceGuardResource(content); } @@ -86,10 +86,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource 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,77 +104,61 @@ internal ResourceGuardResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuard) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceGuardTypeConverter.ConvertFrom); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); - } - if (content.Contains("Identity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppIdentityDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuard) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceGuardTypeConverter.ConvertFrom); } if (content.Contains("ETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).ETag, global::System.Convert.ToString); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppTrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseTrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); } if (content.Contains("AllowAutoApproval")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal)this).AllowAutoApproval = (bool?) content.GetValueForProperty("AllowAutoApproval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal)this).AllowAutoApproval, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal)this).AllowAutoApproval = (bool?) content.GetValueForProperty("AllowAutoApproval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal)this).AllowAutoApproval, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ResourceGuardOperation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal)this).ResourceGuardOperation = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperation[]) content.GetValueForProperty("ResourceGuardOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal)this).ResourceGuardOperation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceGuardOperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal)this).ResourceGuardOperation = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperation[]) content.GetValueForProperty("ResourceGuardOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal)this).ResourceGuardOperation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceGuardOperationTypeConverter.ConvertFrom)); } if (content.Contains("CriticalOperationExclusionList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal)this).CriticalOperationExclusionList = (string[]) content.GetValueForProperty("CriticalOperationExclusionList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal)this).CriticalOperationExclusionList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal)this).CriticalOperationExclusionList = (string[]) content.GetValueForProperty("CriticalOperationExclusionList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal)this).CriticalOperationExclusionList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -189,71 +173,55 @@ internal ResourceGuardResource(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuard) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceGuardTypeConverter.ConvertFrom); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).IdentityType, global::System.Convert.ToString); - } - if (content.Contains("Identity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetails) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppIdentityDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuard) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceGuardTypeConverter.ConvertFrom); } if (content.Contains("ETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).ETag, global::System.Convert.ToString); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppTrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseTrackedResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState.CreateFrom); } if (content.Contains("AllowAutoApproval")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal)this).AllowAutoApproval = (bool?) content.GetValueForProperty("AllowAutoApproval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal)this).AllowAutoApproval, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal)this).AllowAutoApproval = (bool?) content.GetValueForProperty("AllowAutoApproval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal)this).AllowAutoApproval, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ResourceGuardOperation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal)this).ResourceGuardOperation = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperation[]) content.GetValueForProperty("ResourceGuardOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal)this).ResourceGuardOperation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceGuardOperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal)this).ResourceGuardOperation = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperation[]) content.GetValueForProperty("ResourceGuardOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal)this).ResourceGuardOperation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceGuardOperationTypeConverter.ConvertFrom)); } if (content.Contains("CriticalOperationExclusionList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal)this).CriticalOperationExclusionList = (string[]) content.GetValueForProperty("CriticalOperationExclusionList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal)this).CriticalOperationExclusionList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal)this).CriticalOperationExclusionList = (string[]) content.GetValueForProperty("CriticalOperationExclusionList",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal)this).CriticalOperationExclusionList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuardResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuardResource.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ResourceGuardResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/ResourceGuardResource.TypeConverter.cs index 4484db460047..6ac9d3c03fc1 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuardResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuardResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IResourceGuardResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuardResource.cs b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuardResource.cs similarity index 59% rename from src/DataProtection/generated/api/Models/Api20220501/ResourceGuardResource.cs rename to src/DataProtection/generated/api/Models/Api20221201/ResourceGuardResource.cs index 1b53c4f5f6ad..f547b03b4eed 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuardResource.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuardResource.cs @@ -3,133 +3,106 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; public partial class ResourceGuardResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResource __dppTrackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppTrackedResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResource __dppBaseTrackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseTrackedResource(); /// This flag indicates whether auto approval is allowed or not. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public bool? AllowAutoApproval { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)Property).AllowAutoApproval; } + public bool? AllowAutoApproval { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)Property).AllowAutoApproval; } /// List of critical operations which are not protected by this resourceGuard [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string[] CriticalOperationExclusionList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)Property).CriticalOperationExclusionList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)Property).CriticalOperationExclusionList = value ?? null /* arrayOf */; } + public string[] CriticalOperationExclusionList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)Property).CriticalOperationExclusionList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)Property).CriticalOperationExclusionList = value ?? null /* arrayOf */; } /// Description about the pre-req steps to perform all the critical operations. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)Property).Description; } + public string Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)Property).Description; } /// Optional ETag. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string ETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).ETag = value ?? null; } + public string ETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).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)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Id; } - - /// Input Managed Identity Details - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppIdentityDetails Identity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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 - /// resource. - /// - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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)] - public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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)] - public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).IdentityType = value ?? null; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).Id; } /// Resource location. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Location = value ?? null; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).Location = value ?? null; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Id = value; } - - /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).IdentityPrincipalId = value; } - - /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).IdentityTenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).Type = value; } /// Internal Acessors for AllowAutoApproval - bool? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal.AllowAutoApproval { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)Property).AllowAutoApproval; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)Property).AllowAutoApproval = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal.AllowAutoApproval { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)Property).AllowAutoApproval; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)Property).AllowAutoApproval = value; } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)Property).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal.Description { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)Property).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)Property).Description = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuard Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceGuard()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuard Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceGuard()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)Property).ProvisioningState = value; } /// Internal Acessors for ResourceGuardOperation - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperation[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceInternal.ResourceGuardOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)Property).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)Property).Operation = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperation[] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceInternal.ResourceGuardOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)Property).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)Property).Operation = 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.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuard _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuard _property; /// ResourceGuardResource properties [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuard Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceGuard()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuard Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceGuard()); set => this._property = value; } /// Provisioning state of the BackupVault resource [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)Property).ProvisioningState; } /// /// {readonly} List of operation details those are protected by the ResourceGuard resource /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperation[] ResourceGuardOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardInternal)Property).Operation; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperation[] ResourceGuardOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardInternal)Property).Operation; } /// 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.Api20220501.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).SystemData; } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).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)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal)__dppTrackedResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal)__dppBaseTrackedResource).Type; } /// Creates an new instance. public ResourceGuardResource() @@ -145,13 +118,13 @@ public ResourceGuardResource() /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener) { - await eventListener.AssertNotNull(nameof(__dppTrackedResource), __dppTrackedResource); - await eventListener.AssertObjectIsValid(nameof(__dppTrackedResource), __dppTrackedResource); + await eventListener.AssertNotNull(nameof(__dppBaseTrackedResource), __dppBaseTrackedResource); + await eventListener.AssertObjectIsValid(nameof(__dppBaseTrackedResource), __dppBaseTrackedResource); } } public partial interface IResourceGuardResource : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResource { /// This flag indicates whether auto approval is allowed or not. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -193,12 +166,12 @@ public partial interface IResourceGuardResource : ReadOnly = true, Description = @"{readonly} List of operation details those are protected by the ResourceGuard resource", SerializedName = @"resourceGuardOperations", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperation) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperation[] ResourceGuardOperation { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperation) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperation[] ResourceGuardOperation { get; } } internal partial interface IResourceGuardResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceInternal { /// This flag indicates whether auto approval is allowed or not. bool? AllowAutoApproval { get; set; } @@ -207,13 +180,13 @@ internal partial interface IResourceGuardResourceInternal : /// Description about the pre-req steps to perform all the critical operations. string Description { get; set; } /// ResourceGuardResource properties - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuard Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuard Property { get; set; } /// Provisioning state of the BackupVault resource Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ProvisioningState? ProvisioningState { get; set; } /// /// {readonly} List of operation details those are protected by the ResourceGuard resource /// - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardOperation[] ResourceGuardOperation { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardOperation[] ResourceGuardOperation { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuardResource.json.cs b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuardResource.json.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20220501/ResourceGuardResource.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/ResourceGuardResource.json.cs index 18856500cd32..486e6e50afab 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuardResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuardResource.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -53,13 +53,13 @@ public partial class ResourceGuardResource 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.Api20220501.IResourceGuardResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new ResourceGuardResource(json) : null; } @@ -76,8 +76,8 @@ internal ResourceGuardResource(Microsoft.Azure.PowerShell.Cmdlets.DataProtection { return; } - __dppTrackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppTrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceGuard.FromJson(__jsonProperties) : Property;} + __dppBaseTrackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppBaseTrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceGuard.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } @@ -100,7 +100,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode T { return container; } - __dppTrackedResource?.ToJson(container, serializationMode); + __dppBaseTrackedResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuardResourceList.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuardResourceList.PowerShell.cs similarity index 85% rename from src/DataProtection/generated/api/Models/Api20220501/ResourceGuardResourceList.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/ResourceGuardResourceList.PowerShell.cs index aee0b60e577e..9cc83312fa13 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuardResourceList.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuardResourceList.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ResourceGuardResourceList partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool 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.Api20220501.IResourceGuardResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ResourceGuardResourceList(content); } /// - /// 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.Api20220501.IResourceGuardResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResourceGuardResourceList(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceList 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. @@ -105,17 +105,17 @@ internal ResourceGuardResourceList(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceGuardResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceGuardResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -130,11 +130,11 @@ internal ResourceGuardResourceList(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceGuardResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceGuardResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuardResourceList.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuardResourceList.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ResourceGuardResourceList.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/ResourceGuardResourceList.TypeConverter.cs index 0be5bb61ba18..eed2543c0038 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuardResourceList.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuardResourceList.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IResourceGuardResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuardResourceList.cs b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuardResourceList.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20220501/ResourceGuardResourceList.cs rename to src/DataProtection/generated/api/Models/Api20221201/ResourceGuardResourceList.cs index e82357191ff1..5b4a7055f269 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuardResourceList.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuardResourceList.cs @@ -3,34 +3,34 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// List of ResourceGuard resources public partial class ResourceGuardResourceList : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceListInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceListInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceList __dppTrackedResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppTrackedResourceList(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceList __dppTrackedResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppTrackedResourceList(); /// /// 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.Api20220501.IDppTrackedResourceListInternal)__dppTrackedResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceListInternal)__dppTrackedResourceList).NextLink = value ?? null; } + public string NextLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceListInternal)__dppTrackedResourceList).NextLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceListInternal)__dppTrackedResourceList).NextLink = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource[] _value; /// List of resources. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public ResourceGuardResourceList() @@ -53,7 +53,7 @@ public ResourceGuardResourceList() /// List of ResourceGuard resources public partial interface IResourceGuardResourceList : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceList { /// List of resources. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -61,16 +61,16 @@ public partial interface IResourceGuardResourceList : ReadOnly = false, Description = @"List of resources.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource[] Value { get; set; } } /// List of ResourceGuard resources internal partial interface IResourceGuardResourceListInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppTrackedResourceListInternal { /// List of resources. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuardResourceList.json.cs b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuardResourceList.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20220501/ResourceGuardResourceList.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/ResourceGuardResourceList.json.cs index de66fc54253f..f495d60b642c 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ResourceGuardResourceList.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ResourceGuardResourceList.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ResourceGuardResourceList 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.Api20220501.IResourceGuardResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new ResourceGuardResourceList(json) : null; } @@ -77,8 +77,8 @@ internal ResourceGuardResourceList(Microsoft.Azure.PowerShell.Cmdlets.DataProtec { return; } - __dppTrackedResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DppTrackedResourceList(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.Api20220501.IResourceGuardResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceGuardResource.FromJson(__u) )) ))() : null : Value;} + __dppTrackedResourceList = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DppTrackedResourceList(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.Api20221201.IResourceGuardResource) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceGuardResource.FromJson(__u) )) ))() : null : Value;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ResourceMoveDetails.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/ResourceMoveDetails.PowerShell.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20220501/ResourceMoveDetails.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/ResourceMoveDetails.PowerShell.cs index d1b37924d969..71bcdb9bf0ee 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ResourceMoveDetails.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ResourceMoveDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class ResourceMoveDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool 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.Api20220501.IResourceMoveDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ResourceMoveDetails(content); } /// - /// 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.Api20220501.IResourceMoveDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResourceMoveDetails(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetails 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. @@ -103,29 +103,29 @@ internal ResourceMoveDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("OperationId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)this).OperationId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)this).OperationId, global::System.Convert.ToString); } if (content.Contains("StartTimeUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)this).StartTimeUtc = (string) content.GetValueForProperty("StartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)this).StartTimeUtc, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)this).StartTimeUtc = (string) content.GetValueForProperty("StartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)this).StartTimeUtc, global::System.Convert.ToString); } if (content.Contains("CompletionTimeUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)this).CompletionTimeUtc = (string) content.GetValueForProperty("CompletionTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)this).CompletionTimeUtc, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)this).CompletionTimeUtc = (string) content.GetValueForProperty("CompletionTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)this).CompletionTimeUtc, global::System.Convert.ToString); } if (content.Contains("SourceResourcePath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)this).SourceResourcePath = (string) content.GetValueForProperty("SourceResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)this).SourceResourcePath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)this).SourceResourcePath = (string) content.GetValueForProperty("SourceResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)this).SourceResourcePath, global::System.Convert.ToString); } if (content.Contains("TargetResourcePath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)this).TargetResourcePath = (string) content.GetValueForProperty("TargetResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)this).TargetResourcePath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)this).TargetResourcePath = (string) content.GetValueForProperty("TargetResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)this).TargetResourcePath, 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. @@ -140,23 +140,23 @@ internal ResourceMoveDetails(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("OperationId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)this).OperationId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)this).OperationId, global::System.Convert.ToString); } if (content.Contains("StartTimeUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)this).StartTimeUtc = (string) content.GetValueForProperty("StartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)this).StartTimeUtc, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)this).StartTimeUtc = (string) content.GetValueForProperty("StartTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)this).StartTimeUtc, global::System.Convert.ToString); } if (content.Contains("CompletionTimeUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)this).CompletionTimeUtc = (string) content.GetValueForProperty("CompletionTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)this).CompletionTimeUtc, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)this).CompletionTimeUtc = (string) content.GetValueForProperty("CompletionTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)this).CompletionTimeUtc, global::System.Convert.ToString); } if (content.Contains("SourceResourcePath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)this).SourceResourcePath = (string) content.GetValueForProperty("SourceResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)this).SourceResourcePath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)this).SourceResourcePath = (string) content.GetValueForProperty("SourceResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)this).SourceResourcePath, global::System.Convert.ToString); } if (content.Contains("TargetResourcePath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)this).TargetResourcePath = (string) content.GetValueForProperty("TargetResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal)this).TargetResourcePath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)this).TargetResourcePath = (string) content.GetValueForProperty("TargetResourcePath",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal)this).TargetResourcePath, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ResourceMoveDetails.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/ResourceMoveDetails.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ResourceMoveDetails.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/ResourceMoveDetails.TypeConverter.cs index 5be253c77884..f64656ff04d2 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ResourceMoveDetails.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ResourceMoveDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IResourceMoveDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ResourceMoveDetails.cs b/src/DataProtection/generated/api/Models/Api20221201/ResourceMoveDetails.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ResourceMoveDetails.cs rename to src/DataProtection/generated/api/Models/Api20221201/ResourceMoveDetails.cs index 341301acd362..e31bde4f6dc8 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ResourceMoveDetails.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ResourceMoveDetails.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// ResourceMoveDetails will be returned in response to GetResource call from ARM public partial class ResourceMoveDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetailsInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/ResourceMoveDetails.json.cs b/src/DataProtection/generated/api/Models/Api20221201/ResourceMoveDetails.json.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ResourceMoveDetails.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/ResourceMoveDetails.json.cs index 972decd8ae27..a51a9bf08418 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ResourceMoveDetails.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ResourceMoveDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ResourceMoveDetails 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.Api20220501.IResourceMoveDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceMoveDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceMoveDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new ResourceMoveDetails(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/RestorableTimeRange.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/RestorableTimeRange.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20220501/RestorableTimeRange.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/RestorableTimeRange.PowerShell.cs index f8480b49de66..24bd91acb379 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RestorableTimeRange.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RestorableTimeRange.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -54,27 +54,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.Api20220501.IRestorableTimeRange DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRestorableTimeRange DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRange DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RestorableTimeRange(content); } @@ -84,10 +84,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRange FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -102,21 +102,21 @@ internal RestorableTimeRange(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRangeInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRangeInternal)this).StartTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRangeInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRangeInternal)this).StartTime, global::System.Convert.ToString); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRangeInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRangeInternal)this).EndTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRangeInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRangeInternal)this).EndTime, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRangeInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRangeInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRangeInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -131,15 +131,15 @@ internal RestorableTimeRange(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRangeInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRangeInternal)this).StartTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRangeInternal)this).StartTime = (string) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRangeInternal)this).StartTime, global::System.Convert.ToString); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRangeInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRangeInternal)this).EndTime, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRangeInternal)this).EndTime = (string) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRangeInternal)this).EndTime, global::System.Convert.ToString); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRangeInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRangeInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRangeInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRangeInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/RestorableTimeRange.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/RestorableTimeRange.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/RestorableTimeRange.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/RestorableTimeRange.TypeConverter.cs index 90fd92e19d87..125efc56cf42 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RestorableTimeRange.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RestorableTimeRange.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IRestorableTimeRange ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRange ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRange).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRange).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/RestorableTimeRange.cs b/src/DataProtection/generated/api/Models/Api20221201/RestorableTimeRange.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/RestorableTimeRange.cs rename to src/DataProtection/generated/api/Models/Api20221201/RestorableTimeRange.cs index 5214f7a67bad..85840cad2223 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RestorableTimeRange.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RestorableTimeRange.cs @@ -3,13 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; public partial class RestorableTimeRange : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRange, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRangeInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRange, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRangeInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/RestorableTimeRange.json.cs b/src/DataProtection/generated/api/Models/Api20221201/RestorableTimeRange.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/RestorableTimeRange.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/RestorableTimeRange.json.cs index 6bb439606b80..d1084c0a1796 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RestorableTimeRange.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RestorableTimeRange.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -53,13 +53,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.Api20220501.IRestorableTimeRange. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRange. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRange. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestorableTimeRange. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestorableTimeRange FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/RestoreFilesTargetInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/RestoreFilesTargetInfo.PowerShell.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20220501/RestoreFilesTargetInfo.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/RestoreFilesTargetInfo.PowerShell.cs index 617c541fbdd0..3dffdd375481 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RestoreFilesTargetInfo.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RestoreFilesTargetInfo.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,29 +55,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.Api20220501.IRestoreFilesTargetInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRestoreFilesTargetInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreFilesTargetInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RestoreFilesTargetInfo(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreFilesTargetInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -105,25 +105,25 @@ internal RestoreFilesTargetInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("TargetDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreFilesTargetInfoInternal)this).TargetDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetDetails) content.GetValueForProperty("TargetDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreFilesTargetInfoInternal)this).TargetDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TargetDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreFilesTargetInfoInternal)this).TargetDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetails) content.GetValueForProperty("TargetDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreFilesTargetInfoInternal)this).TargetDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TargetDetailsTypeConverter.ConvertFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RecoveryOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); } if (content.Contains("RestoreLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -138,19 +138,19 @@ internal RestoreFilesTargetInfo(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("TargetDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreFilesTargetInfoInternal)this).TargetDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetDetails) content.GetValueForProperty("TargetDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreFilesTargetInfoInternal)this).TargetDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TargetDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreFilesTargetInfoInternal)this).TargetDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetails) content.GetValueForProperty("TargetDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreFilesTargetInfoInternal)this).TargetDetail, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TargetDetailsTypeConverter.ConvertFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RecoveryOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); } if (content.Contains("RestoreLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/RestoreFilesTargetInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/RestoreFilesTargetInfo.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/RestoreFilesTargetInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/RestoreFilesTargetInfo.TypeConverter.cs index b134696ada9b..08af4c2987fb 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RestoreFilesTargetInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RestoreFilesTargetInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IRestoreFilesTargetInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreFilesTargetInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreFilesTargetInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreFilesTargetInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/RestoreFilesTargetInfo.cs b/src/DataProtection/generated/api/Models/Api20221201/RestoreFilesTargetInfo.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20220501/RestoreFilesTargetInfo.cs rename to src/DataProtection/generated/api/Models/Api20221201/RestoreFilesTargetInfo.cs index be13a4cafb05..7d2186badcfb 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RestoreFilesTargetInfo.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RestoreFilesTargetInfo.cs @@ -3,43 +3,43 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IRestoreFilesTargetInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreFilesTargetInfoInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreFilesTargetInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreFilesTargetInfoInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreTargetInfoBase(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreTargetInfoBase(); /// Internal Acessors for RecoveryOption - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal.RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal.RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; } + public string RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation = value ?? null; } + public string RestoreLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetDetails _targetDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetDetails TargetDetail { get => (this._targetDetail = this._targetDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TargetDetails()); set => this._targetDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetails TargetDetail { get => (this._targetDetail = this._targetDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TargetDetails()); set => this._targetDetail = value; } /// Creates an new instance. public RestoreFilesTargetInfo() @@ -62,7 +62,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.Api20220501.IRestoreTargetInfoBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase { /// Destination of RestoreAsFiles operation, when destination is not a datasource [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -70,16 +70,16 @@ public partial interface IRestoreFilesTargetInfo : ReadOnly = false, Description = @"Destination of RestoreAsFiles operation, when destination is not a datasource", SerializedName = @"targetDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetDetails TargetDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetails TargetDetail { get; set; } } /// Class encapsulating restore as files target parameters internal partial interface IRestoreFilesTargetInfoInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal { /// Destination of RestoreAsFiles operation, when destination is not a datasource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetDetails TargetDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetails TargetDetail { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/RestoreFilesTargetInfo.json.cs b/src/DataProtection/generated/api/Models/Api20221201/RestoreFilesTargetInfo.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/RestoreFilesTargetInfo.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/RestoreFilesTargetInfo.json.cs index 954f2be3f154..aa516c09e1d0 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RestoreFilesTargetInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RestoreFilesTargetInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.IRestoreFilesTargetInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreFilesTargetInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreFilesTargetInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreFilesTargetInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreFilesTargetInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -77,8 +77,8 @@ internal RestoreFilesTargetInfo(Microsoft.Azure.PowerShell.Cmdlets.DataProtectio { return; } - __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreTargetInfoBase(json); - {_targetDetail = If( json?.PropertyT("targetDetails"), out var __jsonTargetDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TargetDetails.FromJson(__jsonTargetDetails) : TargetDetail;} + __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreTargetInfoBase(json); + {_targetDetail = If( json?.PropertyT("targetDetails"), out var __jsonTargetDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TargetDetails.FromJson(__jsonTargetDetails) : TargetDetail;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/RestoreJobRecoveryPointDetails.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/RestoreJobRecoveryPointDetails.PowerShell.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20220501/RestoreJobRecoveryPointDetails.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/RestoreJobRecoveryPointDetails.PowerShell.cs index b2b9a568dc62..f5b4f6a645de 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RestoreJobRecoveryPointDetails.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RestoreJobRecoveryPointDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -54,29 +54,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.Api20220501.IRestoreJobRecoveryPointDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRestoreJobRecoveryPointDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RestoreJobRecoveryPointDetails(content); } @@ -86,10 +86,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -104,17 +104,17 @@ internal RestoreJobRecoveryPointDetails(global::System.Collections.IDictionary c // actually deserialize if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointId, global::System.Convert.ToString); } if (content.Contains("RecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -129,11 +129,11 @@ internal RestoreJobRecoveryPointDetails(global::System.Management.Automation.PSO // actually deserialize if (content.Contains("RecoveryPointId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointId = (string) content.GetValueForProperty("RecoveryPointId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointId, global::System.Convert.ToString); } if (content.Contains("RecoveryPointTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IRestoreJobRecoveryPointDetailsInternal)this).RecoveryPointTime = (global::System.DateTime?) content.GetValueForProperty("RecoveryPointTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/RestoreJobRecoveryPointDetails.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/RestoreJobRecoveryPointDetails.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/RestoreJobRecoveryPointDetails.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/RestoreJobRecoveryPointDetails.TypeConverter.cs index 7e6c657c9ddc..e2be704cedb1 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RestoreJobRecoveryPointDetails.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RestoreJobRecoveryPointDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/RestoreJobRecoveryPointDetails.cs b/src/DataProtection/generated/api/Models/Api20221201/RestoreJobRecoveryPointDetails.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/RestoreJobRecoveryPointDetails.cs rename to src/DataProtection/generated/api/Models/Api20221201/RestoreJobRecoveryPointDetails.cs index f2a1d02d5e96..1bf8092a0439 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RestoreJobRecoveryPointDetails.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RestoreJobRecoveryPointDetails.cs @@ -3,13 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; public partial class RestoreJobRecoveryPointDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetailsInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/RestoreJobRecoveryPointDetails.json.cs b/src/DataProtection/generated/api/Models/Api20221201/RestoreJobRecoveryPointDetails.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/RestoreJobRecoveryPointDetails.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/RestoreJobRecoveryPointDetails.json.cs index 78ab8634959f..a5bc759ad36f 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RestoreJobRecoveryPointDetails.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RestoreJobRecoveryPointDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -53,13 +53,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.Api20220501.IRestoreJobRecoveryPointDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreJobRecoveryPointDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreJobRecoveryPointDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/RestoreTargetInfo.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/RestoreTargetInfo.PowerShell.cs similarity index 79% rename from src/DataProtection/generated/api/Models/Api20220501/RestoreTargetInfo.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/RestoreTargetInfo.PowerShell.cs index 80adaf7a6d4e..98a3d2870039 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RestoreTargetInfo.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RestoreTargetInfo.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,27 +55,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.Api20220501.IRestoreTargetInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRestoreTargetInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RestoreTargetInfo(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -103,33 +103,33 @@ internal RestoreTargetInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DatasourceInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoInternal)this).DatasourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasource) content.GetValueForProperty("DatasourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoInternal)this).DatasourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DatasourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoInternal)this).DatasourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource) content.GetValueForProperty("DatasourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoInternal)this).DatasourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceTypeConverter.ConvertFrom); } if (content.Contains("DatasourceSetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoInternal)this).DatasourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSet) content.GetValueForProperty("DatasourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoInternal)this).DatasourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DatasourceSetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoInternal)this).DatasourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet) content.GetValueForProperty("DatasourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoInternal)this).DatasourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceSetTypeConverter.ConvertFrom); } if (content.Contains("DatasourceAuthCredentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AuthCredentialsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AuthCredentialsTypeConverter.ConvertFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RecoveryOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); } if (content.Contains("RestoreLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -144,27 +144,27 @@ internal RestoreTargetInfo(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("DatasourceInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoInternal)this).DatasourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasource) content.GetValueForProperty("DatasourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoInternal)this).DatasourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DatasourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoInternal)this).DatasourceInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource) content.GetValueForProperty("DatasourceInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoInternal)this).DatasourceInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceTypeConverter.ConvertFrom); } if (content.Contains("DatasourceSetInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoInternal)this).DatasourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSet) content.GetValueForProperty("DatasourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoInternal)this).DatasourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DatasourceSetTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoInternal)this).DatasourceSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet) content.GetValueForProperty("DatasourceSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoInternal)this).DatasourceSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceSetTypeConverter.ConvertFrom); } if (content.Contains("DatasourceAuthCredentials")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AuthCredentialsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoInternal)this).DatasourceAuthCredentials = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials) content.GetValueForProperty("DatasourceAuthCredentials",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoInternal)this).DatasourceAuthCredentials, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AuthCredentialsTypeConverter.ConvertFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RecoveryOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); } if (content.Contains("RestoreLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/RestoreTargetInfo.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/RestoreTargetInfo.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/RestoreTargetInfo.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/RestoreTargetInfo.TypeConverter.cs index 0b1fde0571f4..771983198685 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RestoreTargetInfo.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RestoreTargetInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IRestoreTargetInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/RestoreTargetInfo.cs b/src/DataProtection/generated/api/Models/Api20221201/RestoreTargetInfo.cs similarity index 79% rename from src/DataProtection/generated/api/Models/Api20220501/RestoreTargetInfo.cs rename to src/DataProtection/generated/api/Models/Api20221201/RestoreTargetInfo.cs index 444f9a1598c3..4b5d7a236387 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RestoreTargetInfo.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RestoreTargetInfo.cs @@ -3,57 +3,57 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Class encapsulating restore target parameters public partial class RestoreTargetInfo : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreTargetInfoBase(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreTargetInfoBase(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials _datasourceAuthCredentials; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials _datasourceAuthCredentials; /// Credentials to use to authenticate with data source provider. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials DatasourceAuthCredentials { get => (this._datasourceAuthCredentials = this._datasourceAuthCredentials ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AuthCredentials()); set => this._datasourceAuthCredentials = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials DatasourceAuthCredentials { get => (this._datasourceAuthCredentials = this._datasourceAuthCredentials ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AuthCredentials()); set => this._datasourceAuthCredentials = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasource _datasourceInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDatasource DatasourceInfo { get => (this._datasourceInfo = this._datasourceInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.Datasource()); set => this._datasourceInfo = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource DatasourceInfo { get => (this._datasourceInfo = this._datasourceInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.Datasource()); set => this._datasourceInfo = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSet _datasourceSetInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDatasourceSet DatasourceSetInfo { get => (this._datasourceSetInfo = this._datasourceSetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DatasourceSet()); set => this._datasourceSetInfo = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet DatasourceSetInfo { get => (this._datasourceSetInfo = this._datasourceSetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceSet()); set => this._datasourceSetInfo = value; } /// Internal Acessors for RecoveryOption - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal.RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal.RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RecoveryOption; } + public string RecoveryOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation = value ?? null; } + public string RestoreLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)__restoreTargetInfoBase).RestoreLocation = value ?? null; } /// Creates an new instance. public RestoreTargetInfo() @@ -76,7 +76,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.Api20220501.IRestoreTargetInfoBase + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase { /// Credentials to use to authenticate with data source provider. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -84,36 +84,36 @@ public partial interface IRestoreTargetInfo : ReadOnly = false, Description = @"Credentials to use to authenticate with data source provider.", SerializedName = @"datasourceAuthCredentials", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials DatasourceAuthCredentials { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials DatasourceAuthCredentials { get; set; } /// 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.Api20220501.IDatasource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasource DatasourceInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDatasourceSet) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSet DatasourceSetInfo { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet DatasourceSetInfo { get; set; } } /// Class encapsulating restore target parameters internal partial interface IRestoreTargetInfoInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal { /// Credentials to use to authenticate with data source provider. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials DatasourceAuthCredentials { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials DatasourceAuthCredentials { get; set; } /// Information of target DS - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasource DatasourceInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasource DatasourceInfo { get; set; } /// Information of target DS Set - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDatasourceSet DatasourceSetInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDatasourceSet DatasourceSetInfo { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/RestoreTargetInfo.json.cs b/src/DataProtection/generated/api/Models/Api20221201/RestoreTargetInfo.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/RestoreTargetInfo.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/RestoreTargetInfo.json.cs index 9f7ff8bf8a4b..27c99246b009 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RestoreTargetInfo.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RestoreTargetInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.IRestoreTargetInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -77,10 +77,10 @@ internal RestoreTargetInfo(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Run { return; } - __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RestoreTargetInfoBase(json); - {_datasourceInfo = If( json?.PropertyT("datasourceInfo"), out var __jsonDatasourceInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.Datasource.FromJson(__jsonDatasourceInfo) : DatasourceInfo;} - {_datasourceSetInfo = If( json?.PropertyT("datasourceSetInfo"), out var __jsonDatasourceSetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DatasourceSet.FromJson(__jsonDatasourceSetInfo) : DatasourceSetInfo;} - {_datasourceAuthCredentials = If( json?.PropertyT("datasourceAuthCredentials"), out var __jsonDatasourceAuthCredentials) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AuthCredentials.FromJson(__jsonDatasourceAuthCredentials) : DatasourceAuthCredentials;} + __restoreTargetInfoBase = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RestoreTargetInfoBase(json); + {_datasourceInfo = If( json?.PropertyT("datasourceInfo"), out var __jsonDatasourceInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.Datasource.FromJson(__jsonDatasourceInfo) : DatasourceInfo;} + {_datasourceSetInfo = If( json?.PropertyT("datasourceSetInfo"), out var __jsonDatasourceSetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DatasourceSet.FromJson(__jsonDatasourceSetInfo) : DatasourceSetInfo;} + {_datasourceAuthCredentials = If( json?.PropertyT("datasourceAuthCredentials"), out var __jsonDatasourceAuthCredentials) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AuthCredentials.FromJson(__jsonDatasourceAuthCredentials) : DatasourceAuthCredentials;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/RestoreTargetInfoBase.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/RestoreTargetInfoBase.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20220501/RestoreTargetInfoBase.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/RestoreTargetInfoBase.PowerShell.cs index d43b0fa8fb66..9e1032311b4e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RestoreTargetInfoBase.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RestoreTargetInfoBase.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,29 +55,29 @@ 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 . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RestoreTargetInfoBase(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -105,21 +105,21 @@ internal RestoreTargetInfoBase(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RecoveryOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); } if (content.Contains("RestoreLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -134,15 +134,15 @@ internal RestoreTargetInfoBase(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("RecoveryOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RecoveryOption = (string) content.GetValueForProperty("RecoveryOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RecoveryOption, global::System.Convert.ToString); } if (content.Contains("RestoreLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RestoreLocation = (string) content.GetValueForProperty("RestoreLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal)this).RestoreLocation, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/RestoreTargetInfoBase.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/RestoreTargetInfoBase.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/RestoreTargetInfoBase.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/RestoreTargetInfoBase.TypeConverter.cs index 779ccee606fd..069b7744776b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RestoreTargetInfoBase.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RestoreTargetInfoBase.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IRestoreTargetInfoBase ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/RestoreTargetInfoBase.cs b/src/DataProtection/generated/api/Models/Api20221201/RestoreTargetInfoBase.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/RestoreTargetInfoBase.cs rename to src/DataProtection/generated/api/Models/Api20221201/RestoreTargetInfoBase.cs index 966d524de91d..ef5e8c67c692 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RestoreTargetInfoBase.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RestoreTargetInfoBase.cs @@ -3,18 +3,18 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IRestoreTargetInfoBase, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal { /// Internal Acessors for RecoveryOption - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBaseInternal.RecoveryOption { get => this._recoveryOption; set { {_recoveryOption = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBaseInternal.RecoveryOption { get => this._recoveryOption; set { {_recoveryOption = value;} } } /// Backing field for property. private string _objectType; diff --git a/src/DataProtection/generated/api/Models/Api20220501/RestoreTargetInfoBase.json.cs b/src/DataProtection/generated/api/Models/Api20221201/RestoreTargetInfoBase.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/RestoreTargetInfoBase.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/RestoreTargetInfoBase.json.cs index 0dda24da5661..2e3c06e2bc86 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RestoreTargetInfoBase.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RestoreTargetInfoBase.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,15 +54,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.Api20220501.IRestoreTargetInfoBase. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRestoreTargetInfoBase. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase 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/Api20220501/RetentionTag.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/RetentionTag.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20220501/RetentionTag.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/RetentionTag.PowerShell.cs index 36361adfbc95..cccce81ed2ba 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RetentionTag.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RetentionTag.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,27 +55,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.Api20220501.IRetentionTag DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRetentionTag DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTag DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RetentionTag(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTag FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -103,21 +103,21 @@ internal RetentionTag(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTagInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTagInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal)this).ETag, global::System.Convert.ToString); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTagInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTagInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("TagName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTagInternal)this).TagName = (string) content.GetValueForProperty("TagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTagInternal)this).TagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal)this).TagName = (string) content.GetValueForProperty("TagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -132,15 +132,15 @@ internal RetentionTag(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("ETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTagInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTagInternal)this).ETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal)this).ETag = (string) content.GetValueForProperty("ETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal)this).ETag, global::System.Convert.ToString); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTagInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTagInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("TagName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTagInternal)this).TagName = (string) content.GetValueForProperty("TagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTagInternal)this).TagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal)this).TagName = (string) content.GetValueForProperty("TagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal)this).TagName, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/RetentionTag.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/RetentionTag.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/RetentionTag.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/RetentionTag.TypeConverter.cs index 51781dd9cb7e..76054364f141 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RetentionTag.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RetentionTag.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IRetentionTag ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTag ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTag).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTag).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/RetentionTag.cs b/src/DataProtection/generated/api/Models/Api20221201/RetentionTag.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20220501/RetentionTag.cs rename to src/DataProtection/generated/api/Models/Api20221201/RetentionTag.cs index c9f282d415ea..c017d8dd0822 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RetentionTag.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RetentionTag.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Retention tag public partial class RetentionTag : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTag, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTagInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTag, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal { /// Backing field for property. @@ -28,10 +28,10 @@ public partial class RetentionTag : public string Id { get => this._id; } /// Internal Acessors for ETag - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTagInternal.ETag { get => this._eTag; set { {_eTag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal.ETag { get => this._eTag; set { {_eTag = value;} } } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTagInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal.Id { get => this._id; set { {_id = value;} } } /// Backing field for property. private string _tagName; diff --git a/src/DataProtection/generated/api/Models/Api20220501/RetentionTag.json.cs b/src/DataProtection/generated/api/Models/Api20221201/RetentionTag.json.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/RetentionTag.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/RetentionTag.json.cs index 81140ab30bc4..ed2cd3c5bbc7 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/RetentionTag.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/RetentionTag.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.IRetentionTag. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTag. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTag. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTag. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTag FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/ScheduleBasedBackupCriteria.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/ScheduleBasedBackupCriteria.PowerShell.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20220501/ScheduleBasedBackupCriteria.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/ScheduleBasedBackupCriteria.PowerShell.cs index c0a3808046e5..9c26e50b41a3 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ScheduleBasedBackupCriteria.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ScheduleBasedBackupCriteria.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ScheduleBasedBackupCriteria partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool 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.Api20220501.IScheduleBasedBackupCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ScheduleBasedBackupCriteria(content); } /// - /// 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.Api20220501.IScheduleBasedBackupCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ScheduleBasedBackupCriteria(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteria FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteria 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. @@ -105,37 +105,37 @@ internal ScheduleBasedBackupCriteria(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("AbsoluteCriterion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteriaInternal)this).AbsoluteCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker[]) content.GetValueForProperty("AbsoluteCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteriaInternal)this).AbsoluteCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteriaInternal)this).AbsoluteCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker[]) content.GetValueForProperty("AbsoluteCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteriaInternal)this).AbsoluteCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker.CreateFrom)); } if (content.Contains("DaysOfMonth")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteriaInternal)this).DaysOfMonth = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDay[]) content.GetValueForProperty("DaysOfMonth",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteriaInternal)this).DaysOfMonth, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DayTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteriaInternal)this).DaysOfMonth = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDay[]) content.GetValueForProperty("DaysOfMonth",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteriaInternal)this).DaysOfMonth, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DayTypeConverter.ConvertFrom)); } if (content.Contains("DaysOfTheWeek")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteriaInternal)this).DaysOfTheWeek = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek[]) content.GetValueForProperty("DaysOfTheWeek",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteriaInternal)this).DaysOfTheWeek, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteriaInternal)this).DaysOfTheWeek = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek[]) content.GetValueForProperty("DaysOfTheWeek",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteriaInternal)this).DaysOfTheWeek, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek.CreateFrom)); } if (content.Contains("MonthsOfYear")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteriaInternal)this).MonthsOfYear = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month[]) content.GetValueForProperty("MonthsOfYear",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteriaInternal)this).MonthsOfYear, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteriaInternal)this).MonthsOfYear = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month[]) content.GetValueForProperty("MonthsOfYear",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteriaInternal)this).MonthsOfYear, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month.CreateFrom)); } if (content.Contains("ScheduleTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteriaInternal)this).ScheduleTime = (global::System.DateTime[]) content.GetValueForProperty("ScheduleTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IScheduleBasedBackupCriteriaInternal)this).ScheduleTime = (global::System.DateTime[]) content.GetValueForProperty("ScheduleTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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))); } if (content.Contains("WeeksOfTheMonth")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteriaInternal)this).WeeksOfTheMonth = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.WeekNumber[]) content.GetValueForProperty("WeeksOfTheMonth",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteriaInternal)this).WeeksOfTheMonth, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.WeekNumber.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteriaInternal)this).WeeksOfTheMonth = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.WeekNumber[]) content.GetValueForProperty("WeeksOfTheMonth",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteriaInternal)this).WeeksOfTheMonth, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.WeekNumber.CreateFrom)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -150,31 +150,31 @@ internal ScheduleBasedBackupCriteria(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("AbsoluteCriterion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteriaInternal)this).AbsoluteCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker[]) content.GetValueForProperty("AbsoluteCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteriaInternal)this).AbsoluteCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteriaInternal)this).AbsoluteCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker[]) content.GetValueForProperty("AbsoluteCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteriaInternal)this).AbsoluteCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker.CreateFrom)); } if (content.Contains("DaysOfMonth")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteriaInternal)this).DaysOfMonth = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDay[]) content.GetValueForProperty("DaysOfMonth",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteriaInternal)this).DaysOfMonth, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DayTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteriaInternal)this).DaysOfMonth = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDay[]) content.GetValueForProperty("DaysOfMonth",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteriaInternal)this).DaysOfMonth, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DayTypeConverter.ConvertFrom)); } if (content.Contains("DaysOfTheWeek")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteriaInternal)this).DaysOfTheWeek = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek[]) content.GetValueForProperty("DaysOfTheWeek",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteriaInternal)this).DaysOfTheWeek, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteriaInternal)this).DaysOfTheWeek = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek[]) content.GetValueForProperty("DaysOfTheWeek",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteriaInternal)this).DaysOfTheWeek, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek.CreateFrom)); } if (content.Contains("MonthsOfYear")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteriaInternal)this).MonthsOfYear = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month[]) content.GetValueForProperty("MonthsOfYear",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteriaInternal)this).MonthsOfYear, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteriaInternal)this).MonthsOfYear = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month[]) content.GetValueForProperty("MonthsOfYear",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteriaInternal)this).MonthsOfYear, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.Month.CreateFrom)); } if (content.Contains("ScheduleTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteriaInternal)this).ScheduleTime = (global::System.DateTime[]) content.GetValueForProperty("ScheduleTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IScheduleBasedBackupCriteriaInternal)this).ScheduleTime = (global::System.DateTime[]) content.GetValueForProperty("ScheduleTime",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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))); } if (content.Contains("WeeksOfTheMonth")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteriaInternal)this).WeeksOfTheMonth = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.WeekNumber[]) content.GetValueForProperty("WeeksOfTheMonth",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteriaInternal)this).WeeksOfTheMonth, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.WeekNumber.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteriaInternal)this).WeeksOfTheMonth = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.WeekNumber[]) content.GetValueForProperty("WeeksOfTheMonth",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteriaInternal)this).WeeksOfTheMonth, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.WeekNumber.CreateFrom)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupCriteriaInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupCriteriaInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupCriteriaInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ScheduleBasedBackupCriteria.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/ScheduleBasedBackupCriteria.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ScheduleBasedBackupCriteria.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/ScheduleBasedBackupCriteria.TypeConverter.cs index 2f050163c85b..e038d0a79b48 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ScheduleBasedBackupCriteria.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ScheduleBasedBackupCriteria.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IScheduleBasedBackupCriteria ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteria ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteria).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteria).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ScheduleBasedBackupCriteria.cs b/src/DataProtection/generated/api/Models/Api20221201/ScheduleBasedBackupCriteria.cs similarity index 93% rename from src/DataProtection/generated/api/Models/Api20220501/ScheduleBasedBackupCriteria.cs rename to src/DataProtection/generated/api/Models/Api20221201/ScheduleBasedBackupCriteria.cs index 4daf0744f94b..595cfb3756f8 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ScheduleBasedBackupCriteria.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ScheduleBasedBackupCriteria.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Schedule based backup criteria public partial class ScheduleBasedBackupCriteria : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteria, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteriaInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteria, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteriaInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupCriteria __backupCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupCriteria(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupCriteria __backupCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupCriteria(); /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AbsoluteMarker[] _absoluteCriterion; @@ -30,11 +30,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.Api20220501.IDay[] _daysOfMonth; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDay[] DaysOfMonth { get => this._daysOfMonth; set => this._daysOfMonth = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDay[] DaysOfMonth { get => this._daysOfMonth; set => this._daysOfMonth = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DayOfWeek[] _daysOfTheWeek; @@ -52,7 +52,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.Api20220501.IBackupCriteriaInternal)__backupCriteria).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupCriteriaInternal)__backupCriteria).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupCriteriaInternal)__backupCriteria).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupCriteriaInternal)__backupCriteria).ObjectType = value ; } /// Backing field for property. private global::System.DateTime[] _scheduleTime; @@ -89,7 +89,7 @@ public ScheduleBasedBackupCriteria() /// Schedule based backup criteria public partial interface IScheduleBasedBackupCriteria : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupCriteria + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupCriteria { /// /// it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" @@ -109,8 +109,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.Api20220501.IDay) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDay[] DaysOfMonth { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDay) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDay[] DaysOfMonth { get; set; } /// It should be Sunday/Monday/T..../Saturday [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -147,7 +147,7 @@ public partial interface IScheduleBasedBackupCriteria : } /// Schedule based backup criteria internal partial interface IScheduleBasedBackupCriteriaInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupCriteriaInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupCriteriaInternal { /// /// it contains absolute values like "AllBackup" / "FirstOfDay" / "FirstOfWeek" / "FirstOfMonth" @@ -155,7 +155,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.Api20220501.IDay[] DaysOfMonth { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/ScheduleBasedBackupCriteria.json.cs b/src/DataProtection/generated/api/Models/Api20221201/ScheduleBasedBackupCriteria.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/ScheduleBasedBackupCriteria.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/ScheduleBasedBackupCriteria.json.cs index ffb208e721f2..45f6e56c56d0 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ScheduleBasedBackupCriteria.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ScheduleBasedBackupCriteria.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.IScheduleBasedBackupCriteria. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteria. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteria. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteria. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -77,9 +77,9 @@ internal ScheduleBasedBackupCriteria(Microsoft.Azure.PowerShell.Cmdlets.DataProt { return; } - __backupCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupCriteria(json); + __backupCriteria = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDay) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IDay) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/ScheduleBasedTriggerContext.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/ScheduleBasedTriggerContext.PowerShell.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20220501/ScheduleBasedTriggerContext.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/ScheduleBasedTriggerContext.PowerShell.cs index 761f6b5fd90a..5b0fc01ad0d6 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ScheduleBasedTriggerContext.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ScheduleBasedTriggerContext.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,29 +55,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.Api20220501.IScheduleBasedTriggerContext DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IScheduleBasedTriggerContext DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedTriggerContext DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ScheduleBasedTriggerContext(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedTriggerContext FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -105,29 +105,29 @@ internal ScheduleBasedTriggerContext(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("Schedule")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedTriggerContextInternal)this).Schedule = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupSchedule) content.GetValueForProperty("Schedule",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedTriggerContextInternal)this).Schedule, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupScheduleTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedTriggerContextInternal)this).Schedule = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupSchedule) content.GetValueForProperty("Schedule",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedTriggerContextInternal)this).Schedule, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupScheduleTypeConverter.ConvertFrom); } if (content.Contains("TaggingCriterion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedTriggerContextInternal)this).TaggingCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteria[]) content.GetValueForProperty("TaggingCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedTriggerContextInternal)this).TaggingCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TaggingCriteriaTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedTriggerContextInternal)this).TaggingCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteria[]) content.GetValueForProperty("TaggingCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedTriggerContextInternal)this).TaggingCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TaggingCriteriaTypeConverter.ConvertFrom)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("ScheduleRepeatingTimeInterval")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedTriggerContextInternal)this).ScheduleRepeatingTimeInterval = (string[]) content.GetValueForProperty("ScheduleRepeatingTimeInterval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedTriggerContextInternal)this).ScheduleRepeatingTimeInterval, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedTriggerContextInternal)this).ScheduleRepeatingTimeInterval = (string[]) content.GetValueForProperty("ScheduleRepeatingTimeInterval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedTriggerContextInternal)this).ScheduleRepeatingTimeInterval, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("ScheduleTimeZone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedTriggerContextInternal)this).ScheduleTimeZone = (string) content.GetValueForProperty("ScheduleTimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedTriggerContextInternal)this).ScheduleTimeZone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedTriggerContextInternal)this).ScheduleTimeZone = (string) content.GetValueForProperty("ScheduleTimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedTriggerContextInternal)this).ScheduleTimeZone, 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. @@ -142,23 +142,23 @@ internal ScheduleBasedTriggerContext(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("Schedule")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedTriggerContextInternal)this).Schedule = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupSchedule) content.GetValueForProperty("Schedule",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedTriggerContextInternal)this).Schedule, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupScheduleTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedTriggerContextInternal)this).Schedule = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupSchedule) content.GetValueForProperty("Schedule",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedTriggerContextInternal)this).Schedule, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupScheduleTypeConverter.ConvertFrom); } if (content.Contains("TaggingCriterion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedTriggerContextInternal)this).TaggingCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteria[]) content.GetValueForProperty("TaggingCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedTriggerContextInternal)this).TaggingCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TaggingCriteriaTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedTriggerContextInternal)this).TaggingCriterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteria[]) content.GetValueForProperty("TaggingCriterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedTriggerContextInternal)this).TaggingCriterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TaggingCriteriaTypeConverter.ConvertFrom)); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); } if (content.Contains("ScheduleRepeatingTimeInterval")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedTriggerContextInternal)this).ScheduleRepeatingTimeInterval = (string[]) content.GetValueForProperty("ScheduleRepeatingTimeInterval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedTriggerContextInternal)this).ScheduleRepeatingTimeInterval, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedTriggerContextInternal)this).ScheduleRepeatingTimeInterval = (string[]) content.GetValueForProperty("ScheduleRepeatingTimeInterval",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedTriggerContextInternal)this).ScheduleRepeatingTimeInterval, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("ScheduleTimeZone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedTriggerContextInternal)this).ScheduleTimeZone = (string) content.GetValueForProperty("ScheduleTimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedTriggerContextInternal)this).ScheduleTimeZone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedTriggerContextInternal)this).ScheduleTimeZone = (string) content.GetValueForProperty("ScheduleTimeZone",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedTriggerContextInternal)this).ScheduleTimeZone, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ScheduleBasedTriggerContext.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/ScheduleBasedTriggerContext.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ScheduleBasedTriggerContext.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/ScheduleBasedTriggerContext.TypeConverter.cs index 0c5858bf2bc3..3cbbc6703f1f 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ScheduleBasedTriggerContext.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ScheduleBasedTriggerContext.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IScheduleBasedTriggerContext ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedTriggerContext ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedTriggerContext).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedTriggerContext).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ScheduleBasedTriggerContext.cs b/src/DataProtection/generated/api/Models/Api20221201/ScheduleBasedTriggerContext.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20220501/ScheduleBasedTriggerContext.cs rename to src/DataProtection/generated/api/Models/Api20221201/ScheduleBasedTriggerContext.cs index e65cc282ecf3..b7ec0cf1538f 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ScheduleBasedTriggerContext.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ScheduleBasedTriggerContext.cs @@ -3,50 +3,50 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Schedule based trigger context public partial class ScheduleBasedTriggerContext : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedTriggerContext, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedTriggerContextInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedTriggerContext, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedTriggerContextInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContext __triggerContext = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TriggerContext(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContext __triggerContext = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TriggerContext(); /// Internal Acessors for Schedule - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupSchedule Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedTriggerContextInternal.Schedule { get => (this._schedule = this._schedule ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupSchedule()); set { {_schedule = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupSchedule Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedTriggerContextInternal.Schedule { get => (this._schedule = this._schedule ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ITriggerContextInternal)__triggerContext).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContextInternal)__triggerContext).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContextInternal)__triggerContext).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContextInternal)__triggerContext).ObjectType = value ; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupSchedule _schedule; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupSchedule Schedule { get => (this._schedule = this._schedule ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupSchedule()); set => this._schedule = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupSchedule Schedule { get => (this._schedule = this._schedule ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupScheduleInternal)Schedule).RepeatingTimeInterval; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupScheduleInternal)Schedule).RepeatingTimeInterval = value ; } + public string[] ScheduleRepeatingTimeInterval { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupScheduleInternal)Schedule).RepeatingTimeInterval; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupScheduleInternal)Schedule).RepeatingTimeInterval = value ; } /// Time zone for a schedule. Example: Pacific Standard Time [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] - public string ScheduleTimeZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupScheduleInternal)Schedule).TimeZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupScheduleInternal)Schedule).TimeZone = value ?? null; } + public string ScheduleTimeZone { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupScheduleInternal)Schedule).TimeZone; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupScheduleInternal)Schedule).TimeZone = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteria[] _taggingCriterion; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ITaggingCriteria[] TaggingCriterion { get => this._taggingCriterion; set => this._taggingCriterion = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteria[] TaggingCriterion { get => this._taggingCriterion; set => this._taggingCriterion = value; } /// Creates an new instance. public ScheduleBasedTriggerContext() @@ -69,7 +69,7 @@ public ScheduleBasedTriggerContext() /// Schedule based trigger context public partial interface IScheduleBasedTriggerContext : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContext + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContext { /// ISO 8601 repeating time interval format [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -93,22 +93,22 @@ 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.Api20220501.ITaggingCriteria) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteria[] TaggingCriterion { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteria) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteria[] TaggingCriterion { get; set; } } /// Schedule based trigger context internal partial interface IScheduleBasedTriggerContextInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContextInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContextInternal { /// Schedule for this backup - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupSchedule Schedule { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupSchedule Schedule { get; set; } /// ISO 8601 repeating time interval format string[] ScheduleRepeatingTimeInterval { get; set; } /// Time zone for a schedule. Example: Pacific Standard Time string ScheduleTimeZone { get; set; } /// List of tags that can be applicable for given schedule. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteria[] TaggingCriterion { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteria[] TaggingCriterion { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/ScheduleBasedTriggerContext.json.cs b/src/DataProtection/generated/api/Models/Api20221201/ScheduleBasedTriggerContext.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20220501/ScheduleBasedTriggerContext.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/ScheduleBasedTriggerContext.json.cs index 7b9a750b38fb..0b28ec45f79e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ScheduleBasedTriggerContext.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ScheduleBasedTriggerContext.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.IScheduleBasedTriggerContext. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedTriggerContext. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedTriggerContext. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedTriggerContext. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedTriggerContext FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -77,9 +77,9 @@ internal ScheduleBasedTriggerContext(Microsoft.Azure.PowerShell.Cmdlets.DataProt { return; } - __triggerContext = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TriggerContext(json); - {_schedule = If( json?.PropertyT("schedule"), out var __jsonSchedule) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20220501.ITaggingCriteria) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TaggingCriteria.FromJson(__u) )) ))() : null : TaggingCriterion;} + __triggerContext = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TriggerContext(json); + {_schedule = If( json?.PropertyT("schedule"), out var __jsonSchedule) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20221201.ITaggingCriteria) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TaggingCriteria.FromJson(__u) )) ))() : null : TaggingCriterion;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/SecretStoreBasedAuthCredentials.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/SecretStoreBasedAuthCredentials.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20220501/SecretStoreBasedAuthCredentials.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/SecretStoreBasedAuthCredentials.PowerShell.cs index ee65731735e3..f5592d4625b1 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/SecretStoreBasedAuthCredentials.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/SecretStoreBasedAuthCredentials.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class SecretStoreBasedAuthCredentials partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool 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.Api20220501.ISecretStoreBasedAuthCredentials DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreBasedAuthCredentials DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SecretStoreBasedAuthCredentials(content); } /// - /// 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.Api20220501.ISecretStoreBasedAuthCredentials DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreBasedAuthCredentials DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SecretStoreBasedAuthCredentials(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreBasedAuthCredentials FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreBasedAuthCredentials 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. @@ -105,17 +105,17 @@ internal SecretStoreBasedAuthCredentials(global::System.Collections.IDictionary // actually deserialize if (content.Contains("SecretStoreResource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreBasedAuthCredentialsInternal)this).SecretStoreResource = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreResource) content.GetValueForProperty("SecretStoreResource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreBasedAuthCredentialsInternal)this).SecretStoreResource, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SecretStoreResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreBasedAuthCredentialsInternal)this).SecretStoreResource = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResource) content.GetValueForProperty("SecretStoreResource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreBasedAuthCredentialsInternal)this).SecretStoreResource, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecretStoreResourceTypeConverter.ConvertFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentialsInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentialsInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentialsInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentialsInternal)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. @@ -130,11 +130,11 @@ internal SecretStoreBasedAuthCredentials(global::System.Management.Automation.PS // actually deserialize if (content.Contains("SecretStoreResource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreBasedAuthCredentialsInternal)this).SecretStoreResource = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreResource) content.GetValueForProperty("SecretStoreResource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreBasedAuthCredentialsInternal)this).SecretStoreResource, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SecretStoreResourceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreBasedAuthCredentialsInternal)this).SecretStoreResource = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResource) content.GetValueForProperty("SecretStoreResource",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreBasedAuthCredentialsInternal)this).SecretStoreResource, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecretStoreResourceTypeConverter.ConvertFrom); } if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentialsInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentialsInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentialsInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentialsInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/SecretStoreBasedAuthCredentials.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/SecretStoreBasedAuthCredentials.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/SecretStoreBasedAuthCredentials.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/SecretStoreBasedAuthCredentials.TypeConverter.cs index dcb3e1c60380..3d6ca6375cb3 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/SecretStoreBasedAuthCredentials.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/SecretStoreBasedAuthCredentials.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreBasedAuthCredentials ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreBasedAuthCredentials ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreBasedAuthCredentials).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreBasedAuthCredentials).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/SecretStoreBasedAuthCredentials.cs b/src/DataProtection/generated/api/Models/Api20221201/SecretStoreBasedAuthCredentials.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20220501/SecretStoreBasedAuthCredentials.cs rename to src/DataProtection/generated/api/Models/Api20221201/SecretStoreBasedAuthCredentials.cs index 545b6f298d00..634cbd7a78dd 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/SecretStoreBasedAuthCredentials.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/SecretStoreBasedAuthCredentials.cs @@ -3,32 +3,32 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Secret store based authentication credentials. public partial class SecretStoreBasedAuthCredentials : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreBasedAuthCredentials, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreBasedAuthCredentialsInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreBasedAuthCredentials, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreBasedAuthCredentialsInternal, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials __authCredentials = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AuthCredentials(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials __authCredentials = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AuthCredentials(); /// 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.Api20220501.IAuthCredentialsInternal)__authCredentials).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentialsInternal)__authCredentials).ObjectType = value ; } + public string ObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentialsInternal)__authCredentials).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentialsInternal)__authCredentials).ObjectType = value ; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreResource _secretStoreResource; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResource _secretStoreResource; /// Secret store resource [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreResource SecretStoreResource { get => (this._secretStoreResource = this._secretStoreResource ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SecretStoreResource()); set => this._secretStoreResource = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResource SecretStoreResource { get => (this._secretStoreResource = this._secretStoreResource ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecretStoreResource()); set => this._secretStoreResource = value; } /// Creates an new instance. public SecretStoreBasedAuthCredentials() @@ -51,7 +51,7 @@ public SecretStoreBasedAuthCredentials() /// Secret store based authentication credentials. public partial interface ISecretStoreBasedAuthCredentials : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentials + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentials { /// Secret store resource [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -59,16 +59,16 @@ public partial interface ISecretStoreBasedAuthCredentials : ReadOnly = false, Description = @"Secret store resource", SerializedName = @"secretStoreResource", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreResource SecretStoreResource { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResource SecretStoreResource { get; set; } } /// Secret store based authentication credentials. internal partial interface ISecretStoreBasedAuthCredentialsInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAuthCredentialsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAuthCredentialsInternal { /// Secret store resource - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreResource SecretStoreResource { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResource SecretStoreResource { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/SecretStoreBasedAuthCredentials.json.cs b/src/DataProtection/generated/api/Models/Api20221201/SecretStoreBasedAuthCredentials.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/SecretStoreBasedAuthCredentials.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/SecretStoreBasedAuthCredentials.json.cs index 187a0b7c3869..855671d320d3 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/SecretStoreBasedAuthCredentials.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/SecretStoreBasedAuthCredentials.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SecretStoreBasedAuthCredentials 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.Api20220501.ISecretStoreBasedAuthCredentials. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreBasedAuthCredentials. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreBasedAuthCredentials. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreBasedAuthCredentials. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreBasedAuthCredentials FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreBasedAuthCredentials FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new SecretStoreBasedAuthCredentials(json) : null; } @@ -77,8 +77,8 @@ internal SecretStoreBasedAuthCredentials(Microsoft.Azure.PowerShell.Cmdlets.Data { return; } - __authCredentials = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AuthCredentials(json); - {_secretStoreResource = If( json?.PropertyT("secretStoreResource"), out var __jsonSecretStoreResource) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SecretStoreResource.FromJson(__jsonSecretStoreResource) : SecretStoreResource;} + __authCredentials = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AuthCredentials(json); + {_secretStoreResource = If( json?.PropertyT("secretStoreResource"), out var __jsonSecretStoreResource) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SecretStoreResource.FromJson(__jsonSecretStoreResource) : SecretStoreResource;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/SecretStoreResource.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/SecretStoreResource.PowerShell.cs similarity index 86% rename from src/DataProtection/generated/api/Models/Api20220501/SecretStoreResource.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/SecretStoreResource.PowerShell.cs index 0a61a431ea2b..332b8f6f07f1 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/SecretStoreResource.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/SecretStoreResource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class SecretStoreResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool 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.Api20220501.ISecretStoreResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SecretStoreResource(content); } /// - /// 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.Api20220501.ISecretStoreResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SecretStoreResource(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResource 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. @@ -103,21 +103,21 @@ internal SecretStoreResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Uri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreResourceInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreResourceInternal)this).Uri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResourceInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResourceInternal)this).Uri, global::System.Convert.ToString); } if (content.Contains("SecretStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreResourceInternal)this).SecretStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SecretStoreType) content.GetValueForProperty("SecretStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreResourceInternal)this).SecretStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SecretStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResourceInternal)this).SecretStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SecretStoreType) content.GetValueForProperty("SecretStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResourceInternal)this).SecretStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SecretStoreType.CreateFrom); } if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreResourceInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreResourceInternal)this).Value, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResourceInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResourceInternal)this).Value, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,15 +132,15 @@ internal SecretStoreResource(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Uri")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreResourceInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreResourceInternal)this).Uri, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResourceInternal)this).Uri = (string) content.GetValueForProperty("Uri",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResourceInternal)this).Uri, global::System.Convert.ToString); } if (content.Contains("SecretStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreResourceInternal)this).SecretStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SecretStoreType) content.GetValueForProperty("SecretStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreResourceInternal)this).SecretStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SecretStoreType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResourceInternal)this).SecretStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SecretStoreType) content.GetValueForProperty("SecretStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResourceInternal)this).SecretStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SecretStoreType.CreateFrom); } if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreResourceInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreResourceInternal)this).Value, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResourceInternal)this).Value = (string) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResourceInternal)this).Value, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/SecretStoreResource.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/SecretStoreResource.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/SecretStoreResource.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/SecretStoreResource.TypeConverter.cs index 5034bb2ab3e4..ab04cc7bac05 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/SecretStoreResource.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/SecretStoreResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.ISecretStoreResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/SecretStoreResource.cs b/src/DataProtection/generated/api/Models/Api20221201/SecretStoreResource.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/SecretStoreResource.cs rename to src/DataProtection/generated/api/Models/Api20221201/SecretStoreResource.cs index bd2a12b14960..b3633a58cae3 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/SecretStoreResource.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/SecretStoreResource.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Class representing a secret store resource. public partial class SecretStoreResource : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreResource, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResource, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResourceInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/SecretStoreResource.json.cs b/src/DataProtection/generated/api/Models/Api20221201/SecretStoreResource.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/SecretStoreResource.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/SecretStoreResource.json.cs index 48c783cbf595..62fd40784cf2 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/SecretStoreResource.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/SecretStoreResource.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SecretStoreResource 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.Api20220501.ISecretStoreResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISecretStoreResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecretStoreResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new SecretStoreResource(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20221201/SecuritySettings.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/SecuritySettings.PowerShell.cs new file mode 100644 index 000000000000..9fd4e99c3395 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/SecuritySettings.PowerShell.cs @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Class containing security settings of vault + [System.ComponentModel.TypeConverter(typeof(SecuritySettingsTypeConverter))] + public partial class SecuritySettings + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes 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.Api20221201.ISecuritySettings DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SecuritySettings(content); + } + + /// + /// Deserializes a 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.Api20221201.ISecuritySettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SecuritySettings(content); + } + + /// + /// Creates a new instance of , deserializing the content from a 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.Api20221201.ISecuritySettings 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 SecuritySettings(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SoftDeleteSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)this).SoftDeleteSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings) content.GetValueForProperty("SoftDeleteSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)this).SoftDeleteSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SoftDeleteSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("ImmutabilitySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)this).ImmutabilitySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings) content.GetValueForProperty("ImmutabilitySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)this).ImmutabilitySetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ImmutabilitySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("SoftDeleteState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)this).SoftDeleteState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState?) content.GetValueForProperty("SoftDeleteState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)this).SoftDeleteState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState.CreateFrom); + } + if (content.Contains("SoftDeleteRetentionDurationInDay")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)this).SoftDeleteRetentionDurationInDay = (double?) content.GetValueForProperty("SoftDeleteRetentionDurationInDay",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)this).SoftDeleteRetentionDurationInDay, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("ImmutabilityState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)this).ImmutabilityState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState?) content.GetValueForProperty("ImmutabilityState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)this).ImmutabilityState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal SecuritySettings(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SoftDeleteSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)this).SoftDeleteSetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings) content.GetValueForProperty("SoftDeleteSetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)this).SoftDeleteSetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SoftDeleteSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("ImmutabilitySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)this).ImmutabilitySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings) content.GetValueForProperty("ImmutabilitySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)this).ImmutabilitySetting, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ImmutabilitySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("SoftDeleteState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)this).SoftDeleteState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState?) content.GetValueForProperty("SoftDeleteState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)this).SoftDeleteState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState.CreateFrom); + } + if (content.Contains("SoftDeleteRetentionDurationInDay")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)this).SoftDeleteRetentionDurationInDay = (double?) content.GetValueForProperty("SoftDeleteRetentionDurationInDay",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)this).SoftDeleteRetentionDurationInDay, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("ImmutabilityState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)this).ImmutabilityState = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState?) content.GetValueForProperty("ImmutabilityState",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal)this).ImmutabilityState, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Class containing security settings of vault + [System.ComponentModel.TypeConverter(typeof(SecuritySettingsTypeConverter))] + public partial interface ISecuritySettings + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/SecuritySettings.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/SecuritySettings.TypeConverter.cs new file mode 100644 index 000000000000..645569f5c7b3 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/SecuritySettings.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class SecuritySettingsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.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 into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettings ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettings).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return SecuritySettings.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return SecuritySettings.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return SecuritySettings.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/Api20221201/SecuritySettings.cs b/src/DataProtection/generated/api/Models/Api20221201/SecuritySettings.cs new file mode 100644 index 000000000000..b23853f72b65 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/SecuritySettings.cs @@ -0,0 +1,100 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Class containing security settings of vault + public partial class SecuritySettings : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettings, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings _immutabilitySetting; + + /// Immutability Settings at vault level + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings ImmutabilitySetting { get => (this._immutabilitySetting = this._immutabilitySetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ImmutabilitySettings()); set => this._immutabilitySetting = value; } + + /// Immutability state + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState? ImmutabilityState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettingsInternal)ImmutabilitySetting).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettingsInternal)ImmutabilitySetting).State = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState)""); } + + /// Internal Acessors for ImmutabilitySetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal.ImmutabilitySetting { get => (this._immutabilitySetting = this._immutabilitySetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ImmutabilitySettings()); set { {_immutabilitySetting = value;} } } + + /// Internal Acessors for SoftDeleteSetting + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettingsInternal.SoftDeleteSetting { get => (this._softDeleteSetting = this._softDeleteSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SoftDeleteSettings()); set { {_softDeleteSetting = value;} } } + + /// Soft delete retention duration + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public double? SoftDeleteRetentionDurationInDay { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettingsInternal)SoftDeleteSetting).RetentionDurationInDay; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettingsInternal)SoftDeleteSetting).RetentionDurationInDay = value ?? default(double); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings _softDeleteSetting; + + /// Soft delete related settings + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings SoftDeleteSetting { get => (this._softDeleteSetting = this._softDeleteSetting ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SoftDeleteSettings()); set => this._softDeleteSetting = value; } + + /// State of soft delete + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState? SoftDeleteState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettingsInternal)SoftDeleteSetting).State; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettingsInternal)SoftDeleteSetting).State = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState)""); } + + /// Creates an new instance. + public SecuritySettings() + { + + } + } + /// Class containing security settings of vault + public partial interface ISecuritySettings : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable + { + /// Immutability state + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Immutability state", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState? ImmutabilityState { get; set; } + /// Soft delete retention duration + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Soft delete retention duration", + SerializedName = @"retentionDurationInDays", + PossibleTypes = new [] { typeof(double) })] + double? SoftDeleteRetentionDurationInDay { get; set; } + /// State of soft delete + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"State of soft delete", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState? SoftDeleteState { get; set; } + + } + /// Class containing security settings of vault + internal partial interface ISecuritySettingsInternal + + { + /// Immutability Settings at vault level + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IImmutabilitySettings ImmutabilitySetting { get; set; } + /// Immutability state + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState? ImmutabilityState { get; set; } + /// Soft delete retention duration + double? SoftDeleteRetentionDurationInDay { get; set; } + /// Soft delete related settings + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings SoftDeleteSetting { get; set; } + /// State of soft delete + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState? SoftDeleteState { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/SecuritySettings.json.cs b/src/DataProtection/generated/api/Models/Api20221201/SecuritySettings.json.cs new file mode 100644 index 000000000000..ed4a60662e1e --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/SecuritySettings.json.cs @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Class containing security settings of vault + public partial class SecuritySettings + { + + /// + /// 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 serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.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.Api20221201.ISecuritySettings. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettings. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISecuritySettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new SecuritySettings(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 SecuritySettings(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_softDeleteSetting = If( json?.PropertyT("softDeleteSettings"), out var __jsonSoftDeleteSettings) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SoftDeleteSettings.FromJson(__jsonSoftDeleteSettings) : SoftDeleteSetting;} + {_immutabilitySetting = If( json?.PropertyT("immutabilitySettings"), out var __jsonImmutabilitySettings) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ImmutabilitySettings.FromJson(__jsonImmutabilitySettings) : ImmutabilitySetting;} + 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 != this._softDeleteSetting ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) this._softDeleteSetting.ToJson(null,serializationMode) : null, "softDeleteSettings" ,container.Add ); + AddIf( null != this._immutabilitySetting ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) this._immutabilitySetting.ToJson(null,serializationMode) : null, "immutabilitySettings" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/SoftDeleteSettings.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/SoftDeleteSettings.PowerShell.cs new file mode 100644 index 000000000000..4f40c3a08ec9 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/SoftDeleteSettings.PowerShell.cs @@ -0,0 +1,152 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// Soft delete related settings + [System.ComponentModel.TypeConverter(typeof(SoftDeleteSettingsTypeConverter))] + public partial class SoftDeleteSettings + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes 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.Api20221201.ISoftDeleteSettings DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SoftDeleteSettings(content); + } + + /// + /// Deserializes a 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.Api20221201.ISoftDeleteSettings DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SoftDeleteSettings(content); + } + + /// + /// Creates a new instance of , deserializing the content from a 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.Api20221201.ISoftDeleteSettings 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 SoftDeleteSettings(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettingsInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettingsInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState.CreateFrom); + } + if (content.Contains("RetentionDurationInDay")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettingsInternal)this).RetentionDurationInDay = (double?) content.GetValueForProperty("RetentionDurationInDay",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettingsInternal)this).RetentionDurationInDay, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal SoftDeleteSettings(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettingsInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettingsInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState.CreateFrom); + } + if (content.Contains("RetentionDurationInDay")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettingsInternal)this).RetentionDurationInDay = (double?) content.GetValueForProperty("RetentionDurationInDay",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettingsInternal)this).RetentionDurationInDay, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Soft delete related settings + [System.ComponentModel.TypeConverter(typeof(SoftDeleteSettingsTypeConverter))] + public partial interface ISoftDeleteSettings + + { + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/SoftDeleteSettings.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/SoftDeleteSettings.TypeConverter.cs new file mode 100644 index 000000000000..19ab65a5210b --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/SoftDeleteSettings.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class SoftDeleteSettingsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.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 into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return SoftDeleteSettings.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return SoftDeleteSettings.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return SoftDeleteSettings.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/Api20221201/SoftDeleteSettings.cs b/src/DataProtection/generated/api/Models/Api20221201/SoftDeleteSettings.cs new file mode 100644 index 000000000000..19ebe0d5f941 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/SoftDeleteSettings.cs @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Soft delete related settings + public partial class SoftDeleteSettings : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettingsInternal + { + + /// Backing field for property. + private double? _retentionDurationInDay; + + /// Soft delete retention duration + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public double? RetentionDurationInDay { get => this._retentionDurationInDay; set => this._retentionDurationInDay = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState? _state; + + /// State of soft delete + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState? State { get => this._state; set => this._state = value; } + + /// Creates an new instance. + public SoftDeleteSettings() + { + + } + } + /// Soft delete related settings + public partial interface ISoftDeleteSettings : + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable + { + /// Soft delete retention duration + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Soft delete retention duration", + SerializedName = @"retentionDurationInDays", + PossibleTypes = new [] { typeof(double) })] + double? RetentionDurationInDay { get; set; } + /// State of soft delete + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"State of soft delete", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState? State { get; set; } + + } + /// Soft delete related settings + internal partial interface ISoftDeleteSettingsInternal + + { + /// Soft delete retention duration + double? RetentionDurationInDay { get; set; } + /// State of soft delete + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState? State { get; set; } + + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20221201/SoftDeleteSettings.json.cs b/src/DataProtection/generated/api/Models/Api20221201/SoftDeleteSettings.json.cs new file mode 100644 index 000000000000..4e77d7696c30 --- /dev/null +++ b/src/DataProtection/generated/api/Models/Api20221201/SoftDeleteSettings.json.cs @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; + + /// Soft delete related settings + public partial class SoftDeleteSettings + { + + /// + /// 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 serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.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.Api20221201.ISoftDeleteSettings. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISoftDeleteSettings FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new SoftDeleteSettings(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 SoftDeleteSettings(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_state = If( json?.PropertyT("state"), out var __jsonState) ? (string)__jsonState : (string)State;} + {_retentionDurationInDay = If( json?.PropertyT("retentionDurationInDays"), out var __jsonRetentionDurationInDays) ? (double?)__jsonRetentionDurationInDays : RetentionDurationInDay;} + 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._state)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._state.ToString()) : null, "state" ,container.Add ); + AddIf( null != this._retentionDurationInDay ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNumber((double)this._retentionDurationInDay) : null, "retentionDurationInDays" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/SourceLifeCycle.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/SourceLifeCycle.PowerShell.cs similarity index 78% rename from src/DataProtection/generated/api/Models/Api20220501/SourceLifeCycle.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/SourceLifeCycle.PowerShell.cs index f95383dff703..ec013fe1c97b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/SourceLifeCycle.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/SourceLifeCycle.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,27 +55,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.Api20220501.ISourceLifeCycle DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ISourceLifeCycle DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycle DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SourceLifeCycle(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycle FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -103,37 +103,37 @@ internal SourceLifeCycle(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DeleteAfter")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).DeleteAfter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOption) content.GetValueForProperty("DeleteAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).DeleteAfter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DeleteOptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).DeleteAfter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOption) content.GetValueForProperty("DeleteAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).DeleteAfter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeleteOptionTypeConverter.ConvertFrom); } if (content.Contains("SourceDataStore")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).SourceDataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBase) content.GetValueForProperty("SourceDataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).SourceDataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DataStoreInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).SourceDataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBase) content.GetValueForProperty("SourceDataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).SourceDataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DataStoreInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("TargetDataStoreCopySetting")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).TargetDataStoreCopySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySetting[]) content.GetValueForProperty("TargetDataStoreCopySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).TargetDataStoreCopySetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TargetCopySettingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).TargetDataStoreCopySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySetting[]) content.GetValueForProperty("TargetDataStoreCopySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).TargetDataStoreCopySetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TargetCopySettingTypeConverter.ConvertFrom)); } if (content.Contains("DeleteAfterDuration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).DeleteAfterDuration = (string) content.GetValueForProperty("DeleteAfterDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).DeleteAfterDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).DeleteAfterDuration = (string) content.GetValueForProperty("DeleteAfterDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).DeleteAfterDuration, global::System.Convert.ToString); } if (content.Contains("DeleteAfterObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).DeleteAfterObjectType = (string) content.GetValueForProperty("DeleteAfterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).DeleteAfterObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).DeleteAfterObjectType = (string) content.GetValueForProperty("DeleteAfterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).DeleteAfterObjectType, global::System.Convert.ToString); } if (content.Contains("SourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); } if (content.Contains("SourceDataStoreObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).SourceDataStoreObjectType = (string) content.GetValueForProperty("SourceDataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).SourceDataStoreObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).SourceDataStoreObjectType = (string) content.GetValueForProperty("SourceDataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -148,31 +148,31 @@ internal SourceLifeCycle(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("DeleteAfter")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).DeleteAfter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOption) content.GetValueForProperty("DeleteAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).DeleteAfter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DeleteOptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).DeleteAfter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOption) content.GetValueForProperty("DeleteAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).DeleteAfter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeleteOptionTypeConverter.ConvertFrom); } if (content.Contains("SourceDataStore")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).SourceDataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBase) content.GetValueForProperty("SourceDataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).SourceDataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DataStoreInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).SourceDataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBase) content.GetValueForProperty("SourceDataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).SourceDataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DataStoreInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("TargetDataStoreCopySetting")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).TargetDataStoreCopySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySetting[]) content.GetValueForProperty("TargetDataStoreCopySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).TargetDataStoreCopySetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TargetCopySettingTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).TargetDataStoreCopySetting = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySetting[]) content.GetValueForProperty("TargetDataStoreCopySetting",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).TargetDataStoreCopySetting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TargetCopySettingTypeConverter.ConvertFrom)); } if (content.Contains("DeleteAfterDuration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).DeleteAfterDuration = (string) content.GetValueForProperty("DeleteAfterDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).DeleteAfterDuration, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).DeleteAfterDuration = (string) content.GetValueForProperty("DeleteAfterDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).DeleteAfterDuration, global::System.Convert.ToString); } if (content.Contains("DeleteAfterObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).DeleteAfterObjectType = (string) content.GetValueForProperty("DeleteAfterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).DeleteAfterObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).DeleteAfterObjectType = (string) content.GetValueForProperty("DeleteAfterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).DeleteAfterObjectType, global::System.Convert.ToString); } if (content.Contains("SourceDataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).SourceDataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("SourceDataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).SourceDataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); } if (content.Contains("SourceDataStoreObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).SourceDataStoreObjectType = (string) content.GetValueForProperty("SourceDataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal)this).SourceDataStoreObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).SourceDataStoreObjectType = (string) content.GetValueForProperty("SourceDataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal)this).SourceDataStoreObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/SourceLifeCycle.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/SourceLifeCycle.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/SourceLifeCycle.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/SourceLifeCycle.TypeConverter.cs index cfbc1f40f05d..ce070b548d62 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/SourceLifeCycle.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/SourceLifeCycle.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.ISourceLifeCycle ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycle ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycle).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycle).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/SourceLifeCycle.cs b/src/DataProtection/generated/api/Models/Api20221201/SourceLifeCycle.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20220501/SourceLifeCycle.cs rename to src/DataProtection/generated/api/Models/Api20221201/SourceLifeCycle.cs index 64768aed63b8..515e054d2811 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/SourceLifeCycle.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/SourceLifeCycle.cs @@ -3,57 +3,57 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Source LifeCycle public partial class SourceLifeCycle : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycle, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycle, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOption _deleteAfter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOption _deleteAfter; /// Delete Option [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOption DeleteAfter { get => (this._deleteAfter = this._deleteAfter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DeleteOption()); set => this._deleteAfter = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOption DeleteAfter { get => (this._deleteAfter = this._deleteAfter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDeleteOptionInternal)DeleteAfter).Duration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOptionInternal)DeleteAfter).Duration = value ; } + public string DeleteAfterDuration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOptionInternal)DeleteAfter).Duration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDeleteOptionInternal)DeleteAfter).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOptionInternal)DeleteAfter).ObjectType = value ; } + public string DeleteAfterObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOptionInternal)DeleteAfter).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOptionInternal)DeleteAfter).ObjectType = value ; } /// Internal Acessors for DeleteAfter - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOption Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal.DeleteAfter { get => (this._deleteAfter = this._deleteAfter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DeleteOption()); set { {_deleteAfter = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDeleteOption Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal.DeleteAfter { get => (this._deleteAfter = this._deleteAfter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeleteOption()); set { {_deleteAfter = value;} } } /// Internal Acessors for SourceDataStore - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBase Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycleInternal.SourceDataStore { get => (this._sourceDataStore = this._sourceDataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DataStoreInfoBase()); set { {_sourceDataStore = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBase Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycleInternal.SourceDataStore { get => (this._sourceDataStore = this._sourceDataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DataStoreInfoBase()); set { {_sourceDataStore = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBase _sourceDataStore; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBase _sourceDataStore; /// DataStoreInfo base [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBase SourceDataStore { get => (this._sourceDataStore = this._sourceDataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DataStoreInfoBase()); set => this._sourceDataStore = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBase SourceDataStore { get => (this._sourceDataStore = this._sourceDataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDataStoreInfoBaseInternal)SourceDataStore).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBaseInternal)SourceDataStore).ObjectType = value ; } + public string SourceDataStoreObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBaseInternal)SourceDataStore).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDataStoreInfoBaseInternal)SourceDataStore).DataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBaseInternal)SourceDataStore).DataStoreType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes SourceDataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBaseInternal)SourceDataStore).DataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBaseInternal)SourceDataStore).DataStoreType = value ; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySetting[] _targetDataStoreCopySetting; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySetting[] _targetDataStoreCopySetting; [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySetting[] TargetDataStoreCopySetting { get => this._targetDataStoreCopySetting; set => this._targetDataStoreCopySetting = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySetting[] TargetDataStoreCopySetting { get => this._targetDataStoreCopySetting; set => this._targetDataStoreCopySetting = value; } /// Creates an new instance. public SourceLifeCycle() @@ -103,8 +103,8 @@ public partial interface ISourceLifeCycle : ReadOnly = false, Description = @"", SerializedName = @"targetDataStoreCopySettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySetting) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySetting[] TargetDataStoreCopySetting { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySetting) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySetting[] TargetDataStoreCopySetting { get; set; } } /// Source LifeCycle @@ -112,19 +112,19 @@ internal partial interface ISourceLifeCycleInternal { /// Delete Option - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDeleteOption DeleteAfter { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDataStoreInfoBase SourceDataStore { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ITargetCopySetting[] TargetDataStoreCopySetting { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySetting[] TargetDataStoreCopySetting { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/SourceLifeCycle.json.cs b/src/DataProtection/generated/api/Models/Api20221201/SourceLifeCycle.json.cs similarity index 94% rename from src/DataProtection/generated/api/Models/Api20220501/SourceLifeCycle.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/SourceLifeCycle.json.cs index 5e993b002815..8cbbe71abb5d 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/SourceLifeCycle.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/SourceLifeCycle.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.ISourceLifeCycle. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycle. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycle. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycle. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycle FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -77,9 +77,9 @@ internal SourceLifeCycle(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runti { return; } - {_deleteAfter = If( json?.PropertyT("deleteAfter"), out var __jsonDeleteAfter) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DeleteOption.FromJson(__jsonDeleteAfter) : DeleteAfter;} - {_sourceDataStore = If( json?.PropertyT("sourceDataStore"), out var __jsonSourceDataStore) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20220501.ITargetCopySetting) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TargetCopySetting.FromJson(__u) )) ))() : null : TargetDataStoreCopySetting;} + {_deleteAfter = If( json?.PropertyT("deleteAfter"), out var __jsonDeleteAfter) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DeleteOption.FromJson(__jsonDeleteAfter) : DeleteAfter;} + {_sourceDataStore = If( json?.PropertyT("sourceDataStore"), out var __jsonSourceDataStore) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20221201.ITargetCopySetting) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TargetCopySetting.FromJson(__u) )) ))() : null : TargetDataStoreCopySetting;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/StorageSetting.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/StorageSetting.PowerShell.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20220501/StorageSetting.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/StorageSetting.PowerShell.cs index 3ba8f0351bef..3b3565211da8 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/StorageSetting.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/StorageSetting.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,27 +55,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.Api20220501.IStorageSetting DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IStorageSetting DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSetting DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new StorageSetting(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSetting FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -103,17 +103,17 @@ internal StorageSetting(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DatastoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSettingInternal)this).DatastoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes?) content.GetValueForProperty("DatastoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSettingInternal)this).DatastoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSettingInternal)this).DatastoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes?) content.GetValueForProperty("DatastoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSettingInternal)this).DatastoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes.CreateFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSettingInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingTypes?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSettingInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSettingInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingTypes?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -128,11 +128,11 @@ internal StorageSetting(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("DatastoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSettingInternal)this).DatastoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes?) content.GetValueForProperty("DatastoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSettingInternal)this).DatastoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSettingInternal)this).DatastoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes?) content.GetValueForProperty("DatastoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSettingInternal)this).DatastoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes.CreateFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSettingInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingTypes?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSettingInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSettingInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingTypes?) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSettingInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingTypes.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/StorageSetting.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/StorageSetting.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/StorageSetting.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/StorageSetting.TypeConverter.cs index 6dd60f00abe3..0d03bf26426d 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/StorageSetting.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/StorageSetting.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IStorageSetting ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSetting ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSetting).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSetting).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/StorageSetting.cs b/src/DataProtection/generated/api/Models/Api20221201/StorageSetting.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/StorageSetting.cs rename to src/DataProtection/generated/api/Models/Api20221201/StorageSetting.cs index ef83685b9430..b0142c196fbf 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/StorageSetting.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/StorageSetting.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Storage setting public partial class StorageSetting : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSetting, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSettingInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSetting, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSettingInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/StorageSetting.json.cs b/src/DataProtection/generated/api/Models/Api20221201/StorageSetting.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/StorageSetting.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/StorageSetting.json.cs index 574dedf0deaf..950242ed48e9 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/StorageSetting.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/StorageSetting.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.IStorageSetting. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSetting. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSetting. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSetting. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSetting FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/SupportedFeature.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/SupportedFeature.PowerShell.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20220501/SupportedFeature.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/SupportedFeature.PowerShell.cs index 265228276ec8..d4c9222f1e99 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/SupportedFeature.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/SupportedFeature.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,27 +55,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.Api20220501.ISupportedFeature DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ISupportedFeature DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISupportedFeature DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SupportedFeature(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISupportedFeature FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -103,21 +103,21 @@ internal SupportedFeature(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("FeatureName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISupportedFeatureInternal)this).FeatureName = (string) content.GetValueForProperty("FeatureName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISupportedFeatureInternal)this).FeatureName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISupportedFeatureInternal)this).FeatureName = (string) content.GetValueForProperty("FeatureName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISupportedFeatureInternal)this).FeatureName, global::System.Convert.ToString); } if (content.Contains("SupportStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISupportedFeatureInternal)this).SupportStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus?) content.GetValueForProperty("SupportStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISupportedFeatureInternal)this).SupportStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISupportedFeatureInternal)this).SupportStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus?) content.GetValueForProperty("SupportStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISupportedFeatureInternal)this).SupportStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus.CreateFrom); } if (content.Contains("ExposureControlledFeature")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISupportedFeatureInternal)this).ExposureControlledFeature = (string[]) content.GetValueForProperty("ExposureControlledFeature",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISupportedFeatureInternal)this).ExposureControlledFeature, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISupportedFeatureInternal)this).ExposureControlledFeature = (string[]) content.GetValueForProperty("ExposureControlledFeature",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -132,15 +132,15 @@ internal SupportedFeature(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("FeatureName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISupportedFeatureInternal)this).FeatureName = (string) content.GetValueForProperty("FeatureName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISupportedFeatureInternal)this).FeatureName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISupportedFeatureInternal)this).FeatureName = (string) content.GetValueForProperty("FeatureName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISupportedFeatureInternal)this).FeatureName, global::System.Convert.ToString); } if (content.Contains("SupportStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISupportedFeatureInternal)this).SupportStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus?) content.GetValueForProperty("SupportStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISupportedFeatureInternal)this).SupportStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISupportedFeatureInternal)this).SupportStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus?) content.GetValueForProperty("SupportStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISupportedFeatureInternal)this).SupportStatus, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.FeatureSupportStatus.CreateFrom); } if (content.Contains("ExposureControlledFeature")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISupportedFeatureInternal)this).ExposureControlledFeature = (string[]) content.GetValueForProperty("ExposureControlledFeature",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISupportedFeatureInternal)this).ExposureControlledFeature, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISupportedFeatureInternal)this).ExposureControlledFeature = (string[]) content.GetValueForProperty("ExposureControlledFeature",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISupportedFeatureInternal)this).ExposureControlledFeature, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/SupportedFeature.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/SupportedFeature.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/SupportedFeature.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/SupportedFeature.TypeConverter.cs index 61d8a0499519..0a9820ea7f43 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/SupportedFeature.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/SupportedFeature.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.ISupportedFeature ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISupportedFeature ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISupportedFeature).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISupportedFeature).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/SupportedFeature.cs b/src/DataProtection/generated/api/Models/Api20221201/SupportedFeature.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/SupportedFeature.cs rename to src/DataProtection/generated/api/Models/Api20221201/SupportedFeature.cs index 53b8f4ebb418..3982ff6954b0 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/SupportedFeature.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/SupportedFeature.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Elements class for feature request public partial class SupportedFeature : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISupportedFeature, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISupportedFeatureInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISupportedFeature, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISupportedFeatureInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/SupportedFeature.json.cs b/src/DataProtection/generated/api/Models/Api20221201/SupportedFeature.json.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/SupportedFeature.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/SupportedFeature.json.cs index fd21f19882f9..600691e527e4 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/SupportedFeature.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/SupportedFeature.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.ISupportedFeature. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISupportedFeature. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISupportedFeature. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISupportedFeature. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISupportedFeature FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/SyncBackupInstanceRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/SyncBackupInstanceRequest.PowerShell.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20220501/SyncBackupInstanceRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/SyncBackupInstanceRequest.PowerShell.cs index 18db96ae17b7..aa86203ab07b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/SyncBackupInstanceRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/SyncBackupInstanceRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class SyncBackupInstanceRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool 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.Api20220501.ISyncBackupInstanceRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISyncBackupInstanceRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SyncBackupInstanceRequest(content); } /// - /// 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.Api20220501.ISyncBackupInstanceRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISyncBackupInstanceRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SyncBackupInstanceRequest(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISyncBackupInstanceRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISyncBackupInstanceRequest 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. @@ -105,13 +105,13 @@ internal SyncBackupInstanceRequest(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("SyncType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISyncBackupInstanceRequestInternal)this).SyncType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType?) content.GetValueForProperty("SyncType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISyncBackupInstanceRequestInternal)this).SyncType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISyncBackupInstanceRequestInternal)this).SyncType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType?) content.GetValueForProperty("SyncType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISyncBackupInstanceRequestInternal)this).SyncType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType.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. @@ -126,7 +126,7 @@ internal SyncBackupInstanceRequest(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("SyncType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISyncBackupInstanceRequestInternal)this).SyncType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType?) content.GetValueForProperty("SyncType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISyncBackupInstanceRequestInternal)this).SyncType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISyncBackupInstanceRequestInternal)this).SyncType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType?) content.GetValueForProperty("SyncType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISyncBackupInstanceRequestInternal)this).SyncType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/SyncBackupInstanceRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/SyncBackupInstanceRequest.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/SyncBackupInstanceRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/SyncBackupInstanceRequest.TypeConverter.cs index a641107e21e4..ca804ed9589b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/SyncBackupInstanceRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/SyncBackupInstanceRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.ISyncBackupInstanceRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISyncBackupInstanceRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISyncBackupInstanceRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISyncBackupInstanceRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/SyncBackupInstanceRequest.cs b/src/DataProtection/generated/api/Models/Api20221201/SyncBackupInstanceRequest.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/SyncBackupInstanceRequest.cs rename to src/DataProtection/generated/api/Models/Api20221201/SyncBackupInstanceRequest.cs index e83e6ad315d5..cafd3513c9e9 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/SyncBackupInstanceRequest.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/SyncBackupInstanceRequest.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Sync BackupInstance Request public partial class SyncBackupInstanceRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISyncBackupInstanceRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISyncBackupInstanceRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISyncBackupInstanceRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISyncBackupInstanceRequestInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/SyncBackupInstanceRequest.json.cs b/src/DataProtection/generated/api/Models/Api20221201/SyncBackupInstanceRequest.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/SyncBackupInstanceRequest.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/SyncBackupInstanceRequest.json.cs index 9f2ef0ddaff7..ac66a402ee8b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/SyncBackupInstanceRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/SyncBackupInstanceRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SyncBackupInstanceRequest 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.Api20220501.ISyncBackupInstanceRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISyncBackupInstanceRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISyncBackupInstanceRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISyncBackupInstanceRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISyncBackupInstanceRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISyncBackupInstanceRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonObject json ? new SyncBackupInstanceRequest(json) : null; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/SystemData.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/SystemData.PowerShell.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20220501/SystemData.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/SystemData.PowerShell.cs index 4649b32b5435..23d33a2b8778 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/SystemData.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/SystemData.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,27 +55,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.Api20220501.ISystemData DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SystemData(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -103,33 +103,33 @@ internal SystemData(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("CreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); } if (content.Contains("CreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType.CreateFrom); } if (content.Contains("CreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); } if (content.Contains("LastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType.CreateFrom); } if (content.Contains("LastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -144,27 +144,27 @@ internal SystemData(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("CreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); } if (content.Contains("CreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType.CreateFrom); } if (content.Contains("CreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); } if (content.Contains("LastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CreatedByType.CreateFrom); } if (content.Contains("LastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/SystemData.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/SystemData.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/SystemData.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/SystemData.TypeConverter.cs index d6905f46821e..97c332494666 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/SystemData.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/SystemData.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/SystemData.cs b/src/DataProtection/generated/api/Models/Api20221201/SystemData.cs similarity index 99% rename from src/DataProtection/generated/api/Models/Api20220501/SystemData.cs rename to src/DataProtection/generated/api/Models/Api20221201/SystemData.cs index 710f6416f8d6..970e5a752a2d 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/SystemData.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/SystemData.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.ISystemData, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemDataInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemDataInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/SystemData.json.cs b/src/DataProtection/generated/api/Models/Api20221201/SystemData.json.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/SystemData.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/SystemData.json.cs index bd498df0692d..6836e122c22f 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/SystemData.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/SystemData.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.ISystemData. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISystemData. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/TaggingCriteria.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/TaggingCriteria.PowerShell.cs similarity index 77% rename from src/DataProtection/generated/api/Models/Api20220501/TaggingCriteria.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/TaggingCriteria.PowerShell.cs index 519bcbc765a6..982fde524963 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/TaggingCriteria.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/TaggingCriteria.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,27 +55,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.Api20220501.ITaggingCriteria DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ITaggingCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteria DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TaggingCriteria(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteria FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -103,37 +103,37 @@ internal TaggingCriteria(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("TagInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).TagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTag) content.GetValueForProperty("TagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).TagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RetentionTagTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).TagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTag) content.GetValueForProperty("TagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).TagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RetentionTagTypeConverter.ConvertFrom); } if (content.Contains("Criterion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).Criterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupCriteria[]) content.GetValueForProperty("Criterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).Criterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupCriteriaTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).Criterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupCriteria[]) content.GetValueForProperty("Criterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).Criterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupCriteriaTypeConverter.ConvertFrom)); } if (content.Contains("IsDefault")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).IsDefault = (bool) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).IsDefault = (bool) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("TaggingPriority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).TaggingPriority = (long) content.GetValueForProperty("TaggingPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).TaggingPriority, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).TaggingPriority = (long) content.GetValueForProperty("TaggingPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).TaggingPriority, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TagInfoETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).TagInfoETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).TagInfoETag, global::System.Convert.ToString); } if (content.Contains("TagInfoId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).TagInfoId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).TagInfoId, global::System.Convert.ToString); } if (content.Contains("TagInfoTagName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).TagInfoTagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -148,31 +148,31 @@ internal TaggingCriteria(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("TagInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).TagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTag) content.GetValueForProperty("TagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).TagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RetentionTagTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).TagInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTag) content.GetValueForProperty("TagInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).TagInfo, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RetentionTagTypeConverter.ConvertFrom); } if (content.Contains("Criterion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).Criterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupCriteria[]) content.GetValueForProperty("Criterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).Criterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupCriteriaTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).Criterion = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupCriteria[]) content.GetValueForProperty("Criterion",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).Criterion, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupCriteriaTypeConverter.ConvertFrom)); } if (content.Contains("IsDefault")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).IsDefault = (bool) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).IsDefault = (bool) content.GetValueForProperty("IsDefault",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).IsDefault, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("TaggingPriority")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).TaggingPriority = (long) content.GetValueForProperty("TaggingPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).TaggingPriority, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).TaggingPriority = (long) content.GetValueForProperty("TaggingPriority",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).TaggingPriority, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TagInfoETag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).TagInfoETag, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).TagInfoETag = (string) content.GetValueForProperty("TagInfoETag",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).TagInfoETag, global::System.Convert.ToString); } if (content.Contains("TagInfoId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).TagInfoId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).TagInfoId = (string) content.GetValueForProperty("TagInfoId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).TagInfoId, global::System.Convert.ToString); } if (content.Contains("TagInfoTagName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal)this).TagInfoTagName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).TagInfoTagName = (string) content.GetValueForProperty("TagInfoTagName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal)this).TagInfoTagName, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/TaggingCriteria.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/TaggingCriteria.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/TaggingCriteria.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/TaggingCriteria.TypeConverter.cs index 251d82552ef9..050f71980103 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/TaggingCriteria.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/TaggingCriteria.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.ITaggingCriteria ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteria ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteria).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteria).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/TaggingCriteria.cs b/src/DataProtection/generated/api/Models/Api20221201/TaggingCriteria.cs similarity index 84% rename from src/DataProtection/generated/api/Models/Api20220501/TaggingCriteria.cs rename to src/DataProtection/generated/api/Models/Api20221201/TaggingCriteria.cs index 4eb4b765539b..0f1bb6305a28 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/TaggingCriteria.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/TaggingCriteria.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Tagging criteria public partial class TaggingCriteria : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteria, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteria, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupCriteria[] _criterion; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupCriteria[] Criterion { get => this._criterion; set => this._criterion = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupCriteria[] Criterion { get => this._criterion; set => this._criterion = value; } /// Backing field for property. private bool _isDefault; @@ -28,32 +28,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.Api20220501.IRetentionTag Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal.TagInfo { get => (this._tagInfo = this._tagInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RetentionTag()); set { {_tagInfo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTag Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal.TagInfo { get => (this._tagInfo = this._tagInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.RetentionTag()); set { {_tagInfo = value;} } } /// Internal Acessors for TagInfoETag - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal.TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTagInternal)TagInfo).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTagInternal)TagInfo).ETag = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal.TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal)TagInfo).ETag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal)TagInfo).ETag = value; } /// Internal Acessors for TagInfoId - string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteriaInternal.TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTagInternal)TagInfo).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTagInternal)TagInfo).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteriaInternal.TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal)TagInfo).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal)TagInfo).Id = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTag _tagInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRetentionTag TagInfo { get => (this._tagInfo = this._tagInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.RetentionTag()); set => this._tagInfo = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTag TagInfo { get => (this._tagInfo = this._tagInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRetentionTagInternal)TagInfo).ETag; } + public string TagInfoETag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRetentionTagInternal)TagInfo).Id; } + public string TagInfoId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IRetentionTagInternal)TagInfo).TagName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTagInternal)TagInfo).TagName = value ; } + public string TagInfoTagName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal)TagInfo).TagName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTagInternal)TagInfo).TagName = value ; } /// Backing field for property. private long _taggingPriority; @@ -78,8 +78,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.Api20220501.IBackupCriteria),typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteria) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupCriteria[] Criterion { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupCriteria),typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteria) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupCriteria[] Criterion { get; set; } /// Specifies if tag is default. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, @@ -127,11 +127,11 @@ internal partial interface ITaggingCriteriaInternal { /// Criteria which decides whether the tag can be applied to a triggered backup. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupCriteria[] Criterion { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupCriteria[] Criterion { get; set; } /// Specifies if tag is default. bool IsDefault { get; set; } /// Retention tag information - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRetentionTag TagInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRetentionTag TagInfo { get; set; } /// Retention Tag version. string TagInfoETag { get; set; } /// Retention Tag version. diff --git a/src/DataProtection/generated/api/Models/Api20220501/TaggingCriteria.json.cs b/src/DataProtection/generated/api/Models/Api20221201/TaggingCriteria.json.cs similarity index 95% rename from src/DataProtection/generated/api/Models/Api20220501/TaggingCriteria.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/TaggingCriteria.json.cs index 3d5f225e496f..ea4fac55bf7a 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/TaggingCriteria.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/TaggingCriteria.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.ITaggingCriteria. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteria. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteria. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITaggingCriteria. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITaggingCriteria FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -77,8 +77,8 @@ internal TaggingCriteria(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runti { return; } - {_tagInfo = If( json?.PropertyT("tagInfo"), out var __jsonTagInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20220501.IBackupCriteria) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupCriteria.FromJson(__u) )) ))() : null : Criterion;} + {_tagInfo = If( json?.PropertyT("tagInfo"), out var __jsonTagInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20221201.IBackupCriteria) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/TargetCopySetting.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/TargetCopySetting.PowerShell.cs similarity index 81% rename from src/DataProtection/generated/api/Models/Api20220501/TargetCopySetting.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/TargetCopySetting.PowerShell.cs index f07677fa82a8..993fa2501241 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/TargetCopySetting.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/TargetCopySetting.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,27 +55,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.Api20220501.ITargetCopySetting DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ITargetCopySetting DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySetting DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TargetCopySetting(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySetting FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -103,29 +103,29 @@ internal TargetCopySetting(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("CopyAfter")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySettingInternal)this).CopyAfter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOption) content.GetValueForProperty("CopyAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySettingInternal)this).CopyAfter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.CopyOptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySettingInternal)this).CopyAfter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOption) content.GetValueForProperty("CopyAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySettingInternal)this).CopyAfter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CopyOptionTypeConverter.ConvertFrom); } if (content.Contains("DataStore")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySettingInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBase) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySettingInternal)this).DataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DataStoreInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySettingInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBase) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySettingInternal)this).DataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DataStoreInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("CopyAfterObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySettingInternal)this).CopyAfterObjectType = (string) content.GetValueForProperty("CopyAfterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySettingInternal)this).CopyAfterObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySettingInternal)this).CopyAfterObjectType = (string) content.GetValueForProperty("CopyAfterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySettingInternal)this).CopyAfterObjectType, global::System.Convert.ToString); } if (content.Contains("DataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySettingInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySettingInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySettingInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySettingInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); } if (content.Contains("DataStoreObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySettingInternal)this).DataStoreObjectType = (string) content.GetValueForProperty("DataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySettingInternal)this).DataStoreObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySettingInternal)this).DataStoreObjectType = (string) content.GetValueForProperty("DataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -140,23 +140,23 @@ internal TargetCopySetting(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("CopyAfter")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySettingInternal)this).CopyAfter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOption) content.GetValueForProperty("CopyAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySettingInternal)this).CopyAfter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.CopyOptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySettingInternal)this).CopyAfter = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOption) content.GetValueForProperty("CopyAfter",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySettingInternal)this).CopyAfter, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CopyOptionTypeConverter.ConvertFrom); } if (content.Contains("DataStore")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySettingInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBase) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySettingInternal)this).DataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DataStoreInfoBaseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySettingInternal)this).DataStore = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBase) content.GetValueForProperty("DataStore",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySettingInternal)this).DataStore, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DataStoreInfoBaseTypeConverter.ConvertFrom); } if (content.Contains("CopyAfterObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySettingInternal)this).CopyAfterObjectType = (string) content.GetValueForProperty("CopyAfterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySettingInternal)this).CopyAfterObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySettingInternal)this).CopyAfterObjectType = (string) content.GetValueForProperty("CopyAfterObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySettingInternal)this).CopyAfterObjectType, global::System.Convert.ToString); } if (content.Contains("DataStoreType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySettingInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySettingInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySettingInternal)this).DataStoreType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes) content.GetValueForProperty("DataStoreType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySettingInternal)this).DataStoreType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes.CreateFrom); } if (content.Contains("DataStoreObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySettingInternal)this).DataStoreObjectType = (string) content.GetValueForProperty("DataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySettingInternal)this).DataStoreObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySettingInternal)this).DataStoreObjectType = (string) content.GetValueForProperty("DataStoreObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySettingInternal)this).DataStoreObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/TargetCopySetting.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/TargetCopySetting.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/TargetCopySetting.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/TargetCopySetting.TypeConverter.cs index 67a2e2b0a043..8bcc3218ef6f 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/TargetCopySetting.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/TargetCopySetting.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.ITargetCopySetting ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySetting ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySetting).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySetting).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/TargetCopySetting.cs b/src/DataProtection/generated/api/Models/Api20221201/TargetCopySetting.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20220501/TargetCopySetting.cs rename to src/DataProtection/generated/api/Models/Api20221201/TargetCopySetting.cs index b00a5ece9fba..5749d1523667 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/TargetCopySetting.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/TargetCopySetting.cs @@ -3,47 +3,47 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Target copy settings public partial class TargetCopySetting : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySetting, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySettingInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySetting, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySettingInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOption _copyAfter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ICopyOption CopyAfter { get => (this._copyAfter = this._copyAfter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.CopyOption()); set => this._copyAfter = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOption CopyAfter { get => (this._copyAfter = this._copyAfter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ICopyOptionInternal)CopyAfter).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOptionInternal)CopyAfter).ObjectType = value ; } + public string CopyAfterObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOptionInternal)CopyAfter).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOptionInternal)CopyAfter).ObjectType = value ; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBase _dataStore; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDataStoreInfoBase DataStore { get => (this._dataStore = this._dataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DataStoreInfoBase()); set => this._dataStore = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBase DataStore { get => (this._dataStore = this._dataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDataStoreInfoBaseInternal)DataStore).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBaseInternal)DataStore).ObjectType = value ; } + public string DataStoreObjectType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBaseInternal)DataStore).ObjectType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDataStoreInfoBaseInternal)DataStore).DataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBaseInternal)DataStore).DataStoreType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DataStoreTypes DataStoreType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBaseInternal)DataStore).DataStoreType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBaseInternal)DataStore).DataStoreType = value ; } /// Internal Acessors for CopyAfter - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOption Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySettingInternal.CopyAfter { get => (this._copyAfter = this._copyAfter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.CopyOption()); set { {_copyAfter = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICopyOption Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySettingInternal.CopyAfter { get => (this._copyAfter = this._copyAfter ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CopyOption()); set { {_copyAfter = value;} } } /// Internal Acessors for DataStore - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDataStoreInfoBase Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySettingInternal.DataStore { get => (this._dataStore = this._dataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DataStoreInfoBase()); set { {_dataStore = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDataStoreInfoBase Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySettingInternal.DataStore { get => (this._dataStore = this._dataStore ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DataStoreInfoBase()); set { {_dataStore = value;} } } /// Creates an new instance. public TargetCopySetting() @@ -86,11 +86,11 @@ internal partial interface ITargetCopySettingInternal { /// It can be CustomCopyOption or ImmediateCopyOption. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICopyOption CopyAfter { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IDataStoreInfoBase DataStore { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/TargetCopySetting.json.cs b/src/DataProtection/generated/api/Models/Api20221201/TargetCopySetting.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/TargetCopySetting.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/TargetCopySetting.json.cs index 4bc2a2feb710..507346ef0637 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/TargetCopySetting.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/TargetCopySetting.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.ITargetCopySetting. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySetting. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySetting. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetCopySetting. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetCopySetting FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -77,8 +77,8 @@ internal TargetCopySetting(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Run { return; } - {_copyAfter = If( json?.PropertyT("copyAfter"), out var __jsonCopyAfter) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.CopyOption.FromJson(__jsonCopyAfter) : CopyAfter;} - {_dataStore = If( json?.PropertyT("dataStore"), out var __jsonDataStore) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.DataStoreInfoBase.FromJson(__jsonDataStore) : DataStore;} + {_copyAfter = If( json?.PropertyT("copyAfter"), out var __jsonCopyAfter) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.CopyOption.FromJson(__jsonCopyAfter) : CopyAfter;} + {_dataStore = If( json?.PropertyT("dataStore"), out var __jsonDataStore) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.DataStoreInfoBase.FromJson(__jsonDataStore) : DataStore;} AfterFromJson(json); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/TargetDetails.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/TargetDetails.PowerShell.cs similarity index 80% rename from src/DataProtection/generated/api/Models/Api20220501/TargetDetails.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/TargetDetails.PowerShell.cs index 9b65e8a4a251..40acb0957bb3 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/TargetDetails.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/TargetDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -57,27 +57,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.Api20220501.ITargetDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ITargetDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TargetDetails(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -105,21 +105,25 @@ internal TargetDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("FilePrefix")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetDetailsInternal)this).FilePrefix = (string) content.GetValueForProperty("FilePrefix",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetDetailsInternal)this).FilePrefix, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetailsInternal)this).FilePrefix = (string) content.GetValueForProperty("FilePrefix",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetailsInternal)this).FilePrefix, global::System.Convert.ToString); } if (content.Contains("RestoreTargetLocationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetDetailsInternal)this).RestoreTargetLocationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType) content.GetValueForProperty("RestoreTargetLocationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetDetailsInternal)this).RestoreTargetLocationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetailsInternal)this).RestoreTargetLocationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType) content.GetValueForProperty("RestoreTargetLocationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetailsInternal)this).RestoreTargetLocationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType.CreateFrom); } if (content.Contains("Url")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetDetailsInternal)this).Url = (string) content.GetValueForProperty("Url",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetDetailsInternal)this).Url, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetailsInternal)this).Url = (string) content.GetValueForProperty("Url",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetailsInternal)this).Url, global::System.Convert.ToString); + } + if (content.Contains("TargetResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetailsInternal)this).TargetResourceArmId = (string) content.GetValueForProperty("TargetResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetailsInternal)this).TargetResourceArmId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -134,15 +138,19 @@ internal TargetDetails(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("FilePrefix")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetDetailsInternal)this).FilePrefix = (string) content.GetValueForProperty("FilePrefix",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetDetailsInternal)this).FilePrefix, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetailsInternal)this).FilePrefix = (string) content.GetValueForProperty("FilePrefix",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetailsInternal)this).FilePrefix, global::System.Convert.ToString); } if (content.Contains("RestoreTargetLocationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetDetailsInternal)this).RestoreTargetLocationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType) content.GetValueForProperty("RestoreTargetLocationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetDetailsInternal)this).RestoreTargetLocationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetailsInternal)this).RestoreTargetLocationType = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType) content.GetValueForProperty("RestoreTargetLocationType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetailsInternal)this).RestoreTargetLocationType, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType.CreateFrom); } if (content.Contains("Url")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetDetailsInternal)this).Url = (string) content.GetValueForProperty("Url",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetDetailsInternal)this).Url, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetailsInternal)this).Url = (string) content.GetValueForProperty("Url",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetailsInternal)this).Url, global::System.Convert.ToString); + } + if (content.Contains("TargetResourceArmId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetailsInternal)this).TargetResourceArmId = (string) content.GetValueForProperty("TargetResourceArmId",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetailsInternal)this).TargetResourceArmId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/TargetDetails.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/TargetDetails.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/TargetDetails.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/TargetDetails.TypeConverter.cs index c48d21dbea6e..ef67a6b949a9 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/TargetDetails.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/TargetDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.ITargetDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/TargetDetails.cs b/src/DataProtection/generated/api/Models/Api20221201/TargetDetails.cs similarity index 72% rename from src/DataProtection/generated/api/Models/Api20220501/TargetDetails.cs rename to src/DataProtection/generated/api/Models/Api20221201/TargetDetails.cs index 36491c0b3bff..79f358f3df8e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/TargetDetails.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/TargetDetails.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 /// Class encapsulating target details, used where the destination is not a datasource /// public partial class TargetDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetailsInternal { /// Backing field for property. @@ -35,6 +35,17 @@ public partial class TargetDetails : [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType RestoreTargetLocationType { get => this._restoreTargetLocationType; set => this._restoreTargetLocationType = value; } + /// Backing field for property. + private string _targetResourceArmId; + + /// + /// Full ARM Id denoting the restore destination. It is the ARM Id pointing to container / file share + /// This is optional if the target subscription can be identified with the URL field. If not + /// then this is needed if CrossSubscriptionRestore field of BackupVault is in any of the disabled states + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] + public string TargetResourceArmId { get => this._targetResourceArmId; set => this._targetResourceArmId = value; } + /// Backing field for property. private string _url; @@ -79,6 +90,20 @@ public partial interface ITargetDetails : PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType) })] Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType RestoreTargetLocationType { get; set; } /// + /// Full ARM Id denoting the restore destination. It is the ARM Id pointing to container / file share + /// This is optional if the target subscription can be identified with the URL field. If not + /// then this is needed if CrossSubscriptionRestore field of BackupVault is in any of the disabled states + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Full ARM Id denoting the restore destination. It is the ARM Id pointing to container / file share + This is optional if the target subscription can be identified with the URL field. If not + then this is needed if CrossSubscriptionRestore field of BackupVault is in any of the disabled states", + SerializedName = @"targetResourceArmId", + PossibleTypes = new [] { typeof(string) })] + string TargetResourceArmId { get; set; } + /// /// Url denoting the restore destination. It can point to container / file share etc /// [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -105,6 +130,12 @@ internal partial interface ITargetDetailsInternal /// Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.RestoreTargetLocationType RestoreTargetLocationType { get; set; } /// + /// Full ARM Id denoting the restore destination. It is the ARM Id pointing to container / file share + /// This is optional if the target subscription can be identified with the URL field. If not + /// then this is needed if CrossSubscriptionRestore field of BackupVault is in any of the disabled states + /// + string TargetResourceArmId { get; set; } + /// /// Url denoting the restore destination. It can point to container / file share etc /// string Url { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/TargetDetails.json.cs b/src/DataProtection/generated/api/Models/Api20221201/TargetDetails.json.cs similarity index 91% rename from src/DataProtection/generated/api/Models/Api20220501/TargetDetails.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/TargetDetails.json.cs index 52cd252148c3..683d3b462ab2 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/TargetDetails.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/TargetDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -56,13 +56,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.Api20220501.ITargetDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITargetDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITargetDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -82,6 +82,7 @@ internal TargetDetails(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime {_filePrefix = If( json?.PropertyT("filePrefix"), out var __jsonFilePrefix) ? (string)__jsonFilePrefix : (string)FilePrefix;} {_restoreTargetLocationType = If( json?.PropertyT("restoreTargetLocationType"), out var __jsonRestoreTargetLocationType) ? (string)__jsonRestoreTargetLocationType : (string)RestoreTargetLocationType;} {_url = If( json?.PropertyT("url"), out var __jsonUrl) ? (string)__jsonUrl : (string)Url;} + {_targetResourceArmId = If( json?.PropertyT("targetResourceArmId"), out var __jsonTargetResourceArmId) ? (string)__jsonTargetResourceArmId : (string)TargetResourceArmId;} AfterFromJson(json); } @@ -107,6 +108,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode T AddIf( null != (((object)this._filePrefix)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._filePrefix.ToString()) : null, "filePrefix" ,container.Add ); AddIf( null != (((object)this._restoreTargetLocationType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._restoreTargetLocationType.ToString()) : null, "restoreTargetLocationType" ,container.Add ); AddIf( null != (((object)this._url)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._url.ToString()) : null, "url" ,container.Add ); + AddIf( null != (((object)this._targetResourceArmId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonString(this._targetResourceArmId.ToString()) : null, "targetResourceArmId" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/TriggerBackupRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/TriggerBackupRequest.PowerShell.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20220501/TriggerBackupRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/TriggerBackupRequest.PowerShell.cs index fe456b2c6ec4..2b1480d74c49 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/TriggerBackupRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/TriggerBackupRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,29 +55,29 @@ 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 . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TriggerBackupRequest(content); } @@ -87,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 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. @@ -110,25 +110,25 @@ internal TriggerBackupRequest(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("BackupRuleOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequestInternal)this).BackupRuleOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptions) content.GetValueForProperty("BackupRuleOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequestInternal)this).BackupRuleOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AdHocBackupRuleOptionsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequestInternal)this).BackupRuleOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptions) content.GetValueForProperty("BackupRuleOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequestInternal)this).BackupRuleOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AdHocBackupRuleOptionsTypeConverter.ConvertFrom); } if (content.Contains("BackupRuleOptionTriggerOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequestInternal)this).BackupRuleOptionTriggerOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBackupTriggerOption) content.GetValueForProperty("BackupRuleOptionTriggerOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequestInternal)this).BackupRuleOptionTriggerOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AdhocBackupTriggerOptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequestInternal)this).BackupRuleOptionTriggerOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBackupTriggerOption) content.GetValueForProperty("BackupRuleOptionTriggerOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequestInternal)this).BackupRuleOptionTriggerOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AdhocBackupTriggerOptionTypeConverter.ConvertFrom); } if (content.Contains("BackupRuleOptionRuleName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequestInternal)this).BackupRuleOptionRuleName = (string) content.GetValueForProperty("BackupRuleOptionRuleName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequestInternal)this).BackupRuleOptionRuleName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequestInternal)this).BackupRuleOptionRuleName = (string) content.GetValueForProperty("BackupRuleOptionRuleName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequestInternal)this).BackupRuleOptionRuleName, global::System.Convert.ToString); } if (content.Contains("TriggerOptionRetentionTagOverride")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequestInternal)this).TriggerOptionRetentionTagOverride = (string) content.GetValueForProperty("TriggerOptionRetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequestInternal)this).TriggerOptionRetentionTagOverride, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequestInternal)this).TriggerOptionRetentionTagOverride = (string) content.GetValueForProperty("TriggerOptionRetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -143,19 +143,19 @@ internal TriggerBackupRequest(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("BackupRuleOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequestInternal)this).BackupRuleOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptions) content.GetValueForProperty("BackupRuleOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequestInternal)this).BackupRuleOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AdHocBackupRuleOptionsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequestInternal)this).BackupRuleOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptions) content.GetValueForProperty("BackupRuleOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequestInternal)this).BackupRuleOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AdHocBackupRuleOptionsTypeConverter.ConvertFrom); } if (content.Contains("BackupRuleOptionTriggerOption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequestInternal)this).BackupRuleOptionTriggerOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBackupTriggerOption) content.GetValueForProperty("BackupRuleOptionTriggerOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequestInternal)this).BackupRuleOptionTriggerOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AdhocBackupTriggerOptionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequestInternal)this).BackupRuleOptionTriggerOption = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBackupTriggerOption) content.GetValueForProperty("BackupRuleOptionTriggerOption",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequestInternal)this).BackupRuleOptionTriggerOption, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AdhocBackupTriggerOptionTypeConverter.ConvertFrom); } if (content.Contains("BackupRuleOptionRuleName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequestInternal)this).BackupRuleOptionRuleName = (string) content.GetValueForProperty("BackupRuleOptionRuleName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequestInternal)this).BackupRuleOptionRuleName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequestInternal)this).BackupRuleOptionRuleName = (string) content.GetValueForProperty("BackupRuleOptionRuleName",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequestInternal)this).BackupRuleOptionRuleName, global::System.Convert.ToString); } if (content.Contains("TriggerOptionRetentionTagOverride")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequestInternal)this).TriggerOptionRetentionTagOverride = (string) content.GetValueForProperty("TriggerOptionRetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequestInternal)this).TriggerOptionRetentionTagOverride, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequestInternal)this).TriggerOptionRetentionTagOverride = (string) content.GetValueForProperty("TriggerOptionRetentionTagOverride",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequestInternal)this).TriggerOptionRetentionTagOverride, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/TriggerBackupRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/TriggerBackupRequest.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/TriggerBackupRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/TriggerBackupRequest.TypeConverter.cs index e559186a297b..c92c566ca87b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/TriggerBackupRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/TriggerBackupRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.ITriggerBackupRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/TriggerBackupRequest.cs b/src/DataProtection/generated/api/Models/Api20221201/TriggerBackupRequest.cs similarity index 78% rename from src/DataProtection/generated/api/Models/Api20220501/TriggerBackupRequest.cs rename to src/DataProtection/generated/api/Models/Api20221201/TriggerBackupRequest.cs index ee62d630e61b..76427b2e39df 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/TriggerBackupRequest.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/TriggerBackupRequest.cs @@ -3,34 +3,34 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Trigger backup request public partial class TriggerBackupRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequestInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptions _backupRuleOption; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAdHocBackupRuleOptions BackupRuleOption { get => (this._backupRuleOption = this._backupRuleOption ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AdHocBackupRuleOptions()); set => this._backupRuleOption = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptions BackupRuleOption { get => (this._backupRuleOption = this._backupRuleOption ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAdHocBackupRuleOptionsInternal)BackupRuleOption).RuleName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptionsInternal)BackupRuleOption).RuleName = value ; } + public string BackupRuleOptionRuleName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptionsInternal)BackupRuleOption).RuleName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptionsInternal)BackupRuleOption).RuleName = value ; } /// Internal Acessors for BackupRuleOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptions Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequestInternal.BackupRuleOption { get => (this._backupRuleOption = this._backupRuleOption ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AdHocBackupRuleOptions()); set { {_backupRuleOption = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptions Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequestInternal.BackupRuleOption { get => (this._backupRuleOption = this._backupRuleOption ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AdHocBackupRuleOptions()); set { {_backupRuleOption = value;} } } /// Internal Acessors for BackupRuleOptionTriggerOption - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBackupTriggerOption Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequestInternal.BackupRuleOptionTriggerOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptionsInternal)BackupRuleOption).TriggerOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptionsInternal)BackupRuleOption).TriggerOption = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBackupTriggerOption Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequestInternal.BackupRuleOptionTriggerOption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptionsInternal)BackupRuleOption).TriggerOption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IAdHocBackupRuleOptionsInternal)BackupRuleOption).TriggerOptionRetentionTagOverride; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdHocBackupRuleOptionsInternal)BackupRuleOption).TriggerOptionRetentionTagOverride = value ?? null; } + public string TriggerOptionRetentionTagOverride { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptionsInternal)BackupRuleOption).TriggerOptionRetentionTagOverride; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptionsInternal)BackupRuleOption).TriggerOptionRetentionTagOverride = value ?? null; } /// Creates an new instance. public TriggerBackupRequest() @@ -64,11 +64,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.Api20220501.IAdHocBackupRuleOptions BackupRuleOption { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdHocBackupRuleOptions BackupRuleOption { get; set; } string BackupRuleOptionRuleName { get; set; } /// Adhoc backup trigger option - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAdhocBackupTriggerOption BackupRuleOptionTriggerOption { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAdhocBackupTriggerOption BackupRuleOptionTriggerOption { get; set; } string TriggerOptionRetentionTagOverride { get; set; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/TriggerBackupRequest.json.cs b/src/DataProtection/generated/api/Models/Api20221201/TriggerBackupRequest.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/TriggerBackupRequest.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/TriggerBackupRequest.json.cs index 63973a934d82..ef96f09fc766 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/TriggerBackupRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/TriggerBackupRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.ITriggerBackupRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -101,7 +101,7 @@ internal TriggerBackupRequest(Microsoft.Azure.PowerShell.Cmdlets.DataProtection. { return; } - {_backupRuleOption = If( json?.PropertyT("backupRuleOptions"), out var __jsonBackupRuleOptions) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AdHocBackupRuleOptions.FromJson(__jsonBackupRuleOptions) : BackupRuleOption;} + {_backupRuleOption = If( json?.PropertyT("backupRuleOptions"), out var __jsonBackupRuleOptions) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AdHocBackupRuleOptions.FromJson(__jsonBackupRuleOptions) : BackupRuleOption;} AfterFromJson(json); } } diff --git a/src/DataProtection/generated/api/Models/Api20220501/TriggerContext.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/TriggerContext.PowerShell.cs similarity index 89% rename from src/DataProtection/generated/api/Models/Api20220501/TriggerContext.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/TriggerContext.PowerShell.cs index 25cd88c356e4..9b693d867672 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/TriggerContext.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/TriggerContext.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,27 +55,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.Api20220501.ITriggerContext DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ITriggerContext DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContext DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TriggerContext(content); } @@ -85,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContext FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContext FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 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. @@ -108,13 +108,13 @@ internal TriggerContext(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -129,7 +129,7 @@ internal TriggerContext(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("ObjectType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContextInternal)this).ObjectType = (string) content.GetValueForProperty("ObjectType",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContextInternal)this).ObjectType, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/TriggerContext.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/TriggerContext.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/TriggerContext.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/TriggerContext.TypeConverter.cs index 2da5353638f3..c82dd5e9dc6a 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/TriggerContext.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/TriggerContext.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.ITriggerContext ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContext ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContext).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContext).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/TriggerContext.cs b/src/DataProtection/generated/api/Models/Api20221201/TriggerContext.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/TriggerContext.cs rename to src/DataProtection/generated/api/Models/Api20221201/TriggerContext.cs index 099f7b463d4f..1dce40da6e8b 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/TriggerContext.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/TriggerContext.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Trigger context public partial class TriggerContext : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContext, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContextInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContext, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContextInternal { /// Backing field for property. diff --git a/src/DataProtection/generated/api/Models/Api20220501/TriggerContext.json.cs b/src/DataProtection/generated/api/Models/Api20221201/TriggerContext.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/TriggerContext.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/TriggerContext.json.cs index 71c932cc42a6..22cee4b6988e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/TriggerContext.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/TriggerContext.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,15 +54,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.Api20220501.ITriggerContext. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContext interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContext. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.ITriggerContext. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerContext. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerContext FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/UserFacingError.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/UserFacingError.PowerShell.cs similarity index 77% rename from src/DataProtection/generated/api/Models/Api20220501/UserFacingError.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/UserFacingError.PowerShell.cs index a286bc4a392a..98da5033417c 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/UserFacingError.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/UserFacingError.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -57,27 +57,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.Api20220501.IUserFacingError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IUserFacingError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UserFacingError(content); } @@ -87,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 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. @@ -110,45 +110,45 @@ internal UserFacingError(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.UserFacingErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingErrorTypeConverter.ConvertFrom)); } if (content.Contains("InnerError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).InnerError = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerError) content.GetValueForProperty("InnerError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).InnerError, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.InnerErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).InnerError = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerError) content.GetValueForProperty("InnerError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).InnerError, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.InnerErrorTypeConverter.ConvertFrom); } if (content.Contains("IsRetryable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).IsRetryable = (bool?) content.GetValueForProperty("IsRetryable",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).IsRetryable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).IsRetryable = (bool?) content.GetValueForProperty("IsRetryable",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).IsRetryable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("IsUserError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).IsUserError = (bool?) content.GetValueForProperty("IsUserError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).IsUserError, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).IsUserError = (bool?) content.GetValueForProperty("IsUserError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).IsUserError, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.UserFacingErrorPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingErrorPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("RecommendedAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).RecommendedAction = (string[]) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).RecommendedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).RecommendedAction = (string[]) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).RecommendedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -163,39 +163,39 @@ internal UserFacingError(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.UserFacingErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingErrorTypeConverter.ConvertFrom)); } if (content.Contains("InnerError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).InnerError = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerError) content.GetValueForProperty("InnerError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).InnerError, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.InnerErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).InnerError = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerError) content.GetValueForProperty("InnerError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).InnerError, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.InnerErrorTypeConverter.ConvertFrom); } if (content.Contains("IsRetryable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).IsRetryable = (bool?) content.GetValueForProperty("IsRetryable",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).IsRetryable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).IsRetryable = (bool?) content.GetValueForProperty("IsRetryable",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).IsRetryable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("IsUserError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).IsUserError = (bool?) content.GetValueForProperty("IsUserError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).IsUserError, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).IsUserError = (bool?) content.GetValueForProperty("IsUserError",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).IsUserError, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.UserFacingErrorPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingErrorPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("RecommendedAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).RecommendedAction = (string[]) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).RecommendedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).RecommendedAction = (string[]) content.GetValueForProperty("RecommendedAction",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).RecommendedAction, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal)this).Target, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/UserFacingError.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/UserFacingError.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/UserFacingError.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/UserFacingError.TypeConverter.cs index 67b80f73ad6f..ffdabbabe51e 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/UserFacingError.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/UserFacingError.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IUserFacingError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/UserFacingError.cs b/src/DataProtection/generated/api/Models/Api20221201/UserFacingError.cs similarity index 90% rename from src/DataProtection/generated/api/Models/Api20220501/UserFacingError.cs rename to src/DataProtection/generated/api/Models/Api20221201/UserFacingError.cs index 4a2eea01f277..60a218c09b73 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/UserFacingError.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/UserFacingError.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 /// 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.Api20220501.IUserFacingError, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorInternal { /// Backing field for property. @@ -23,18 +23,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.Api20220501.IUserFacingError[] _detail; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IUserFacingError[] Detail { get => this._detail; set => this._detail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError[] Detail { get => this._detail; set => this._detail = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerError _innerError; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerError _innerError; /// Inner Error [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerError InnerError { get => (this._innerError = this._innerError ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.InnerError()); set => this._innerError = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerError InnerError { get => (this._innerError = this._innerError ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.InnerError()); set => this._innerError = value; } /// Backing field for property. private bool? _isRetryable; @@ -57,11 +57,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.Api20220501.IUserFacingErrorProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IUserFacingErrorProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.UserFacingErrorProperties()); set => this._property = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingErrorProperties()); set => this._property = value; } /// Backing field for property. private string[] _recommendedAction; @@ -101,16 +101,16 @@ public partial interface IUserFacingError : ReadOnly = false, Description = @"Additional related Errors", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError[] Detail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IInnerError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerError InnerError { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IInnerError InnerError { get; set; } /// Whether the operation will be retryable or not [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -141,8 +141,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.Api20220501.IUserFacingErrorProperties) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorProperties Property { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorProperties Property { get; set; } /// RecommendedAction � localized. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, @@ -168,9 +168,9 @@ internal partial interface IUserFacingErrorInternal /// Unique code for this error string Code { get; set; } /// Additional related Errors - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError[] Detail { get; set; } /// Inner Error - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IInnerError InnerError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 @@ -178,7 +178,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.Api20220501.IUserFacingErrorProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorProperties Property { get; set; } /// RecommendedAction � localized. string[] RecommendedAction { get; set; } /// Target of the error. diff --git a/src/DataProtection/generated/api/Models/Api20220501/UserFacingError.json.cs b/src/DataProtection/generated/api/Models/Api20221201/UserFacingError.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/UserFacingError.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/UserFacingError.json.cs index 8398a41a67f8..15e3c3108dcf 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/UserFacingError.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/UserFacingError.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -56,13 +56,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.Api20220501.IUserFacingError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -128,11 +128,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.Api20220501.IUserFacingError) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.UserFacingError.FromJson(__u) )) ))() : null : Detail;} - {_innerError = If( json?.PropertyT("innerError"), out var __jsonInnerError) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.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.Api20221201.IUserFacingError) (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingError.FromJson(__u) )) ))() : null : Detail;} + {_innerError = If( json?.PropertyT("innerError"), out var __jsonInnerError) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.UserFacingErrorProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/UserFacingErrorProperties.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/UserFacingErrorProperties.PowerShell.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20220501/UserFacingErrorProperties.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/UserFacingErrorProperties.PowerShell.cs index b02867c783a7..adcfc740a8b4 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/UserFacingErrorProperties.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/UserFacingErrorProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,29 +55,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.Api20220501.IUserFacingErrorProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IUserFacingErrorProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UserFacingErrorProperties(content); } @@ -87,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 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. @@ -114,7 +114,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/Api20220501/UserFacingErrorProperties.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/UserFacingErrorProperties.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/UserFacingErrorProperties.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/UserFacingErrorProperties.TypeConverter.cs index 0a36f9218d2e..e03af1662612 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/UserFacingErrorProperties.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/UserFacingErrorProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IUserFacingErrorProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/UserFacingErrorProperties.cs b/src/DataProtection/generated/api/Models/Api20221201/UserFacingErrorProperties.cs similarity index 92% rename from src/DataProtection/generated/api/Models/Api20220501/UserFacingErrorProperties.cs rename to src/DataProtection/generated/api/Models/Api20221201/UserFacingErrorProperties.cs index 6328eafa9c9f..11b1ce237d99 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/UserFacingErrorProperties.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/UserFacingErrorProperties.cs @@ -3,14 +3,14 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IUserFacingErrorProperties, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorProperties, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorPropertiesInternal { /// Creates an new instance. diff --git a/src/DataProtection/generated/api/Models/Api20220501/UserFacingErrorProperties.dictionary.cs b/src/DataProtection/generated/api/Models/Api20221201/UserFacingErrorProperties.dictionary.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/UserFacingErrorProperties.dictionary.cs rename to src/DataProtection/generated/api/Models/Api20221201/UserFacingErrorProperties.dictionary.cs index 372d9dc8f83a..e511689bf88a 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/UserFacingErrorProperties.dictionary.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/UserFacingErrorProperties.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.UserFacingErrorProperties source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.UserFacingErrorProperties source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/UserFacingErrorProperties.json.cs b/src/DataProtection/generated/api/Models/Api20221201/UserFacingErrorProperties.json.cs similarity index 97% rename from src/DataProtection/generated/api/Models/Api20220501/UserFacingErrorProperties.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/UserFacingErrorProperties.json.cs index e09f4300e570..4d6ebe5eada4 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/UserFacingErrorProperties.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/UserFacingErrorProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.IUserFacingErrorProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IUserFacingErrorProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IUserFacingErrorProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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/Api20220501/ValidateForBackupRequest.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/ValidateForBackupRequest.PowerShell.cs similarity index 87% rename from src/DataProtection/generated/api/Models/Api20220501/ValidateForBackupRequest.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/ValidateForBackupRequest.PowerShell.cs index f180419554d3..77e3883b3bda 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ValidateForBackupRequest.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ValidateForBackupRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,29 +55,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.Api20220501.IValidateForBackupRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IValidateForBackupRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateForBackupRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ValidateForBackupRequest(content); } @@ -87,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateForBackupRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateForBackupRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 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. @@ -110,13 +110,13 @@ internal ValidateForBackupRequest(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("BackupInstance")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateForBackupRequestInternal)this).BackupInstance = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance) content.GetValueForProperty("BackupInstance",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateForBackupRequestInternal)this).BackupInstance, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupInstanceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateForBackupRequestInternal)this).BackupInstance = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance) content.GetValueForProperty("BackupInstance",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateForBackupRequestInternal)this).BackupInstance, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. @@ -131,7 +131,7 @@ internal ValidateForBackupRequest(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("BackupInstance")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateForBackupRequestInternal)this).BackupInstance = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance) content.GetValueForProperty("BackupInstance",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateForBackupRequestInternal)this).BackupInstance, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupInstanceTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateForBackupRequestInternal)this).BackupInstance = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance) content.GetValueForProperty("BackupInstance",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateForBackupRequestInternal)this).BackupInstance, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupInstanceTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ValidateForBackupRequest.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/ValidateForBackupRequest.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ValidateForBackupRequest.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/ValidateForBackupRequest.TypeConverter.cs index 5034f3484b74..adeb85d2aa26 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ValidateForBackupRequest.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ValidateForBackupRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IValidateForBackupRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateForBackupRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateForBackupRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateForBackupRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ValidateForBackupRequest.cs b/src/DataProtection/generated/api/Models/Api20221201/ValidateForBackupRequest.cs similarity index 82% rename from src/DataProtection/generated/api/Models/Api20220501/ValidateForBackupRequest.cs rename to src/DataProtection/generated/api/Models/Api20221201/ValidateForBackupRequest.cs index 045c6e666d70..690dde2215f2 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ValidateForBackupRequest.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ValidateForBackupRequest.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Validate for backup request public partial class ValidateForBackupRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateForBackupRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateForBackupRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateForBackupRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateForBackupRequestInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance _backupInstance; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance _backupInstance; /// Backup Instance [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance BackupInstance { get => (this._backupInstance = this._backupInstance ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupInstance()); set => this._backupInstance = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance BackupInstance { get => (this._backupInstance = this._backupInstance ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupInstance()); set => this._backupInstance = value; } /// Creates an new instance. public ValidateForBackupRequest() @@ -36,8 +36,8 @@ public partial interface IValidateForBackupRequest : ReadOnly = false, Description = @"Backup Instance", SerializedName = @"backupInstance", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance BackupInstance { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance BackupInstance { get; set; } } /// Validate for backup request @@ -45,7 +45,7 @@ internal partial interface IValidateForBackupRequestInternal { /// Backup Instance - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance BackupInstance { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance BackupInstance { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/ValidateForBackupRequest.json.cs b/src/DataProtection/generated/api/Models/Api20221201/ValidateForBackupRequest.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/ValidateForBackupRequest.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/ValidateForBackupRequest.json.cs index b7cfd64bb948..c219de6250d7 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ValidateForBackupRequest.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ValidateForBackupRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.IValidateForBackupRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateForBackupRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateForBackupRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateForBackupRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateForBackupRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -101,7 +101,7 @@ internal ValidateForBackupRequest(Microsoft.Azure.PowerShell.Cmdlets.DataProtect { return; } - {_backupInstance = If( json?.PropertyT("backupInstance"), out var __jsonBackupInstance) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupInstance.FromJson(__jsonBackupInstance) : BackupInstance;} + {_backupInstance = If( json?.PropertyT("backupInstance"), out var __jsonBackupInstance) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupInstance.FromJson(__jsonBackupInstance) : BackupInstance;} AfterFromJson(json); } } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ValidateRestoreRequestObject.PowerShell.cs b/src/DataProtection/generated/api/Models/Api20221201/ValidateRestoreRequestObject.PowerShell.cs similarity index 88% rename from src/DataProtection/generated/api/Models/Api20220501/ValidateRestoreRequestObject.PowerShell.cs rename to src/DataProtection/generated/api/Models/Api20221201/ValidateRestoreRequestObject.PowerShell.cs index e1f32490494b..d5e4c8ae04f7 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ValidateRestoreRequestObject.PowerShell.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ValidateRestoreRequestObject.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PowerShell; @@ -55,29 +55,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.Api20220501.IValidateRestoreRequestObject DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IValidateRestoreRequestObject DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateRestoreRequestObject DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ValidateRestoreRequestObject(content); } @@ -87,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateRestoreRequestObject FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateRestoreRequestObject FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202205 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. @@ -110,13 +110,13 @@ internal ValidateRestoreRequestObject(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("RestoreRequestObject")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateRestoreRequestObjectInternal)this).RestoreRequestObject = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest) content.GetValueForProperty("RestoreRequestObject",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateRestoreRequestObjectInternal)this).RestoreRequestObject, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRestoreRequestTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateRestoreRequestObjectInternal)this).RestoreRequestObject = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest) content.GetValueForProperty("RestoreRequestObject",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateRestoreRequestObjectInternal)this).RestoreRequestObject, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRestoreRequestTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -131,7 +131,7 @@ internal ValidateRestoreRequestObject(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("RestoreRequestObject")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateRestoreRequestObjectInternal)this).RestoreRequestObject = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest) content.GetValueForProperty("RestoreRequestObject",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateRestoreRequestObjectInternal)this).RestoreRequestObject, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRestoreRequestTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateRestoreRequestObjectInternal)this).RestoreRequestObject = (Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest) content.GetValueForProperty("RestoreRequestObject",((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateRestoreRequestObjectInternal)this).RestoreRequestObject, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRestoreRequestTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ValidateRestoreRequestObject.TypeConverter.cs b/src/DataProtection/generated/api/Models/Api20221201/ValidateRestoreRequestObject.TypeConverter.cs similarity index 98% rename from src/DataProtection/generated/api/Models/Api20220501/ValidateRestoreRequestObject.TypeConverter.cs rename to src/DataProtection/generated/api/Models/Api20221201/ValidateRestoreRequestObject.TypeConverter.cs index 31cf75ceb0b5..92a287e8f7b4 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ValidateRestoreRequestObject.TypeConverter.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ValidateRestoreRequestObject.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { 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.Api20220501.IValidateRestoreRequestObject ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateRestoreRequestObject ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateRestoreRequestObject).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateRestoreRequestObject).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DataProtection/generated/api/Models/Api20220501/ValidateRestoreRequestObject.cs b/src/DataProtection/generated/api/Models/Api20221201/ValidateRestoreRequestObject.cs similarity index 83% rename from src/DataProtection/generated/api/Models/Api20220501/ValidateRestoreRequestObject.cs rename to src/DataProtection/generated/api/Models/Api20221201/ValidateRestoreRequestObject.cs index 7acc467235c0..fc6b25978197 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ValidateRestoreRequestObject.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ValidateRestoreRequestObject.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; /// Validate restore request object public partial class ValidateRestoreRequestObject : - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateRestoreRequestObject, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateRestoreRequestObjectInternal + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateRestoreRequestObject, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateRestoreRequestObjectInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest _restoreRequestObject; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest _restoreRequestObject; /// Gets or sets the restore request object. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest RestoreRequestObject { get => (this._restoreRequestObject = this._restoreRequestObject ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRestoreRequest()); set => this._restoreRequestObject = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest RestoreRequestObject { get => (this._restoreRequestObject = this._restoreRequestObject ?? new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRestoreRequest()); set => this._restoreRequestObject = value; } /// Creates an new instance. public ValidateRestoreRequestObject() @@ -36,8 +36,8 @@ public partial interface IValidateRestoreRequestObject : ReadOnly = false, Description = @"Gets or sets the restore request object.", SerializedName = @"restoreRequestObject", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest) })] - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest RestoreRequestObject { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest) })] + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest RestoreRequestObject { get; set; } } /// Validate restore request object @@ -45,7 +45,7 @@ internal partial interface IValidateRestoreRequestObjectInternal { /// Gets or sets the restore request object. - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest RestoreRequestObject { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest RestoreRequestObject { get; set; } } } \ No newline at end of file diff --git a/src/DataProtection/generated/api/Models/Api20220501/ValidateRestoreRequestObject.json.cs b/src/DataProtection/generated/api/Models/Api20221201/ValidateRestoreRequestObject.json.cs similarity index 96% rename from src/DataProtection/generated/api/Models/Api20220501/ValidateRestoreRequestObject.json.cs rename to src/DataProtection/generated/api/Models/Api20221201/ValidateRestoreRequestObject.json.cs index 87c07f0b1803..c03c52d3ac97 100644 --- a/src/DataProtection/generated/api/Models/Api20220501/ValidateRestoreRequestObject.json.cs +++ b/src/DataProtection/generated/api/Models/Api20221201/ValidateRestoreRequestObject.json.cs @@ -3,7 +3,7 @@ // Code generated by 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.Models.Api20220501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; @@ -54,13 +54,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.Api20220501.IValidateRestoreRequestObject. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateRestoreRequestObject. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateRestoreRequestObject. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateRestoreRequestObject. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateRestoreRequestObject FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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; } @@ -101,7 +101,7 @@ internal ValidateRestoreRequestObject(Microsoft.Azure.PowerShell.Cmdlets.DataPro { return; } - {_restoreRequestObject = If( json?.PropertyT("restoreRequestObject"), out var __jsonRestoreRequestObject) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRestoreRequest.FromJson(__jsonRestoreRequestObject) : RestoreRequestObject;} + {_restoreRequestObject = If( json?.PropertyT("restoreRequestObject"), out var __jsonRestoreRequestObject) ? Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRestoreRequest.FromJson(__jsonRestoreRequestObject) : RestoreRequestObject;} AfterFromJson(json); } } diff --git a/src/DataProtection/generated/api/Models/DataProtectionIdentity.cs b/src/DataProtection/generated/api/Models/DataProtectionIdentity.cs index 9020cfd59a00..885dbd9c2f33 100644 --- a/src/DataProtection/generated/api/Models/DataProtectionIdentity.cs +++ b/src/DataProtection/generated/api/Models/DataProtectionIdentity.cs @@ -15,7 +15,7 @@ public partial class DataProtectionIdentity : /// Backing field for property. private string _backupInstanceName; - /// The name of the backup instance + /// The name of the backup instance. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] public string BackupInstanceName { get => this._backupInstanceName; set => this._backupInstanceName = value; } @@ -69,7 +69,7 @@ public partial class DataProtectionIdentity : /// Backing field for property. private string _resourceGroupName; - /// The name of the resource group where the backup vault is present. + /// The name of the resource group. The name is case insensitive. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } @@ -83,7 +83,7 @@ public partial class DataProtectionIdentity : /// Backing field for property. private string _subscriptionId; - /// The subscription Id. + /// The ID of the target subscription. The value must be an UUID. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.PropertyOrigin.Owned)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } @@ -103,11 +103,11 @@ public DataProtectionIdentity() public partial interface IDataProtectionIdentity : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IJsonSerializable { - /// The name of the backup instance + /// The name of the backup instance. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The name of the backup instance", + Description = @"The name of the backup instance.", SerializedName = @"backupInstanceName", PossibleTypes = new [] { typeof(string) })] string BackupInstanceName { get; set; } @@ -169,11 +169,11 @@ public partial interface IDataProtectionIdentity : SerializedName = @"requestName", PossibleTypes = new [] { typeof(string) })] string RequestName { get; set; } - /// The name of the resource group where the backup vault is present. + /// The name of the resource group. The name is case insensitive. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] string ResourceGroupName { get; set; } @@ -185,11 +185,11 @@ public partial interface IDataProtectionIdentity : SerializedName = @"resourceGuardsName", PossibleTypes = new [] { typeof(string) })] string ResourceGuardsName { get; set; } - /// The subscription Id. + /// The ID of the target subscription. The value must be an UUID. [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] string SubscriptionId { get; set; } @@ -206,7 +206,7 @@ public partial interface IDataProtectionIdentity : internal partial interface IDataProtectionIdentityInternal { - /// The name of the backup instance + /// The name of the backup instance. string BackupInstanceName { get; set; } string BackupPolicyName { get; set; } @@ -224,11 +224,11 @@ internal partial interface IDataProtectionIdentityInternal string RecoveryPointId { get; set; } string RequestName { get; set; } - /// The name of the resource group where the backup vault is present. + /// The name of the resource group. The name is case insensitive. string ResourceGroupName { get; set; } /// The name of ResourceGuard string ResourceGuardsName { get; set; } - /// The subscription Id. + /// The ID of the target subscription. The value must be an UUID. string SubscriptionId { get; set; } /// The name of the backup vault. string VaultName { get; set; } diff --git a/src/DataProtection/generated/api/Support/CrossSubscriptionRestoreState.Completer.cs b/src/DataProtection/generated/api/Support/CrossSubscriptionRestoreState.Completer.cs new file mode 100644 index 000000000000..d5ea74eb6b0c --- /dev/null +++ b/src/DataProtection/generated/api/Support/CrossSubscriptionRestoreState.Completer.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support +{ + + /// CrossSubscriptionRestore state + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreStateTypeConverter))] + public partial struct CrossSubscriptionRestoreState : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Disabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Disabled'", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "PermanentlyDisabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'PermanentlyDisabled'", "PermanentlyDisabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "PermanentlyDisabled"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Enabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Enabled'", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); + } + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Support/CrossSubscriptionRestoreState.TypeConverter.cs b/src/DataProtection/generated/api/Support/CrossSubscriptionRestoreState.TypeConverter.cs new file mode 100644 index 000000000000..0249b3c611fc --- /dev/null +++ b/src/DataProtection/generated/api/Support/CrossSubscriptionRestoreState.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support +{ + + /// CrossSubscriptionRestore state + public partial class CrossSubscriptionRestoreStateTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => CrossSubscriptionRestoreState.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Support/CrossSubscriptionRestoreState.cs b/src/DataProtection/generated/api/Support/CrossSubscriptionRestoreState.cs new file mode 100644 index 000000000000..4595df5ba515 --- /dev/null +++ b/src/DataProtection/generated/api/Support/CrossSubscriptionRestoreState.cs @@ -0,0 +1,106 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by 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.Support +{ + + /// CrossSubscriptionRestore state + public partial struct CrossSubscriptionRestoreState : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState Disabled = @"Disabled"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState Enabled = @"Enabled"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState PermanentlyDisabled = @"PermanentlyDisabled"; + + /// + /// the value for an instance of the Enum. + /// + private string _value { get; set; } + + /// Conversion from arbitrary object to CrossSubscriptionRestoreState + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new CrossSubscriptionRestoreState(global::System.Convert.ToString(value)); + } + + /// + /// Creates an instance of the Enum class. + /// + /// the value to create an instance for. + private CrossSubscriptionRestoreState(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Compares values of enum type CrossSubscriptionRestoreState + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState e) + { + return _value.Equals(e._value); + } + + /// + /// Compares values of enum type CrossSubscriptionRestoreState (override for Object) + /// + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is CrossSubscriptionRestoreState && Equals((CrossSubscriptionRestoreState)obj); + } + + /// Returns hashCode for enum CrossSubscriptionRestoreState + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for CrossSubscriptionRestoreState + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to CrossSubscriptionRestoreState + /// the value to convert to an instance of . + + public static implicit operator CrossSubscriptionRestoreState(string value) + { + return new CrossSubscriptionRestoreState(value); + } + + /// Implicit operator to convert CrossSubscriptionRestoreState to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState e) + { + return e._value; + } + + /// Overriding != operator for enum CrossSubscriptionRestoreState + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum CrossSubscriptionRestoreState + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Support/ImmutabilityState.Completer.cs b/src/DataProtection/generated/api/Support/ImmutabilityState.Completer.cs new file mode 100644 index 000000000000..7bcaa714a62e --- /dev/null +++ b/src/DataProtection/generated/api/Support/ImmutabilityState.Completer.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support +{ + + /// Immutability state + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityStateTypeConverter))] + public partial struct ImmutabilityState : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Disabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Disabled'", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Unlocked".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Unlocked'", "Unlocked", global::System.Management.Automation.CompletionResultType.ParameterValue, "Unlocked"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Locked".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Locked'", "Locked", global::System.Management.Automation.CompletionResultType.ParameterValue, "Locked"); + } + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Support/ImmutabilityState.TypeConverter.cs b/src/DataProtection/generated/api/Support/ImmutabilityState.TypeConverter.cs new file mode 100644 index 000000000000..e024eef41d2d --- /dev/null +++ b/src/DataProtection/generated/api/Support/ImmutabilityState.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support +{ + + /// Immutability state + public partial class ImmutabilityStateTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ImmutabilityState.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Support/ImmutabilityState.cs b/src/DataProtection/generated/api/Support/ImmutabilityState.cs new file mode 100644 index 000000000000..368d8a32dac1 --- /dev/null +++ b/src/DataProtection/generated/api/Support/ImmutabilityState.cs @@ -0,0 +1,100 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support +{ + + /// Immutability state + public partial struct ImmutabilityState : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState Disabled = @"Disabled"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState Locked = @"Locked"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState Unlocked = @"Unlocked"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to ImmutabilityState + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new ImmutabilityState(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type ImmutabilityState + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type ImmutabilityState (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is ImmutabilityState && Equals((ImmutabilityState)obj); + } + + /// Returns hashCode for enum ImmutabilityState + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private ImmutabilityState(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for ImmutabilityState + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to ImmutabilityState + /// the value to convert to an instance of . + + public static implicit operator ImmutabilityState(string value) + { + return new ImmutabilityState(value); + } + + /// Implicit operator to convert ImmutabilityState to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState e) + { + return e._value; + } + + /// Overriding != operator for enum ImmutabilityState + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum ImmutabilityState + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Support/SoftDeleteState.Completer.cs b/src/DataProtection/generated/api/Support/SoftDeleteState.Completer.cs new file mode 100644 index 000000000000..74c2a295e318 --- /dev/null +++ b/src/DataProtection/generated/api/Support/SoftDeleteState.Completer.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support +{ + + /// State of soft delete + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteStateTypeConverter))] + public partial struct SoftDeleteState : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Off".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Off'", "Off", global::System.Management.Automation.CompletionResultType.ParameterValue, "Off"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "On".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'On'", "On", global::System.Management.Automation.CompletionResultType.ParameterValue, "On"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "AlwaysOn".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'AlwaysOn'", "AlwaysOn", global::System.Management.Automation.CompletionResultType.ParameterValue, "AlwaysOn"); + } + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Support/SoftDeleteState.TypeConverter.cs b/src/DataProtection/generated/api/Support/SoftDeleteState.TypeConverter.cs new file mode 100644 index 000000000000..bdf4d6e48a81 --- /dev/null +++ b/src/DataProtection/generated/api/Support/SoftDeleteState.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support +{ + + /// State of soft delete + public partial class SoftDeleteStateTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => SoftDeleteState.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Support/SoftDeleteState.cs b/src/DataProtection/generated/api/Support/SoftDeleteState.cs new file mode 100644 index 000000000000..b3ba725f2927 --- /dev/null +++ b/src/DataProtection/generated/api/Support/SoftDeleteState.cs @@ -0,0 +1,105 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by 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.Support +{ + + /// State of soft delete + public partial struct SoftDeleteState : + System.IEquatable + { + /// + /// Soft Delete is permanently enabled for the BackupVault and the setting cannot be changed + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState AlwaysOn = @"AlwaysOn"; + + /// Soft Delete is turned off for the BackupVault + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState Off = @"Off"; + + /// Soft Delete is enabled for the BackupVault but can be turned off + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState On = @"On"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to SoftDeleteState + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new SoftDeleteState(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type SoftDeleteState + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type SoftDeleteState (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is SoftDeleteState && Equals((SoftDeleteState)obj); + } + + /// Returns hashCode for enum SoftDeleteState + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private SoftDeleteState(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for SoftDeleteState + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to SoftDeleteState + /// the value to convert to an instance of . + + public static implicit operator SoftDeleteState(string value) + { + return new SoftDeleteState(value); + } + + /// Implicit operator to convert SoftDeleteState to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState e) + { + return e._value; + } + + /// Overriding != operator for enum SoftDeleteState + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum SoftDeleteState + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState e1, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DataProtection/generated/api/Support/SourceDataStoreType.Completer.cs b/src/DataProtection/generated/api/Support/SourceDataStoreType.Completer.cs index 82f6e9a46f86..2959ca72041e 100644 --- a/src/DataProtection/generated/api/Support/SourceDataStoreType.Completer.cs +++ b/src/DataProtection/generated/api/Support/SourceDataStoreType.Completer.cs @@ -34,6 +34,10 @@ public partial struct SourceDataStoreType : { yield return new global::System.Management.Automation.CompletionResult("'SnapshotStore'", "SnapshotStore", global::System.Management.Automation.CompletionResultType.ParameterValue, "SnapshotStore"); } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "OperationalStore".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'OperationalStore'", "OperationalStore", global::System.Management.Automation.CompletionResultType.ParameterValue, "OperationalStore"); + } if (global::System.String.IsNullOrEmpty(wordToComplete) || "VaultStore".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) { yield return new global::System.Management.Automation.CompletionResult("'VaultStore'", "VaultStore", global::System.Management.Automation.CompletionResultType.ParameterValue, "VaultStore"); diff --git a/src/DataProtection/generated/api/Support/SourceDataStoreType.cs b/src/DataProtection/generated/api/Support/SourceDataStoreType.cs index 2509b232b779..87dcbcf06ab4 100644 --- a/src/DataProtection/generated/api/Support/SourceDataStoreType.cs +++ b/src/DataProtection/generated/api/Support/SourceDataStoreType.cs @@ -12,6 +12,8 @@ public partial struct SourceDataStoreType : { public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType ArchiveStore = @"ArchiveStore"; + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType OperationalStore = @"OperationalStore"; + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType SnapshotStore = @"SnapshotStore"; public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SourceDataStoreType VaultStore = @"VaultStore"; diff --git a/src/DataProtection/generated/api/Support/StorageSettingStoreTypes.Completer.cs b/src/DataProtection/generated/api/Support/StorageSettingStoreTypes.Completer.cs index cd49a270ed6b..05572cb02d5c 100644 --- a/src/DataProtection/generated/api/Support/StorageSettingStoreTypes.Completer.cs +++ b/src/DataProtection/generated/api/Support/StorageSettingStoreTypes.Completer.cs @@ -30,9 +30,9 @@ public partial struct StorageSettingStoreTypes : { yield return new global::System.Management.Automation.CompletionResult("'ArchiveStore'", "ArchiveStore", global::System.Management.Automation.CompletionResultType.ParameterValue, "ArchiveStore"); } - if (global::System.String.IsNullOrEmpty(wordToComplete) || "SnapshotStore".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + if (global::System.String.IsNullOrEmpty(wordToComplete) || "OperationalStore".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) { - yield return new global::System.Management.Automation.CompletionResult("'SnapshotStore'", "SnapshotStore", global::System.Management.Automation.CompletionResultType.ParameterValue, "SnapshotStore"); + yield return new global::System.Management.Automation.CompletionResult("'OperationalStore'", "OperationalStore", global::System.Management.Automation.CompletionResultType.ParameterValue, "OperationalStore"); } if (global::System.String.IsNullOrEmpty(wordToComplete) || "VaultStore".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) { diff --git a/src/DataProtection/generated/api/Support/StorageSettingStoreTypes.cs b/src/DataProtection/generated/api/Support/StorageSettingStoreTypes.cs index 5a40f5015375..7ee4f9850c78 100644 --- a/src/DataProtection/generated/api/Support/StorageSettingStoreTypes.cs +++ b/src/DataProtection/generated/api/Support/StorageSettingStoreTypes.cs @@ -12,7 +12,7 @@ public partial struct StorageSettingStoreTypes : { public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes ArchiveStore = @"ArchiveStore"; - public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes SnapshotStore = @"SnapshotStore"; + public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes OperationalStore = @"OperationalStore"; public static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.StorageSettingStoreTypes VaultStore = @"VaultStore"; diff --git a/src/DataProtection/generated/cmdlets/BackupAzDataProtectionBackupInstanceAdhoc_BackupExpanded.cs b/src/DataProtection/generated/cmdlets/BackupAzDataProtectionBackupInstanceAdhoc_BackupExpanded.cs index 40aa894f9ff8..f9f75af2dee3 100644 --- a/src/DataProtection/generated/cmdlets/BackupAzDataProtectionBackupInstanceAdhoc_BackupExpanded.cs +++ b/src/DataProtection/generated/cmdlets/BackupAzDataProtectionBackupInstanceAdhoc_BackupExpanded.cs @@ -13,7 +13,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.Api20220501.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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, @@ -34,7 +34,7 @@ public partial class BackupAzDataProtectionBackupInstanceAdhoc_BackupExpanded : private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Trigger backup request - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequest _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TriggerBackupRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequest _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TriggerBackupRequest(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -44,12 +44,12 @@ public partial class BackupAzDataProtectionBackupInstanceAdhoc_BackupExpanded : /// Backing field for property. private string _backupInstanceName; - /// The name of the backup instance - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance")] + /// The name of the backup instance. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the backup instance", + Description = @"The name of the backup instance.", SerializedName = @"backupInstanceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -138,12 +138,12 @@ public partial class BackupAzDataProtectionBackupInstanceAdhoc_BackupExpanded : /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -152,12 +152,12 @@ public partial class BackupAzDataProtectionBackupInstanceAdhoc_BackupExpanded : /// Backing field for property. private string _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -197,24 +197,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo /// 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. @@ -447,12 +447,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -469,7 +469,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, BackupInstanceName=BackupInstanceName, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -487,12 +487,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo /// 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 ) { @@ -504,7 +504,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/BackupAzDataProtectionBackupInstanceAdhoc_BackupViaIdentityExpanded.cs b/src/DataProtection/generated/cmdlets/BackupAzDataProtectionBackupInstanceAdhoc_BackupViaIdentityExpanded.cs index 3b932ba01050..aa7b8cad9463 100644 --- a/src/DataProtection/generated/cmdlets/BackupAzDataProtectionBackupInstanceAdhoc_BackupViaIdentityExpanded.cs +++ b/src/DataProtection/generated/cmdlets/BackupAzDataProtectionBackupInstanceAdhoc_BackupViaIdentityExpanded.cs @@ -13,7 +13,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.Api20220501.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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, @@ -34,7 +34,7 @@ public partial class BackupAzDataProtectionBackupInstanceAdhoc_BackupViaIdentity private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Trigger backup request - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ITriggerBackupRequest _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.TriggerBackupRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ITriggerBackupRequest _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.TriggerBackupRequest(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -145,24 +145,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo /// 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 @@ -416,12 +416,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -438,7 +438,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 } @@ -456,12 +456,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo /// 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 ) { @@ -473,7 +473,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/FindAzDataProtectionRestorableTimeRange_FindExpanded.cs b/src/DataProtection/generated/cmdlets/FindAzDataProtectionRestorableTimeRange_FindExpanded.cs index c53960f7a1d9..4cffca8e1428 100644 --- a/src/DataProtection/generated/cmdlets/FindAzDataProtectionRestorableTimeRange_FindExpanded.cs +++ b/src/DataProtection/generated/cmdlets/FindAzDataProtectionRestorableTimeRange_FindExpanded.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] Find=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/findRestorableTimeRanges" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Find, @"AzDataProtectionRestorableTimeRange_FindExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Finds the valid recovery point in time ranges for the restore.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class FindAzDataProtectionRestorableTimeRange_FindExpanded : global::System.Management.Automation.PSCmdlet, @@ -34,17 +34,17 @@ public partial class FindAzDataProtectionRestorableTimeRange_FindExpanded : glob private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// List Restore Ranges Request - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesRequest _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupFindRestorableTimeRangesRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesRequest _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupFindRestorableTimeRangesRequest(); /// Backing field for property. private string _backupInstanceName; - /// The name of the backup instance - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance")] + /// The name of the backup instance. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the backup instance", + Description = @"The name of the backup instance.", SerializedName = @"backupInstanceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -125,12 +125,12 @@ public partial class FindAzDataProtectionRestorableTimeRange_FindExpanded : glob /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -162,12 +162,12 @@ public partial class FindAzDataProtectionRestorableTimeRange_FindExpanded : glob /// Backing field for property. private string _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -196,24 +196,24 @@ public partial class FindAzDataProtectionRestorableTimeRange_FindExpanded : 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResource /// 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) @@ -389,12 +389,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -411,7 +411,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, BackupInstanceName=BackupInstanceName, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -429,12 +429,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResource /// 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 ) { @@ -446,7 +446,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_Get.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_Get.cs index 2f6afe51786a..c2efe739ea63 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_Get.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_Get.cs @@ -13,7 +13,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.Api20220501.IBackupInstanceResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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, @@ -76,12 +76,12 @@ public partial class GetAzDataProtectionBackupInstance_Get : global::System.Mana /// Backing field for property. private string _name; - /// The name of the backup instance - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance")] + /// The name of the backup instance. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the backup instance", + Description = @"The name of the backup instance.", SerializedName = @"backupInstanceName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("BackupInstanceName")] @@ -112,12 +112,12 @@ public partial class GetAzDataProtectionBackupInstance_Get : global::System.Mana /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -126,12 +126,12 @@ public partial class GetAzDataProtectionBackupInstance_Get : global::System.Mana /// Backing field for property. private string[] _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -160,24 +160,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource /// 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) @@ -353,12 +353,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -375,7 +375,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, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -393,12 +393,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource /// 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 ) { @@ -410,7 +410,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_GetViaIdentity.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_GetViaIdentity.cs index fac40b4fe5eb..2d94c0e69343 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_GetViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_GetViaIdentity.cs @@ -13,7 +13,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.Api20220501.IBackupInstanceResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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, @@ -107,24 +107,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource /// 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) @@ -321,12 +321,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -343,7 +343,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 } @@ -361,12 +361,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource /// 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 ) { @@ -378,7 +378,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_List.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_List.cs index 0214fb4ff077..cc7d7066a280 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_List.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupInstance_List.cs @@ -13,7 +13,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.Api20220501.IBackupInstanceResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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, @@ -97,12 +97,12 @@ public partial class GetAzDataProtectionBackupInstance_List : global::System.Man /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -111,12 +111,12 @@ public partial class GetAzDataProtectionBackupInstance_List : global::System.Man /// Backing field for property. private string[] _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -145,24 +145,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResourceList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResourceList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -338,12 +338,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -360,7 +360,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 } @@ -378,12 +378,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResourceList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResourceList /// 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 0fa8d01359ca..ccc860277024 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_Get.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_Get.cs @@ -13,7 +13,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.Api20220501.IBaseBackupPolicyResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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, @@ -111,12 +111,12 @@ public partial class GetAzDataProtectionBackupPolicy_Get : global::System.Manage /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -125,12 +125,12 @@ public partial class GetAzDataProtectionBackupPolicy_Get : global::System.Manage /// Backing field for property. private string[] _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -159,24 +159,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -352,12 +352,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -374,7 +374,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, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -392,12 +392,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource /// 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 ) { @@ -409,7 +409,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_GetViaIdentity.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_GetViaIdentity.cs index 2f9aeb76fc3b..485cad83f331 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_GetViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_GetViaIdentity.cs @@ -13,7 +13,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.Api20220501.IBaseBackupPolicyResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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, @@ -107,24 +107,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource /// 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) @@ -321,12 +321,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -343,7 +343,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 } @@ -361,12 +361,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource /// 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 ) { @@ -378,7 +378,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_List.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_List.cs index f00872929915..14a938afaf36 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_List.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupPolicy_List.cs @@ -13,7 +13,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.Api20220501.IBaseBackupPolicyResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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, @@ -97,12 +97,12 @@ public partial class GetAzDataProtectionBackupPolicy_List : global::System.Manag /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -111,12 +111,12 @@ public partial class GetAzDataProtectionBackupPolicy_List : global::System.Manag /// Backing field for property. private string[] _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -145,24 +145,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResourceList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -338,12 +338,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -360,7 +360,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 } @@ -378,12 +378,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResourceList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResourceList /// 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 9b89de272c54..37df5b205756 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_Get.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_Get.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] GetInSubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/backupVaults" /// [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.Api20220501.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 GetAzDataProtectionBackupVault_Get : global::System.Management.Automation.PSCmdlet, @@ -97,12 +97,12 @@ public partial class GetAzDataProtectionBackupVault_Get : global::System.Managem /// Backing field for property. private string[] _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -117,24 +117,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceList /// 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) @@ -310,12 +310,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -332,7 +332,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 } @@ -350,12 +350,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceList /// 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_Get1.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_Get1.cs index c7311f334161..5011e9f0efbe 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_Get1.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_Get1.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] GetInResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataProtectionBackupVault_Get1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 GetAzDataProtectionBackupVault_Get1 : global::System.Management.Automation.PSCmdlet, @@ -97,12 +97,12 @@ public partial class GetAzDataProtectionBackupVault_Get1 : global::System.Manage /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -111,12 +111,12 @@ public partial class GetAzDataProtectionBackupVault_Get1 : global::System.Manage /// Backing field for property. private string[] _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -131,24 +131,24 @@ public partial class GetAzDataProtectionBackupVault_Get1 : 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceList /// 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) @@ -324,12 +324,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -346,7 +346,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 } @@ -364,12 +364,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceList /// 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_Get2.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_Get2.cs index 2a723faeaca6..6607f4e0a88d 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_Get2.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_Get2.cs @@ -13,7 +13,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_Get2")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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_Get2 : global::System.Management.Automation.PSCmdlet, @@ -97,12 +97,12 @@ public partial class GetAzDataProtectionBackupVault_Get2 : global::System.Manage /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -111,12 +111,12 @@ public partial class GetAzDataProtectionBackupVault_Get2 : global::System.Manage /// Backing field for property. private string[] _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -145,24 +145,24 @@ public partial class GetAzDataProtectionBackupVault_Get2 : 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -338,12 +338,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -360,7 +360,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 } @@ -378,12 +378,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource /// 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 ) { @@ -395,7 +395,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_GetViaIdentity.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_GetViaIdentity.cs index e8bfd5fd58d6..276dcf509497 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_GetViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_GetViaIdentity.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] GetInSubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/backupVaults" /// [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.Api20220501.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 GetAzDataProtectionBackupVault_GetViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -107,24 +107,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceList /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceList /// 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_GetViaIdentity1.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_GetViaIdentity1.cs index fc05259556ae..ed01ff6aff5c 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_GetViaIdentity1.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_GetViaIdentity1.cs @@ -14,7 +14,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, @"AzDataProtectionBackupVault_GetViaIdentity1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 GetAzDataProtectionBackupVault_GetViaIdentity1 : global::System.Management.Automation.PSCmdlet, @@ -108,24 +108,24 @@ public partial class GetAzDataProtectionBackupVault_GetViaIdentity1 : 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceList /// 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) @@ -314,12 +314,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -336,7 +336,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 } @@ -354,12 +354,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResourceList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResourceList /// 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_GetViaIdentity2.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_GetViaIdentity2.cs index c05e964a5b96..2a2d1e53cfcb 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_GetViaIdentity2.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionBackupVault_GetViaIdentity2.cs @@ -14,7 +14,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, @"AzDataProtectionBackupVault_GetViaIdentity2")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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_GetViaIdentity2 : global::System.Management.Automation.PSCmdlet, @@ -108,24 +108,24 @@ public partial class GetAzDataProtectionBackupVault_GetViaIdentity2 : 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource /// 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) @@ -318,12 +318,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -340,7 +340,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 } @@ -358,12 +358,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource /// 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 ) { @@ -375,7 +375,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_Get.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_Get.cs index ee714be6a87e..70ee513e328c 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_Get.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_Get.cs @@ -13,7 +13,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.Api20220501.IAzureBackupJobResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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, @@ -114,12 +114,12 @@ public partial class GetAzDataProtectionJob_Get : global::System.Management.Auto /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -128,12 +128,12 @@ public partial class GetAzDataProtectionJob_Get : global::System.Management.Auto /// Backing field for property. private string[] _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -162,24 +162,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResource /// 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) @@ -355,12 +355,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -377,7 +377,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 } @@ -395,12 +395,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResource /// 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 ) { @@ -412,7 +412,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_GetViaIdentity.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_GetViaIdentity.cs index fe27192bb2b0..fc7b7ecc2d3e 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_GetViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_GetViaIdentity.cs @@ -13,7 +13,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.Api20220501.IAzureBackupJobResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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, @@ -107,24 +107,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResource /// 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) @@ -321,12 +321,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -343,7 +343,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 } @@ -361,12 +361,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResource /// 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 ) { @@ -378,7 +378,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_List.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_List.cs index dcf6ffb9fa2f..4d8053ae76fe 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_List.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionJob_List.cs @@ -13,7 +13,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.Api20220501.IAzureBackupJobResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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, @@ -97,12 +97,12 @@ public partial class GetAzDataProtectionJob_List : global::System.Management.Aut /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -111,12 +111,12 @@ public partial class GetAzDataProtectionJob_List : global::System.Management.Aut /// Backing field for property. private string[] _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -145,24 +145,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -338,12 +338,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -360,7 +360,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 } @@ -378,12 +378,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResourceList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResourceList /// 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 8135e596a612..a9ecfe754806 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 /// [OpenAPI] List=>GET:"/providers/Microsoft.DataProtection/operations" /// [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.Api20220501.IClientDiscoveryValueForSingleApi))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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, @@ -105,24 +105,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryResponse /// 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) @@ -295,12 +295,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -317,7 +317,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 } @@ -335,12 +335,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryResponse + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryResponse /// 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 5e5079feb4c2..aa4c4eeee004 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPoint_Get.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPoint_Get.cs @@ -13,7 +13,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.Api20220501.IAzureBackupRecoveryPointResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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, @@ -36,12 +36,12 @@ public partial class GetAzDataProtectionRecoveryPoint_Get : global::System.Manag /// Backing field for property. private string _backupInstanceName; - /// The name of the backup instance - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance")] + /// The name of the backup instance. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the backup instance", + Description = @"The name of the backup instance.", SerializedName = @"backupInstanceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -125,12 +125,12 @@ public partial class GetAzDataProtectionRecoveryPoint_Get : global::System.Manag /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -139,12 +139,12 @@ public partial class GetAzDataProtectionRecoveryPoint_Get : global::System.Manag /// Backing field for property. private string[] _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -173,24 +173,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -366,12 +366,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -388,7 +388,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, BackupInstanceName=BackupInstanceName, Id=Id }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -406,12 +406,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource /// 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 ) { @@ -423,7 +423,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPoint_GetViaIdentity.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPoint_GetViaIdentity.cs index 2cf51bf11c67..693b43fdd788 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPoint_GetViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPoint_GetViaIdentity.cs @@ -13,7 +13,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.Api20220501.IAzureBackupRecoveryPointResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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, @@ -107,24 +107,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource /// 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 @@ 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 @@ 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 } @@ -365,12 +365,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource /// 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 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPoint_List.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPoint_List.cs index 4e79d72878ec..01f88b2e073b 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPoint_List.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionRecoveryPoint_List.cs @@ -14,7 +14,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, @"AzDataProtectionRecoveryPoint_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 GetAzDataProtectionRecoveryPoint_List : global::System.Management.Automation.PSCmdlet, @@ -37,12 +37,12 @@ public partial class GetAzDataProtectionRecoveryPoint_List : global::System.Mana /// Backing field for property. private string _backupInstanceName; - /// The name of the backup instance - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance")] + /// The name of the backup instance. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the backup instance", + Description = @"The name of the backup instance.", SerializedName = @"backupInstanceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -126,12 +126,12 @@ public partial class GetAzDataProtectionRecoveryPoint_List : global::System.Mana /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -154,12 +154,12 @@ public partial class GetAzDataProtectionRecoveryPoint_List : global::System.Mana /// Backing field for property. private string[] _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -188,24 +188,24 @@ public partial class GetAzDataProtectionRecoveryPoint_List : 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResourceList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResourceList /// 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) @@ -381,12 +381,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -403,7 +403,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, 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 } @@ -421,12 +421,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResourceList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResourceList /// 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/GetAzDataProtectionResourceGuard_Get.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionResourceGuard_Get.cs index f503641039f2..86ea03e05fc2 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionResourceGuard_Get.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionResourceGuard_Get.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataProtectionResourceGuard_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Returns a ResourceGuard belonging to a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class GetAzDataProtectionResourceGuard_Get : global::System.Management.Automation.PSCmdlet, @@ -111,12 +111,12 @@ public partial class GetAzDataProtectionResourceGuard_Get : global::System.Manag /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -125,12 +125,12 @@ public partial class GetAzDataProtectionResourceGuard_Get : global::System.Manag /// Backing field for property. private string[] _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -145,24 +145,24 @@ public partial class GetAzDataProtectionResourceGuard_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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -338,12 +338,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -360,7 +360,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, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -378,12 +378,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource /// 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 ) { @@ -395,7 +395,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/GetAzDataProtectionResourceGuard_Get1.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionResourceGuard_Get1.cs index 7a8ac11ef7cd..edb461f2e306 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionResourceGuard_Get1.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionResourceGuard_Get1.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] GetResourcesInResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataProtectionResourceGuard_Get1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Returns ResourceGuards collection belonging to a ResourceGroup.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class GetAzDataProtectionResourceGuard_Get1 : global::System.Management.Automation.PSCmdlet, @@ -97,12 +97,12 @@ public partial class GetAzDataProtectionResourceGuard_Get1 : global::System.Mana /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -111,12 +111,12 @@ public partial class GetAzDataProtectionResourceGuard_Get1 : global::System.Mana /// Backing field for property. private string[] _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -131,24 +131,24 @@ public partial class GetAzDataProtectionResourceGuard_Get1 : 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceList /// 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) @@ -324,12 +324,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -346,7 +346,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 }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -364,12 +364,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResourceList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResourceList /// 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/GetAzDataProtectionResourceGuard_GetViaIdentity.cs b/src/DataProtection/generated/cmdlets/GetAzDataProtectionResourceGuard_GetViaIdentity.cs index e3c613712892..aa2d4494da68 100644 --- a/src/DataProtection/generated/cmdlets/GetAzDataProtectionResourceGuard_GetViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/GetAzDataProtectionResourceGuard_GetViaIdentity.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataProtectionResourceGuard_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Returns a ResourceGuard belonging to a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class GetAzDataProtectionResourceGuard_GetViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -107,24 +107,24 @@ public partial class GetAzDataProtectionResourceGuard_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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -317,12 +317,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -339,7 +339,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 } @@ -357,12 +357,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource /// 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 ) { @@ -374,7 +374,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupInstance_Create.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupInstance_Create.cs index bf98440bb4b8..39ba881db090 100644 --- a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupInstance_Create.cs +++ b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupInstance_Create.cs @@ -14,7 +14,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, @"AzDataProtectionBackupInstance_Create", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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, @@ -82,12 +82,12 @@ public partial class NewAzDataProtectionBackupInstance_Create : global::System.M /// Backing field for property. private string _name; - /// The name of the backup instance - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance")] + /// The name of the backup instance. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the backup instance", + Description = @"The name of the backup instance.", SerializedName = @"backupInstanceName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("BackupInstanceName")] @@ -103,7 +103,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.Api20220501.IBackupInstanceResource _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource _parameter; /// BackupInstance Resource [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "BackupInstance Resource", ValueFromPipeline = true)] @@ -112,8 +112,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.Api20220501.IBackupInstanceResource) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -139,12 +139,12 @@ public partial class NewAzDataProtectionBackupInstance_Create : global::System.M /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -153,12 +153,12 @@ public partial class NewAzDataProtectionBackupInstance_Create : global::System.M /// Backing field for property. private string _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -187,24 +187,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource /// 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) @@ -435,12 +435,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -457,7 +457,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, Name=Name, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -475,12 +475,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -492,7 +492,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupInstance_CreateExpanded.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupInstance_CreateExpanded.cs index 250460cd8741..aed5bf341b9a 100644 --- a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupInstance_CreateExpanded.cs +++ b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupInstance_CreateExpanded.cs @@ -14,7 +14,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, @"AzDataProtectionBackupInstance_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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, @@ -35,7 +35,7 @@ public partial class NewAzDataProtectionBackupInstance_CreateExpanded : global:: private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// BackupInstance Resource - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupInstanceResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupInstanceResource(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -85,12 +85,12 @@ public partial class NewAzDataProtectionBackupInstance_CreateExpanded : global:: /// Backing field for property. private string _name; - /// The name of the backup instance - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance")] + /// The name of the backup instance. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the backup instance", + Description = @"The name of the backup instance.", SerializedName = @"backupInstanceName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("BackupInstanceName")] @@ -118,8 +118,8 @@ public partial class NewAzDataProtectionBackupInstance_CreateExpanded : global:: ReadOnly = false, Description = @"BackupInstanceResource properties", SerializedName = @"properties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance Property { get => _parametersBody.Property ?? null /* object */; set => _parametersBody.Property = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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")] @@ -140,12 +140,12 @@ public partial class NewAzDataProtectionBackupInstance_CreateExpanded : global:: /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -154,12 +154,12 @@ public partial class NewAzDataProtectionBackupInstance_CreateExpanded : global:: /// Backing field for property. private string _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -178,8 +178,8 @@ public partial class NewAzDataProtectionBackupInstance_CreateExpanded : global:: ReadOnly = false, Description = @"Proxy Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// Backing field for property. private string _vaultName; @@ -200,24 +200,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource /// 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) @@ -448,12 +448,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -470,7 +470,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, Name=Name, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -488,12 +488,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource /// 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 ) { @@ -505,7 +505,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupPolicy_Create.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupPolicy_Create.cs index 2aaad19a4c75..2f8a6f9c1756 100644 --- a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupPolicy_Create.cs +++ b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupPolicy_Create.cs @@ -14,7 +14,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.Api20220501.IBaseBackupPolicyResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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, @@ -90,7 +90,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.Api20220501.IBaseBackupPolicyResource _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource _parameter; /// BaseBackupPolicy resource [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "BaseBackupPolicy resource", ValueFromPipeline = true)] @@ -99,8 +99,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.Api20220501.IBaseBackupPolicyResource) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -126,12 +126,12 @@ public partial class NewAzDataProtectionBackupPolicy_Create : global::System.Man /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -140,12 +140,12 @@ public partial class NewAzDataProtectionBackupPolicy_Create : global::System.Man /// Backing field for property. private string _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -174,24 +174,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -367,12 +367,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -389,7 +389,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, Name=Name, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -407,12 +407,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource /// 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 ) { @@ -424,7 +424,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupPolicy_CreateExpanded.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupPolicy_CreateExpanded.cs index 1ab6a68ea4d2..dab796ab6dbd 100644 --- a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupPolicy_CreateExpanded.cs +++ b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupPolicy_CreateExpanded.cs @@ -14,7 +14,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.Api20220501.IBaseBackupPolicyResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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, @@ -35,7 +35,7 @@ public partial class NewAzDataProtectionBackupPolicy_CreateExpanded : global::Sy private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// BaseBackupPolicy resource - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BaseBackupPolicyResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BaseBackupPolicyResource(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -139,12 +139,12 @@ public partial class NewAzDataProtectionBackupPolicy_CreateExpanded : global::Sy /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -153,12 +153,12 @@ public partial class NewAzDataProtectionBackupPolicy_CreateExpanded : global::Sy /// Backing field for property. private string _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -187,24 +187,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource /// 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) @@ -380,12 +380,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -402,7 +402,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, Name=Name, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -420,12 +420,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -437,7 +437,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupVault_Create.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupVault_Create.cs index 2d2607a07360..f27cfbee7e2b 100644 --- a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupVault_Create.cs +++ b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupVault_Create.cs @@ -14,7 +14,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.Api20220501.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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, @@ -88,7 +88,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.Api20220501.IBackupVaultResource _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource _parameter; /// Backup Vault Resource [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Backup Vault Resource", ValueFromPipeline = true)] @@ -97,8 +97,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.Api20220501.IBackupVaultResource) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -124,12 +124,12 @@ public partial class NewAzDataProtectionBackupVault_Create : global::System.Mana /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -138,12 +138,12 @@ public partial class NewAzDataProtectionBackupVault_Create : global::System.Mana /// Backing field for property. private string _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -172,24 +172,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource /// 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) @@ -419,12 +419,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -441,7 +441,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, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -459,12 +459,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource /// 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 ) { @@ -476,7 +476,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupVault_CreateExpanded.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupVault_CreateExpanded.cs index 4b01a8d42878..ff5c23abb4a2 100644 --- a/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupVault_CreateExpanded.cs +++ b/src/DataProtection/generated/cmdlets/NewAzDataProtectionBackupVault_CreateExpanded.cs @@ -14,7 +14,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.Api20220501.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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, @@ -35,7 +35,7 @@ public partial class NewAzDataProtectionBackupVault_CreateExpanded : global::Sys private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Backup Vault Resource - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.BackupVaultResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupVaultResource(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -64,6 +64,20 @@ public partial class NewAzDataProtectionBackupVault_CreateExpanded : global::Sys /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DataProtection Client => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.ClientAPI; + /// + /// Cross subscription restore state of the vault. Allowed values are Disabled, Enabled, PermanentlyDisabled. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Cross subscription restore state of the vault. Allowed values are Disabled, Enabled, PermanentlyDisabled.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Cross subscription restore state of the vault. Allowed values are Disabled, Enabled, PermanentlyDisabled.", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState))] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState CrossSubscriptionRestoreState { get => _parametersBody.CrossSubscriptionRestoreState ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState)""); set => _parametersBody.CrossSubscriptionRestoreState = value; } + /// /// The credentials, account, tenant, and subscription used for communication with Azure /// @@ -107,6 +121,18 @@ public partial class NewAzDataProtectionBackupVault_CreateExpanded : global::Sys PossibleTypes = new [] { typeof(string) })] public string IdentityType { get => _parametersBody.IdentityType ?? null; set => _parametersBody.IdentityType = value; } + /// Immutability state of the vault. Allowed values are Disabled, Unlocked, Locked. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Immutability state of the vault. Allowed values are Disabled, Unlocked, Locked.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Immutability state of the vault. Allowed values are Disabled, Unlocked, Locked.", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState))] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState ImmutabilityState { get => _parametersBody.ImmutabilityState ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState)""); set => _parametersBody.ImmutabilityState = value; } + /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } @@ -161,17 +187,40 @@ public partial class NewAzDataProtectionBackupVault_CreateExpanded : global::Sys /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + /// Soft delete retention duration in days. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Soft delete retention duration in days.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Soft delete retention duration in days.", + SerializedName = @"retentionDurationInDays", + PossibleTypes = new [] { typeof(double) })] + public double SoftDeleteRetentionDurationInDay { get => _parametersBody.SoftDeleteRetentionDurationInDay ?? default(double); set => _parametersBody.SoftDeleteRetentionDurationInDay = value; } + + /// Soft delete state of the vault. Allowed values are Off, On, AlwaysOn. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Soft delete state of the vault. Allowed values are Off, On, AlwaysOn.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Soft delete state of the vault. Allowed values are Off, On, AlwaysOn.", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState))] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState SoftDeleteState { get => _parametersBody.SoftDeleteState ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState)""); set => _parametersBody.SoftDeleteState = value; } + /// Storage Settings [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Storage Settings")] @@ -181,18 +230,18 @@ public partial class NewAzDataProtectionBackupVault_CreateExpanded : global::Sys ReadOnly = false, Description = @"Storage Settings", SerializedName = @"storageSettings", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSetting) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSetting[] StorageSetting { get => _parametersBody.StorageSetting ?? null /* arrayOf */; set => _parametersBody.StorageSetting = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSetting) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSetting[] StorageSetting { get => _parametersBody.StorageSetting ?? null /* arrayOf */; set => _parametersBody.StorageSetting = value; } /// Backing field for property. private string _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -211,8 +260,8 @@ public partial class NewAzDataProtectionBackupVault_CreateExpanded : global::Sys ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// Backing field for property. private string _vaultName; @@ -233,24 +282,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource /// 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) @@ -480,12 +529,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -502,7 +551,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, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -520,12 +569,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource /// 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 ) { @@ -537,7 +586,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_Put.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_Put.cs index c93d4a8fed06..b1362dda5eff 100644 --- a/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_Put.cs +++ b/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_Put.cs @@ -14,7 +14,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, @"AzDataProtectionResourceGuard_Put", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Creates or updates a ResourceGuard resource belonging to a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class NewAzDataProtectionResourceGuard_Put : global::System.Management.Automation.PSCmdlet, @@ -89,7 +89,7 @@ public partial class NewAzDataProtectionResourceGuard_Put : global::System.Manag public string Name { get => this._name; set => this._name = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource _parameter; [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".", ValueFromPipeline = true)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -97,8 +97,8 @@ public partial class NewAzDataProtectionResourceGuard_Put : global::System.Manag ReadOnly = false, Description = @"", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -124,12 +124,12 @@ public partial class NewAzDataProtectionResourceGuard_Put : global::System.Manag /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -138,12 +138,12 @@ public partial class NewAzDataProtectionResourceGuard_Put : global::System.Manag /// Backing field for property. private string _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -158,24 +158,24 @@ public partial class NewAzDataProtectionResourceGuard_Put : 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource /// 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) @@ -351,12 +351,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -373,7 +373,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, Name=Name, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -391,12 +391,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource /// 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 ) { @@ -408,7 +408,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_PutExpanded.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_PutExpanded.cs index b813a6085412..af9b80058b28 100644 --- a/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_PutExpanded.cs +++ b/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_PutExpanded.cs @@ -14,7 +14,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, @"AzDataProtectionResourceGuard_PutExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Creates or updates a ResourceGuard resource belonging to a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class NewAzDataProtectionResourceGuard_PutExpanded : global::System.Management.Automation.PSCmdlet, @@ -34,7 +34,7 @@ public partial class NewAzDataProtectionResourceGuard_PutExpanded : global::Syst /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceGuardResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceGuardResource(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -88,17 +88,6 @@ public partial class NewAzDataProtectionResourceGuard_PutExpanded : global::Syst [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; } - /// The identityType which can be either SystemAssigned or None - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The identityType which can be either SystemAssigned or None")] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identityType which can be either SystemAssigned or None", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - public string IdentityType { get => _parametersBody.IdentityType ?? null; set => _parametersBody.IdentityType = value; } - /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } @@ -159,12 +148,12 @@ public partial class NewAzDataProtectionResourceGuard_PutExpanded : global::Syst /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -173,12 +162,12 @@ public partial class NewAzDataProtectionResourceGuard_PutExpanded : global::Syst /// Backing field for property. private string _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -197,32 +186,32 @@ public partial class NewAzDataProtectionResourceGuard_PutExpanded : global::Syst ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource /// 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) @@ -398,12 +387,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -420,7 +409,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, Name=Name, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -438,12 +427,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource /// 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 ) { @@ -455,7 +444,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_PutViaIdentity.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_PutViaIdentity.cs index 5d1c99f122e2..d057160a3a5d 100644 --- a/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_PutViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_PutViaIdentity.cs @@ -14,7 +14,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, @"AzDataProtectionResourceGuard_PutViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Creates or updates a ResourceGuard resource belonging to a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class NewAzDataProtectionResourceGuard_PutViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -83,7 +83,7 @@ public partial class NewAzDataProtectionResourceGuard_PutViaIdentity : global::S 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.Api20220501.IResourceGuardResource _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource _parameter; [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".", ValueFromPipeline = true)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( @@ -91,8 +91,8 @@ public partial class NewAzDataProtectionResourceGuard_PutViaIdentity : global::S ReadOnly = false, Description = @"", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource 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 NewAzDataProtectionResourceGuard_PutViaIdentity : 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 { body=Parameter }) { 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource /// 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.Api20220501.IResourceGuardResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_PutViaIdentityExpanded.cs b/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_PutViaIdentityExpanded.cs index 47ca861dd142..f7c481f7bbfa 100644 --- a/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_PutViaIdentityExpanded.cs +++ b/src/DataProtection/generated/cmdlets/NewAzDataProtectionResourceGuard_PutViaIdentityExpanded.cs @@ -14,7 +14,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, @"AzDataProtectionResourceGuard_PutViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"Creates or updates a ResourceGuard resource belonging to a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class NewAzDataProtectionResourceGuard_PutViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -34,7 +34,7 @@ public partial class NewAzDataProtectionResourceGuard_PutViaIdentityExpanded : g /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ResourceGuardResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ResourceGuardResource(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -88,17 +88,6 @@ public partial class NewAzDataProtectionResourceGuard_PutViaIdentityExpanded : g [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; } - /// The identityType which can be either SystemAssigned or None - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The identityType which can be either SystemAssigned or None")] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identityType which can be either SystemAssigned or None", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - public string IdentityType { get => _parametersBody.IdentityType ?? null; set => _parametersBody.IdentityType = value; } - /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity _inputObject; @@ -159,32 +148,32 @@ public partial class NewAzDataProtectionResourceGuard_PutViaIdentityExpanded : g ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource /// 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) @@ -380,12 +369,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -402,7 +391,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 } @@ -420,12 +409,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -437,7 +426,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupInstance_Delete.cs b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupInstance_Delete.cs index 31a3b92a1be3..5178f66a5b2f 100644 --- a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupInstance_Delete.cs +++ b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupInstance_Delete.cs @@ -81,12 +81,12 @@ public partial class RemoveAzDataProtectionBackupInstance_Delete : global::Syste /// Backing field for property. private string _name; - /// The name of the backup instance - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance")] + /// The name of the backup instance. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the backup instance", + Description = @"The name of the backup instance.", SerializedName = @"backupInstanceName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("BackupInstanceName")] @@ -132,12 +132,12 @@ public partial class RemoveAzDataProtectionBackupInstance_Delete : global::Syste /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -146,12 +146,12 @@ public partial class RemoveAzDataProtectionBackupInstance_Delete : global::Syste /// Backing field for property. private string _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -180,12 +180,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 @@ -435,12 +435,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -457,7 +457,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, 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 60c87954e2f4..5190901e2945 100644 --- a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupInstance_DeleteViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupInstance_DeleteViaIdentity.cs @@ -127,12 +127,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 @@ -402,12 +402,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -424,7 +424,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 c4fa67faf972..fd9605843b8b 100644 --- a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupPolicy_Delete.cs +++ b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupPolicy_Delete.cs @@ -118,12 +118,12 @@ public partial class RemoveAzDataProtectionBackupPolicy_Delete : global::System. /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -132,12 +132,12 @@ public partial class RemoveAzDataProtectionBackupPolicy_Delete : global::System. /// Backing field for property. private string _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -166,12 +166,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 @@ -367,12 +367,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -389,7 +389,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, 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 afd4aed5aa4a..c4988e2ff7ef 100644 --- a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupPolicy_DeleteViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupPolicy_DeleteViaIdentity.cs @@ -114,12 +114,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 @@ -339,12 +339,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -361,7 +361,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 0b017af971fd..15e6ee531a0c 100644 --- a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupVault_Delete.cs +++ b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupVault_Delete.cs @@ -104,12 +104,12 @@ public partial class RemoveAzDataProtectionBackupVault_Delete : global::System.M /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -118,12 +118,12 @@ public partial class RemoveAzDataProtectionBackupVault_Delete : global::System.M /// Backing field for property. private string _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -162,12 +162,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 @@ -387,12 +387,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -409,7 +409,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 } diff --git a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupVault_DeleteViaIdentity.cs b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupVault_DeleteViaIdentity.cs index 5f49a196d9b2..e5462700890a 100644 --- a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupVault_DeleteViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionBackupVault_DeleteViaIdentity.cs @@ -124,12 +124,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 @@ -369,12 +369,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -391,7 +391,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/RemoveAzDataProtectionResourceGuard_Delete.cs b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionResourceGuard_Delete.cs index e2bd3a515150..4d8fa869cd74 100644 --- a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionResourceGuard_Delete.cs +++ b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionResourceGuard_Delete.cs @@ -118,12 +118,12 @@ public partial class RemoveAzDataProtectionResourceGuard_Delete : global::System /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -132,12 +132,12 @@ public partial class RemoveAzDataProtectionResourceGuard_Delete : global::System /// Backing field for property. private string _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -152,12 +152,12 @@ public partial class RemoveAzDataProtectionResourceGuard_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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 @@ -353,12 +353,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -375,7 +375,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, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionResourceGuard_DeleteViaIdentity.cs b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionResourceGuard_DeleteViaIdentity.cs index 81a4802827d8..b0a58f706294 100644 --- a/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionResourceGuard_DeleteViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/RemoveAzDataProtectionResourceGuard_DeleteViaIdentity.cs @@ -114,12 +114,12 @@ public partial class RemoveAzDataProtectionResourceGuard_DeleteViaIdentity : 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 @@ -335,12 +335,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -357,7 +357,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/ResumeAzDataProtectionBackupInstanceProtection_Resume.cs b/src/DataProtection/generated/cmdlets/ResumeAzDataProtectionBackupInstanceProtection_Resume.cs index f2942ae007d5..e3a080ef93c8 100644 --- a/src/DataProtection/generated/cmdlets/ResumeAzDataProtectionBackupInstanceProtection_Resume.cs +++ b/src/DataProtection/generated/cmdlets/ResumeAzDataProtectionBackupInstanceProtection_Resume.cs @@ -41,11 +41,12 @@ public partial class ResumeAzDataProtectionBackupInstanceProtection_Resume : glo /// Backing field for property. private string _backupInstanceName; - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + /// The name of the backup instance. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"", + Description = @"The name of the backup instance.", SerializedName = @"backupInstanceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -130,12 +131,12 @@ public partial class ResumeAzDataProtectionBackupInstanceProtection_Resume : glo /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -144,12 +145,12 @@ public partial class ResumeAzDataProtectionBackupInstanceProtection_Resume : glo /// Backing field for property. private string _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -178,12 +179,12 @@ public partial class ResumeAzDataProtectionBackupInstanceProtection_Resume : 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 @@ -423,12 +424,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -445,7 +446,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, BackupInstanceName=BackupInstanceName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DataProtection/generated/cmdlets/ResumeAzDataProtectionBackupInstanceProtection_ResumeViaIdentity.cs b/src/DataProtection/generated/cmdlets/ResumeAzDataProtectionBackupInstanceProtection_ResumeViaIdentity.cs index c48520c53b0c..df83a0be811b 100644 --- a/src/DataProtection/generated/cmdlets/ResumeAzDataProtectionBackupInstanceProtection_ResumeViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/ResumeAzDataProtectionBackupInstanceProtection_ResumeViaIdentity.cs @@ -127,12 +127,12 @@ public partial class ResumeAzDataProtectionBackupInstanceProtection_ResumeViaIde /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 @@ -395,12 +395,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -417,7 +417,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 9cd5db59c241..66cc9928a7f2 100644 --- a/src/DataProtection/generated/cmdlets/StartAzDataProtectionBackupInstanceRestore_Trigger.cs +++ b/src/DataProtection/generated/cmdlets/StartAzDataProtectionBackupInstanceRestore_Trigger.cs @@ -13,7 +13,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.Api20220501.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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, @@ -41,12 +41,12 @@ public partial class StartAzDataProtectionBackupInstanceRestore_Trigger : global /// Backing field for property. private string _backupInstanceName; - /// The name of the backup instance - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance")] + /// The name of the backup instance. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the backup instance", + Description = @"The name of the backup instance.", SerializedName = @"backupInstanceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -101,7 +101,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.Api20220501.IAzureBackupRestoreRequest _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest _parameter; /// Azure backup restore request [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Azure backup restore request", ValueFromPipeline = true)] @@ -110,8 +110,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.Api20220501.IAzureBackupRestoreRequest) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -137,12 +137,12 @@ public partial class StartAzDataProtectionBackupInstanceRestore_Trigger : global /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -151,12 +151,12 @@ public partial class StartAzDataProtectionBackupInstanceRestore_Trigger : global /// Backing field for property. private string _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -185,24 +185,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo /// 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 +433,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 +455,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, BackupInstanceName=BackupInstanceName, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -473,12 +473,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo /// 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 +490,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/StartAzDataProtectionBackupInstanceRestore_TriggerExpanded.cs b/src/DataProtection/generated/cmdlets/StartAzDataProtectionBackupInstanceRestore_TriggerExpanded.cs index 37af56e3f943..2fe8c4cc41ae 100644 --- a/src/DataProtection/generated/cmdlets/StartAzDataProtectionBackupInstanceRestore_TriggerExpanded.cs +++ b/src/DataProtection/generated/cmdlets/StartAzDataProtectionBackupInstanceRestore_TriggerExpanded.cs @@ -13,7 +13,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.Api20220501.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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, @@ -34,7 +34,7 @@ public partial class StartAzDataProtectionBackupInstanceRestore_TriggerExpanded private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Azure backup restore request - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.AzureBackupRestoreRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.AzureBackupRestoreRequest(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -44,12 +44,12 @@ public partial class StartAzDataProtectionBackupInstanceRestore_TriggerExpanded /// Backing field for property. private string _backupInstanceName; - /// The name of the backup instance - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance")] + /// The name of the backup instance. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the backup instance", + Description = @"The name of the backup instance.", SerializedName = @"backupInstanceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -138,12 +138,12 @@ public partial class StartAzDataProtectionBackupInstanceRestore_TriggerExpanded /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -157,8 +157,8 @@ public partial class StartAzDataProtectionBackupInstanceRestore_TriggerExpanded ReadOnly = false, Description = @"Gets or sets the restore target information.", SerializedName = @"restoreTargetInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase RestoreTargetInfo { get => _parametersBody.RestoreTargetInfo ?? null /* object */; set => _parametersBody.RestoreTargetInfo = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase RestoreTargetInfo { get => _parametersBody.RestoreTargetInfo ?? null /* object */; set => _parametersBody.RestoreTargetInfo = 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.")] @@ -188,12 +188,12 @@ public partial class StartAzDataProtectionBackupInstanceRestore_TriggerExpanded /// Backing field for property. private string _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo /// 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) @@ -472,12 +472,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -494,7 +494,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, BackupInstanceName=BackupInstanceName, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -512,12 +512,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo /// 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 ) { @@ -529,7 +529,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/StopAzDataProtectionBackupInstanceProtection_Stop.cs b/src/DataProtection/generated/cmdlets/StopAzDataProtectionBackupInstanceProtection_Stop.cs index 41c2077b50c0..87de8b8f1d04 100644 --- a/src/DataProtection/generated/cmdlets/StopAzDataProtectionBackupInstanceProtection_Stop.cs +++ b/src/DataProtection/generated/cmdlets/StopAzDataProtectionBackupInstanceProtection_Stop.cs @@ -43,11 +43,12 @@ public partial class StopAzDataProtectionBackupInstanceProtection_Stop : global: /// Backing field for property. private string _backupInstanceName; - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + /// The name of the backup instance. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"", + Description = @"The name of the backup instance.", SerializedName = @"backupInstanceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -132,12 +133,12 @@ public partial class StopAzDataProtectionBackupInstanceProtection_Stop : global: /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -146,12 +147,12 @@ public partial class StopAzDataProtectionBackupInstanceProtection_Stop : global: /// Backing field for property. private string _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -180,12 +181,12 @@ public partial class StopAzDataProtectionBackupInstanceProtection_Stop : 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 @@ -425,12 +426,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -447,7 +448,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, BackupInstanceName=BackupInstanceName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DataProtection/generated/cmdlets/StopAzDataProtectionBackupInstanceProtection_StopViaIdentity.cs b/src/DataProtection/generated/cmdlets/StopAzDataProtectionBackupInstanceProtection_StopViaIdentity.cs index 6fd2b89a0fbc..a8bff9137feb 100644 --- a/src/DataProtection/generated/cmdlets/StopAzDataProtectionBackupInstanceProtection_StopViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/StopAzDataProtectionBackupInstanceProtection_StopViaIdentity.cs @@ -129,12 +129,12 @@ public partial class StopAzDataProtectionBackupInstanceProtection_StopViaIdentit /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 @@ -396,12 +396,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -418,7 +418,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/SuspendAzDataProtectionBackupInstanceBackup_Suspend.cs b/src/DataProtection/generated/cmdlets/SuspendAzDataProtectionBackupInstanceBackup_Suspend.cs index 2bb84f074eb4..3d790e68090d 100644 --- a/src/DataProtection/generated/cmdlets/SuspendAzDataProtectionBackupInstanceBackup_Suspend.cs +++ b/src/DataProtection/generated/cmdlets/SuspendAzDataProtectionBackupInstanceBackup_Suspend.cs @@ -8,13 +8,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; using System; - /// This operation will stop backups for backup instance + /// + /// This operation will stop backup for a backup instance and retains the backup data as per the policy (except latest Recovery + /// point, which will be retained forever) + /// /// /// [OpenAPI] SuspendBackups=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/suspendBackups" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Suspend, @"AzDataProtectionBackupInstanceBackup_Suspend", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"This operation will stop backups for backup instance")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"This operation will stop backup for a backup instance and retains the backup data as per the policy (except latest Recovery point, which will be retained forever)")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class SuspendAzDataProtectionBackupInstanceBackup_Suspend : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener @@ -41,11 +44,12 @@ public partial class SuspendAzDataProtectionBackupInstanceBackup_Suspend : globa /// Backing field for property. private string _backupInstanceName; - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + /// The name of the backup instance. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"", + Description = @"The name of the backup instance.", SerializedName = @"backupInstanceName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -130,12 +134,12 @@ public partial class SuspendAzDataProtectionBackupInstanceBackup_Suspend : globa /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -144,12 +148,12 @@ public partial class SuspendAzDataProtectionBackupInstanceBackup_Suspend : globa /// Backing field for property. private string _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -178,12 +182,12 @@ public partial class SuspendAzDataProtectionBackupInstanceBackup_Suspend : 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 @@ -423,12 +427,12 @@ public SuspendAzDataProtectionBackupInstanceBackup_Suspend() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -445,7 +449,7 @@ public SuspendAzDataProtectionBackupInstanceBackup_Suspend() 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, BackupInstanceName=BackupInstanceName }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DataProtection/generated/cmdlets/SuspendAzDataProtectionBackupInstanceBackup_SuspendViaIdentity.cs b/src/DataProtection/generated/cmdlets/SuspendAzDataProtectionBackupInstanceBackup_SuspendViaIdentity.cs index 383437c966af..88f23579526f 100644 --- a/src/DataProtection/generated/cmdlets/SuspendAzDataProtectionBackupInstanceBackup_SuspendViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/SuspendAzDataProtectionBackupInstanceBackup_SuspendViaIdentity.cs @@ -8,13 +8,16 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets using static Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Extensions; using System; - /// This operation will stop backups for backup instance + /// + /// This operation will stop backup for a backup instance and retains the backup data as per the policy (except latest Recovery + /// point, which will be retained forever) + /// /// /// [OpenAPI] SuspendBackups=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/suspendBackups" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Suspend, @"AzDataProtectionBackupInstanceBackup_SuspendViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"This operation will stop backups for backup instance")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description(@"This operation will stop backup for a backup instance and retains the backup data as per the policy (except latest Recovery point, which will be retained forever)")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Generated] public partial class SuspendAzDataProtectionBackupInstanceBackup_SuspendViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener @@ -127,12 +130,12 @@ public partial class SuspendAzDataProtectionBackupInstanceBackup_SuspendViaIdent /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 @@ -395,12 +398,12 @@ public SuspendAzDataProtectionBackupInstanceBackup_SuspendViaIdentity() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -417,7 +420,7 @@ public SuspendAzDataProtectionBackupInstanceBackup_SuspendViaIdentity() 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/SyncAzDataProtectionBackupInstance_SyncExpanded.cs b/src/DataProtection/generated/cmdlets/SyncAzDataProtectionBackupInstance_SyncExpanded.cs index ab7c18e828e0..b8c902f79bc4 100644 --- a/src/DataProtection/generated/cmdlets/SyncAzDataProtectionBackupInstance_SyncExpanded.cs +++ b/src/DataProtection/generated/cmdlets/SyncAzDataProtectionBackupInstance_SyncExpanded.cs @@ -37,7 +37,7 @@ public partial class SyncAzDataProtectionBackupInstance_SyncExpanded : global::S private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Sync BackupInstance Request - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISyncBackupInstanceRequest _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.SyncBackupInstanceRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISyncBackupInstanceRequest _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.SyncBackupInstanceRequest(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -87,11 +87,12 @@ public partial class SyncAzDataProtectionBackupInstance_SyncExpanded : global::S /// Backing field for property. private string _name; - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + /// The name of the backup instance. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"", + Description = @"The name of the backup instance.", SerializedName = @"backupInstanceName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("BackupInstanceName")] @@ -137,12 +138,12 @@ public partial class SyncAzDataProtectionBackupInstance_SyncExpanded : global::S /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -151,12 +152,12 @@ public partial class SyncAzDataProtectionBackupInstance_SyncExpanded : global::S /// Backing field for property. private string _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -197,12 +198,12 @@ public partial class SyncAzDataProtectionBackupInstance_SyncExpanded : 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 @@ -443,12 +444,12 @@ public SyncAzDataProtectionBackupInstance_SyncExpanded() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -465,7 +466,7 @@ public SyncAzDataProtectionBackupInstance_SyncExpanded() 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, Name=Name, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceReadiness_Validate.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceReadiness_Validate.cs index 6d5913c97b13..b61ab530a2f9 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceReadiness_Validate.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceReadiness_Validate.cs @@ -14,7 +14,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, @"AzDataProtectionBackupInstanceReadiness_Validate", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 TestAzDataProtectionBackupInstanceReadiness_Validate : global::System.Management.Automation.PSCmdlet, @@ -88,7 +88,7 @@ public partial class TestAzDataProtectionBackupInstanceReadiness_Validate : glob public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateForBackupRequest _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateForBackupRequest _parameter; /// Validate for backup request [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Validate for backup request", ValueFromPipeline = true)] @@ -97,8 +97,8 @@ public partial class TestAzDataProtectionBackupInstanceReadiness_Validate : glob ReadOnly = false, Description = @"Validate for backup request", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateForBackupRequest) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateForBackupRequest Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateForBackupRequest) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateForBackupRequest Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -124,12 +124,12 @@ public partial class TestAzDataProtectionBackupInstanceReadiness_Validate : glob /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -138,12 +138,12 @@ public partial class TestAzDataProtectionBackupInstanceReadiness_Validate : glob /// Backing field for property. private string _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -172,24 +172,24 @@ public partial class TestAzDataProtectionBackupInstanceReadiness_Validate : 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo /// 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) @@ -419,12 +419,12 @@ public TestAzDataProtectionBackupInstanceReadiness_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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -441,7 +441,7 @@ public TestAzDataProtectionBackupInstanceReadiness_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 { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -459,12 +459,12 @@ public TestAzDataProtectionBackupInstanceReadiness_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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo /// 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 ) { @@ -476,7 +476,7 @@ public TestAzDataProtectionBackupInstanceReadiness_Validate() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceReadiness_ValidateExpanded.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceReadiness_ValidateExpanded.cs index 3a38eb6d1c2a..a4178cbd2017 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceReadiness_ValidateExpanded.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceReadiness_ValidateExpanded.cs @@ -13,7 +13,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] ValidateForBackup=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/validateForBackup" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzDataProtectionBackupInstanceReadiness_ValidateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 TestAzDataProtectionBackupInstanceReadiness_ValidateExpanded : global::System.Management.Automation.PSCmdlet, @@ -34,7 +34,7 @@ public partial class TestAzDataProtectionBackupInstanceReadiness_ValidateExpande private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Validate for backup request - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateForBackupRequest _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ValidateForBackupRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateForBackupRequest _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ValidateForBackupRequest(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -49,8 +49,8 @@ public partial class TestAzDataProtectionBackupInstanceReadiness_ValidateExpande ReadOnly = false, Description = @"Backup Instance", SerializedName = @"backupInstance", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance BackupInstance { get => _parametersBody.BackupInstance ?? null /* object */; set => _parametersBody.BackupInstance = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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")] @@ -124,12 +124,12 @@ public partial class TestAzDataProtectionBackupInstanceReadiness_ValidateExpande /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -138,12 +138,12 @@ public partial class TestAzDataProtectionBackupInstanceReadiness_ValidateExpande /// Backing field for property. private string _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -172,24 +172,24 @@ public partial class TestAzDataProtectionBackupInstanceReadiness_ValidateExpande /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo /// 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) @@ -421,12 +421,12 @@ public TestAzDataProtectionBackupInstanceReadiness_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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -443,7 +443,7 @@ public TestAzDataProtectionBackupInstanceReadiness_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 { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VaultName=VaultName, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -461,12 +461,12 @@ public TestAzDataProtectionBackupInstanceReadiness_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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo /// 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 ) { @@ -478,7 +478,7 @@ public TestAzDataProtectionBackupInstanceReadiness_ValidateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceReadiness_ValidateViaIdentity.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceReadiness_ValidateViaIdentity.cs index 6ec3ad7c0b97..bda733933987 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceReadiness_ValidateViaIdentity.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceReadiness_ValidateViaIdentity.cs @@ -14,7 +14,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, @"AzDataProtectionBackupInstanceReadiness_ValidateViaIdentity", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 TestAzDataProtectionBackupInstanceReadiness_ValidateViaIdentity : global::System.Management.Automation.PSCmdlet, @@ -96,7 +96,7 @@ public partial class TestAzDataProtectionBackupInstanceReadiness_ValidateViaIden public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateForBackupRequest _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateForBackupRequest _parameter; /// Validate for backup request [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Validate for backup request", ValueFromPipeline = true)] @@ -105,8 +105,8 @@ public partial class TestAzDataProtectionBackupInstanceReadiness_ValidateViaIden ReadOnly = false, Description = @"Validate for backup request", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateForBackupRequest) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateForBackupRequest Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateForBackupRequest) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateForBackupRequest Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -134,24 +134,24 @@ public partial class TestAzDataProtectionBackupInstanceReadiness_ValidateViaIden /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -401,12 +401,12 @@ public TestAzDataProtectionBackupInstanceReadiness_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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -423,7 +423,7 @@ public TestAzDataProtectionBackupInstanceReadiness_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 } @@ -441,12 +441,12 @@ public TestAzDataProtectionBackupInstanceReadiness_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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo /// 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 ) { @@ -458,7 +458,7 @@ public TestAzDataProtectionBackupInstanceReadiness_ValidateViaIdentity() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceReadiness_ValidateViaIdentityExpanded.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceReadiness_ValidateViaIdentityExpanded.cs index b8cd01e08e2b..6dcfbcec48b5 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceReadiness_ValidateViaIdentityExpanded.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceReadiness_ValidateViaIdentityExpanded.cs @@ -14,7 +14,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, @"AzDataProtectionBackupInstanceReadiness_ValidateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 TestAzDataProtectionBackupInstanceReadiness_ValidateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -35,7 +35,7 @@ public partial class TestAzDataProtectionBackupInstanceReadiness_ValidateViaIden private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Validate for backup request - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateForBackupRequest _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ValidateForBackupRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateForBackupRequest _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ValidateForBackupRequest(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -50,8 +50,8 @@ public partial class TestAzDataProtectionBackupInstanceReadiness_ValidateViaIden ReadOnly = false, Description = @"Backup Instance", SerializedName = @"backupInstance", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance BackupInstance { get => _parametersBody.BackupInstance ?? null /* object */; set => _parametersBody.BackupInstance = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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")] @@ -135,24 +135,24 @@ public partial class TestAzDataProtectionBackupInstanceReadiness_ValidateViaIden /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo /// 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) @@ -402,12 +402,12 @@ public TestAzDataProtectionBackupInstanceReadiness_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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -424,7 +424,7 @@ public TestAzDataProtectionBackupInstanceReadiness_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 } @@ -442,12 +442,12 @@ public TestAzDataProtectionBackupInstanceReadiness_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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo /// 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 ) { @@ -459,7 +459,7 @@ public TestAzDataProtectionBackupInstanceReadiness_ValidateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_Validate1.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_Validate1.cs index 3cde984c513a..6f8e6903e7e5 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_Validate1.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_Validate1.cs @@ -14,7 +14,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_Validate1", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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_Validate1 : global::System.Management.Automation.PSCmdlet, @@ -82,12 +82,12 @@ public partial class TestAzDataProtectionBackupInstanceRestore_Validate1 : globa /// Backing field for property. private string _name; - /// The name of the backup instance - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance")] + /// The name of the backup instance. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the backup instance", + Description = @"The name of the backup instance.", SerializedName = @"backupInstanceName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("BackupInstanceName")] @@ -103,7 +103,7 @@ public partial class TestAzDataProtectionBackupInstanceRestore_Validate1 : globa public global::System.Management.Automation.SwitchParameter NoWait { get; set; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateRestoreRequestObject _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateRestoreRequestObject _parameter; /// Validate restore request object [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Validate restore request object", ValueFromPipeline = true)] @@ -112,8 +112,8 @@ public partial class TestAzDataProtectionBackupInstanceRestore_Validate1 : globa ReadOnly = false, Description = @"Validate restore request object", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateRestoreRequestObject) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateRestoreRequestObject Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateRestoreRequestObject) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateRestoreRequestObject Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -139,12 +139,12 @@ public partial class TestAzDataProtectionBackupInstanceRestore_Validate1 : globa /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -153,12 +153,12 @@ public partial class TestAzDataProtectionBackupInstanceRestore_Validate1 : globa /// Backing field for property. private string _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -187,24 +187,24 @@ public partial class TestAzDataProtectionBackupInstanceRestore_Validate1 : 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo /// 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) @@ -435,12 +435,12 @@ public TestAzDataProtectionBackupInstanceRestore_Validate1() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -457,7 +457,7 @@ public TestAzDataProtectionBackupInstanceRestore_Validate1() 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, Name=Name, body=Parameter }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -475,12 +475,12 @@ public TestAzDataProtectionBackupInstanceRestore_Validate1() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -492,7 +492,7 @@ public TestAzDataProtectionBackupInstanceRestore_Validate1() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_ValidateExpanded1.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_ValidateExpanded1.cs index 8cc5e23f7523..95e4cd1ba641 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_ValidateExpanded1.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_ValidateExpanded1.cs @@ -14,7 +14,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_ValidateExpanded1", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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_ValidateExpanded1 : global::System.Management.Automation.PSCmdlet, @@ -35,7 +35,7 @@ public partial class TestAzDataProtectionBackupInstanceRestore_ValidateExpanded1 private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Validate restore request object - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateRestoreRequestObject _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ValidateRestoreRequestObject(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateRestoreRequestObject _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ValidateRestoreRequestObject(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -85,12 +85,12 @@ public partial class TestAzDataProtectionBackupInstanceRestore_ValidateExpanded1 /// Backing field for property. private string _name; - /// The name of the backup instance - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance")] + /// The name of the backup instance. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the backup instance.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the backup instance", + Description = @"The name of the backup instance.", SerializedName = @"backupInstanceName", PossibleTypes = new [] { typeof(string) })] [global::System.Management.Automation.Alias("BackupInstanceName")] @@ -129,12 +129,12 @@ public partial class TestAzDataProtectionBackupInstanceRestore_ValidateExpanded1 /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] @@ -148,18 +148,18 @@ public partial class TestAzDataProtectionBackupInstanceRestore_ValidateExpanded1 ReadOnly = false, Description = @"Gets or sets the restore request object.", SerializedName = @"restoreRequestObject", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest RestoreRequestObject { get => _parametersBody.RestoreRequestObject ?? null /* object */; set => _parametersBody.RestoreRequestObject = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest RestoreRequestObject { get => _parametersBody.RestoreRequestObject ?? null /* object */; set => _parametersBody.RestoreRequestObject = value; } /// Backing field for property. private string _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -188,24 +188,24 @@ public partial class TestAzDataProtectionBackupInstanceRestore_ValidateExpanded1 /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo /// 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_ValidateExpanded1() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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_ValidateExpanded1() 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, Name=Name, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -478,12 +478,12 @@ public TestAzDataProtectionBackupInstanceRestore_ValidateExpanded1() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo /// 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_ValidateExpanded1() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentity1.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentity1.cs index e4afb893e8ec..503838b3bfa2 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentity1.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentity1.cs @@ -14,7 +14,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_ValidateViaIdentity1", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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_ValidateViaIdentity1 : global::System.Management.Automation.PSCmdlet, @@ -96,7 +96,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.Api20220501.IValidateRestoreRequestObject _parameter; + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateRestoreRequestObject _parameter; /// Validate restore request object [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Validate restore request object", ValueFromPipeline = true)] @@ -105,8 +105,8 @@ public partial class TestAzDataProtectionBackupInstanceRestore_ValidateViaIdenti ReadOnly = false, Description = @"Validate restore request object", SerializedName = @"parameters", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateRestoreRequestObject) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateRestoreRequestObject Parameter { get => this._parameter; set => this._parameter = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateRestoreRequestObject) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateRestoreRequestObject Parameter { get => this._parameter; set => this._parameter = value; } /// /// The instance of the that the remote call will use. @@ -134,24 +134,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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo /// 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) @@ -405,12 +405,12 @@ public TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentity1() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -427,7 +427,7 @@ public TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentity1() 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 } @@ -445,12 +445,12 @@ public TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentity1() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo /// 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 ) { @@ -462,7 +462,7 @@ public TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentity1() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentityExpanded1.cs b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentityExpanded1.cs index 62171372cae0..45520d352b0c 100644 --- a/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentityExpanded1.cs +++ b/src/DataProtection/generated/cmdlets/TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentityExpanded1.cs @@ -14,7 +14,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_ValidateViaIdentityExpanded1", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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_ValidateViaIdentityExpanded1 : global::System.Management.Automation.PSCmdlet, @@ -35,7 +35,7 @@ public partial class TestAzDataProtectionBackupInstanceRestore_ValidateViaIdenti private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Validate restore request object - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateRestoreRequestObject _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ValidateRestoreRequestObject(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateRestoreRequestObject _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ValidateRestoreRequestObject(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -127,32 +127,32 @@ public partial class TestAzDataProtectionBackupInstanceRestore_ValidateViaIdenti ReadOnly = false, Description = @"Gets or sets the restore request object.", SerializedName = @"restoreRequestObject", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest RestoreRequestObject { get => _parametersBody.RestoreRequestObject ?? null /* object */; set => _parametersBody.RestoreRequestObject = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest RestoreRequestObject { get => _parametersBody.RestoreRequestObject ?? null /* object */; set => _parametersBody.RestoreRequestObject = 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo /// 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) @@ -406,12 +406,12 @@ public TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentityExpanded1() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -428,7 +428,7 @@ public TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentityExpanded1() 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 } @@ -446,12 +446,12 @@ public TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentityExpanded1() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo /// 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 ) { @@ -463,7 +463,7 @@ public TestAzDataProtectionBackupInstanceRestore_ValidateViaIdentityExpanded1() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/UpdateAzDataProtectionBackupVault_UpdateExpanded.cs b/src/DataProtection/generated/cmdlets/UpdateAzDataProtectionBackupVault_UpdateExpanded.cs index 541a90e637d8..b9c842770a5b 100644 --- a/src/DataProtection/generated/cmdlets/UpdateAzDataProtectionBackupVault_UpdateExpanded.cs +++ b/src/DataProtection/generated/cmdlets/UpdateAzDataProtectionBackupVault_UpdateExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDataProtectionBackupVault_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -36,7 +36,7 @@ public partial class UpdateAzDataProtectionBackupVault_UpdateExpanded : global:: private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Patch Request content for Microsoft.DataProtection resources - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInput _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.PatchResourceRequestInput(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInput _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PatchResourceRequestInput(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -65,6 +65,20 @@ public partial class UpdateAzDataProtectionBackupVault_UpdateExpanded : global:: /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DataProtection Client => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.ClientAPI; + /// + /// Cross subscription restore state of the vault. Allowed values are Disabled, Enabled, PermanentlyDisabled. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Cross subscription restore state of the vault. Allowed values are Disabled, Enabled, PermanentlyDisabled.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Cross subscription restore state of the vault. Allowed values are Disabled, Enabled, PermanentlyDisabled.", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState))] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState CrossSubscriptionRestoreState { get => _parametersBody.CrossSubscriptionRestoreState ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState)""); set => _parametersBody.CrossSubscriptionRestoreState = value; } + /// /// The credentials, account, tenant, and subscription used for communication with Azure /// @@ -97,6 +111,18 @@ public partial class UpdateAzDataProtectionBackupVault_UpdateExpanded : global:: PossibleTypes = new [] { typeof(string) })] public string IdentityType { get => _parametersBody.IdentityType ?? null; set => _parametersBody.IdentityType = value; } + /// Immutability state of the vault. Allowed values are Disabled, Unlocked, Locked. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Immutability state of the vault. Allowed values are Disabled, Unlocked, Locked.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Immutability state of the vault. Allowed values are Disabled, Unlocked, Locked.", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState))] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState ImmutabilityState { get => _parametersBody.ImmutabilityState ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState)""); set => _parametersBody.ImmutabilityState = value; } + /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } @@ -140,26 +166,49 @@ public partial class UpdateAzDataProtectionBackupVault_UpdateExpanded : global:: /// 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.")] + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The name of the resource group where the backup vault is present.", + Description = @"The name of the resource group. The name is case insensitive.", SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Path)] public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + /// Soft delete retention duration in days. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Soft delete retention duration in days.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Soft delete retention duration in days.", + SerializedName = @"retentionDurationInDays", + PossibleTypes = new [] { typeof(double) })] + public double SoftDeleteRetentionDurationInDay { get => _parametersBody.SoftDeleteRetentionDurationInDay ?? default(double); set => _parametersBody.SoftDeleteRetentionDurationInDay = value; } + + /// Soft delete state of the vault. Allowed values are Off, On, AlwaysOn. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Soft delete state of the vault. Allowed values are Off, On, AlwaysOn.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Soft delete state of the vault. Allowed values are Off, On, AlwaysOn.", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState))] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState SoftDeleteState { get => _parametersBody.SoftDeleteState ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState)""); set => _parametersBody.SoftDeleteState = value; } + /// Backing field for property. private string _subscriptionId; - /// The subscription Id. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The subscription Id.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The subscription Id.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo( @@ -178,8 +227,8 @@ public partial class UpdateAzDataProtectionBackupVault_UpdateExpanded : global:: ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// Backing field for property. private string _vaultName; @@ -200,24 +249,24 @@ public partial class UpdateAzDataProtectionBackupVault_UpdateExpanded : 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource /// 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) @@ -447,12 +496,12 @@ public UpdateAzDataProtectionBackupVault_UpdateExpanded() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 ) { @@ -469,7 +518,7 @@ public UpdateAzDataProtectionBackupVault_UpdateExpanded() 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, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -487,12 +536,12 @@ public UpdateAzDataProtectionBackupVault_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource /// 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 ) { @@ -504,7 +553,7 @@ public UpdateAzDataProtectionBackupVault_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource WriteObject((await response)); } } diff --git a/src/DataProtection/generated/cmdlets/UpdateAzDataProtectionBackupVault_UpdateViaIdentityExpanded.cs b/src/DataProtection/generated/cmdlets/UpdateAzDataProtectionBackupVault_UpdateViaIdentityExpanded.cs index eb4d1a94b9af..b5d5620a5bd0 100644 --- a/src/DataProtection/generated/cmdlets/UpdateAzDataProtectionBackupVault_UpdateViaIdentityExpanded.cs +++ b/src/DataProtection/generated/cmdlets/UpdateAzDataProtectionBackupVault_UpdateViaIdentityExpanded.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDataProtectionBackupVault_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -36,7 +36,7 @@ public partial class UpdateAzDataProtectionBackupVault_UpdateViaIdentityExpanded private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Patch Request content for Microsoft.DataProtection resources - private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInput _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.PatchResourceRequestInput(); + private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInput _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.PatchResourceRequestInput(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -65,6 +65,20 @@ public partial class UpdateAzDataProtectionBackupVault_UpdateViaIdentityExpanded /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.DataProtection Client => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Module.Instance.ClientAPI; + /// + /// Cross subscription restore state of the vault. Allowed values are Disabled, Enabled, PermanentlyDisabled. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Cross subscription restore state of the vault. Allowed values are Disabled, Enabled, PermanentlyDisabled.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Cross subscription restore state of the vault. Allowed values are Disabled, Enabled, PermanentlyDisabled.", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState))] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState CrossSubscriptionRestoreState { get => _parametersBody.CrossSubscriptionRestoreState ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState)""); set => _parametersBody.CrossSubscriptionRestoreState = value; } + /// /// The credentials, account, tenant, and subscription used for communication with Azure /// @@ -97,6 +111,18 @@ public partial class UpdateAzDataProtectionBackupVault_UpdateViaIdentityExpanded PossibleTypes = new [] { typeof(string) })] public string IdentityType { get => _parametersBody.IdentityType ?? null; set => _parametersBody.IdentityType = value; } + /// Immutability state of the vault. Allowed values are Disabled, Unlocked, Locked. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Immutability state of the vault. Allowed values are Disabled, Unlocked, Locked.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Immutability state of the vault. Allowed values are Disabled, Unlocked, Locked.", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState))] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState ImmutabilityState { get => _parametersBody.ImmutabilityState ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState)""); set => _parametersBody.ImmutabilityState = value; } + /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity _inputObject; @@ -145,6 +171,29 @@ public partial class UpdateAzDataProtectionBackupVault_UpdateViaIdentityExpanded [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + /// Soft delete retention duration in days. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Soft delete retention duration in days.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Soft delete retention duration in days.", + SerializedName = @"retentionDurationInDays", + PossibleTypes = new [] { typeof(double) })] + public double SoftDeleteRetentionDurationInDay { get => _parametersBody.SoftDeleteRetentionDurationInDay ?? default(double); set => _parametersBody.SoftDeleteRetentionDurationInDay = value; } + + /// Soft delete state of the vault. Allowed values are Off, On, AlwaysOn. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Soft delete state of the vault. Allowed values are Off, On, AlwaysOn.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Soft delete state of the vault. Allowed values are Off, On, AlwaysOn.", + SerializedName = @"state", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState))] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState SoftDeleteState { get => _parametersBody.SoftDeleteState ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState)""); set => _parametersBody.SoftDeleteState = value; } + /// Resource tags. [global::Microsoft.Azure.PowerShell.Cmdlets.DataProtection.ExportAs(typeof(global::System.Collections.Hashtable))] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] @@ -154,32 +203,32 @@ public partial class UpdateAzDataProtectionBackupVault_UpdateViaIdentityExpanded ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IPatchResourceRequestInputTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IPatchResourceRequestInputTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource /// 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 +477,12 @@ public UpdateAzDataProtectionBackupVault_UpdateViaIdentityExpanded() /// 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 Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ICloudError /// 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 +499,7 @@ public UpdateAzDataProtectionBackupVault_UpdateViaIdentityExpanded() 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 } @@ -468,12 +517,12 @@ public UpdateAzDataProtectionBackupVault_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource /// 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 +534,7 @@ public UpdateAzDataProtectionBackupVault_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource WriteObject((await response)); } } diff --git a/src/DataProtection/help/Az.DataProtection.md b/src/DataProtection/help/Az.DataProtection.md index e66b3b0b3169..4adf54968791 100644 --- a/src/DataProtection/help/Az.DataProtection.md +++ b/src/DataProtection/help/Az.DataProtection.md @@ -111,7 +111,7 @@ Triggers restore for a BackupInstance This operation will stop protection of a backup instance and data will be held forever ### [Suspend-AzDataProtectionBackupInstanceBackup](Suspend-AzDataProtectionBackupInstanceBackup.md) -This operation will stop backups for backup instance +This operation will stop backup for a backup instance and retains the backup data as per the policy (except latest Recovery point, which will be retained forever) ### [Sync-AzDataProtectionBackupInstance](Sync-AzDataProtectionBackupInstance.md) Sync backup instance again in case of failure\r\nThis action will retry last failed operation and will bring backup instance to valid state diff --git a/src/DataProtection/help/Backup-AzDataProtectionBackupInstanceAdhoc.md b/src/DataProtection/help/Backup-AzDataProtectionBackupInstanceAdhoc.md index 318af144bf9f..f75fdc3982f5 100644 --- a/src/DataProtection/help/Backup-AzDataProtectionBackupInstanceAdhoc.md +++ b/src/DataProtection/help/Backup-AzDataProtectionBackupInstanceAdhoc.md @@ -76,7 +76,7 @@ Accept wildcard characters: False ``` ### -BackupInstanceName -The name of the backup instance +The name of the backup instance. ```yaml Type: System.String @@ -152,7 +152,8 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The name of the resource group where the backup vault is present. +The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -167,7 +168,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -The subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -251,7 +253,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo ## NOTES @@ -263,7 +265,7 @@ To create the parameters described below, construct a hash table containing the `INPUTOBJECT `: Identity Parameter - - `[BackupInstanceName ]`: The name of the backup instance + - `[BackupInstanceName ]`: The name of the backup instance. - `[BackupPolicyName ]`: - `[Id ]`: Resource identity path - `[JobId ]`: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -271,9 +273,9 @@ To create the parameters described below, construct a hash table containing the - `[OperationId ]`: - `[RecoveryPointId ]`: - `[RequestName ]`: - - `[ResourceGroupName ]`: The name of the resource group where the backup vault is present. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceGuardsName ]`: The name of ResourceGuard - - `[SubscriptionId ]`: The subscription Id. + - `[SubscriptionId ]`: The ID of the target subscription. The value must be an UUID. - `[VaultName ]`: The name of the backup vault. ## RELATED LINKS diff --git a/src/DataProtection/help/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md b/src/DataProtection/help/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md index b3450bd3d628..ee2ae644a9d1 100644 --- a/src/DataProtection/help/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md +++ b/src/DataProtection/help/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md @@ -81,7 +81,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.Api20220501.ISourceLifeCycle[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycle[] Parameter Sets: AddRetention Aliases: @@ -112,7 +112,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.Api20220501.IBackupPolicy +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy Parameter Sets: (All) Aliases: @@ -145,7 +145,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy ## NOTES diff --git a/src/DataProtection/help/Edit-AzDataProtectionPolicyTagClientObject.md b/src/DataProtection/help/Edit-AzDataProtectionPolicyTagClientObject.md index 3c7b80945031..b855fb799cae 100644 --- a/src/DataProtection/help/Edit-AzDataProtectionPolicyTagClientObject.md +++ b/src/DataProtection/help/Edit-AzDataProtectionPolicyTagClientObject.md @@ -63,7 +63,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.Api20220501.IScheduleBasedBackupCriteria[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteria[] Parameter Sets: updateTag Aliases: @@ -94,7 +94,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.Api20220501.IBackupPolicy +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy Parameter Sets: (All) Aliases: @@ -127,7 +127,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy ## NOTES diff --git a/src/DataProtection/help/Edit-AzDataProtectionPolicyTriggerClientObject.md b/src/DataProtection/help/Edit-AzDataProtectionPolicyTriggerClientObject.md index fc6eb3fa2b42..aaa58eb5e42b 100644 --- a/src/DataProtection/help/Edit-AzDataProtectionPolicyTriggerClientObject.md +++ b/src/DataProtection/help/Edit-AzDataProtectionPolicyTriggerClientObject.md @@ -43,7 +43,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.Api20220501.IBackupPolicy +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy Parameter Sets: (All) Aliases: @@ -76,7 +76,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy ## NOTES diff --git a/src/DataProtection/help/Find-AzDataProtectionRestorableTimeRange.md b/src/DataProtection/help/Find-AzDataProtectionRestorableTimeRange.md index 48db6180cff4..59a102aa73fd 100644 --- a/src/DataProtection/help/Find-AzDataProtectionRestorableTimeRange.md +++ b/src/DataProtection/help/Find-AzDataProtectionRestorableTimeRange.md @@ -47,7 +47,7 @@ Dispaly RestorableTimeRange, note that this can be multiple dicrete ranges. ## PARAMETERS ### -BackupInstanceName -The name of the backup instance +The name of the backup instance. ```yaml Type: System.String @@ -93,7 +93,8 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The name of the resource group where the backup vault is present. +The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -139,7 +140,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -The subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -206,7 +208,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupFindRestorableTimeRangesResponseResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupFindRestorableTimeRangesResponseResource ## NOTES diff --git a/src/DataProtection/help/Get-AzDataProtectionBackupInstance.md b/src/DataProtection/help/Get-AzDataProtectionBackupInstance.md index 17de8831f520..efae6cf27c10 100644 --- a/src/DataProtection/help/Get-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/help/Get-AzDataProtectionBackupInstance.md @@ -96,7 +96,7 @@ Accept wildcard characters: False ``` ### -Name -The name of the backup instance +The name of the backup instance. ```yaml Type: System.String @@ -111,7 +111,8 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The name of the resource group where the backup vault is present. +The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -126,7 +127,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -The subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -164,7 +166,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource ## NOTES @@ -176,7 +178,7 @@ To create the parameters described below, construct a hash table containing the `INPUTOBJECT `: Identity Parameter - - `[BackupInstanceName ]`: The name of the backup instance + - `[BackupInstanceName ]`: The name of the backup instance. - `[BackupPolicyName ]`: - `[Id ]`: Resource identity path - `[JobId ]`: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -184,9 +186,9 @@ To create the parameters described below, construct a hash table containing the - `[OperationId ]`: - `[RecoveryPointId ]`: - `[RequestName ]`: - - `[ResourceGroupName ]`: The name of the resource group where the backup vault is present. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceGuardsName ]`: The name of ResourceGuard - - `[SubscriptionId ]`: The subscription Id. + - `[SubscriptionId ]`: The ID of the target subscription. The value must be an UUID. - `[VaultName ]`: The name of the backup vault. ## RELATED LINKS diff --git a/src/DataProtection/help/Get-AzDataProtectionBackupPolicy.md b/src/DataProtection/help/Get-AzDataProtectionBackupPolicy.md index e704e421e2f6..fdad428b8b24 100644 --- a/src/DataProtection/help/Get-AzDataProtectionBackupPolicy.md +++ b/src/DataProtection/help/Get-AzDataProtectionBackupPolicy.md @@ -111,7 +111,8 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The name of the resource group where the backup vault is present. +The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -126,7 +127,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -The subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -164,7 +166,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource ## NOTES @@ -176,7 +178,7 @@ To create the parameters described below, construct a hash table containing the `INPUTOBJECT `: Identity Parameter - - `[BackupInstanceName ]`: The name of the backup instance + - `[BackupInstanceName ]`: The name of the backup instance. - `[BackupPolicyName ]`: - `[Id ]`: Resource identity path - `[JobId ]`: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -184,9 +186,9 @@ To create the parameters described below, construct a hash table containing the - `[OperationId ]`: - `[RecoveryPointId ]`: - `[RequestName ]`: - - `[ResourceGroupName ]`: The name of the resource group where the backup vault is present. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceGuardsName ]`: The name of ResourceGuard - - `[SubscriptionId ]`: The subscription Id. + - `[SubscriptionId ]`: The ID of the target subscription. The value must be an UUID. - `[VaultName ]`: The name of the backup vault. ## RELATED LINKS diff --git a/src/DataProtection/help/Get-AzDataProtectionBackupVault.md b/src/DataProtection/help/Get-AzDataProtectionBackupVault.md index 49c811e583f6..604bda3ea3fb 100644 --- a/src/DataProtection/help/Get-AzDataProtectionBackupVault.md +++ b/src/DataProtection/help/Get-AzDataProtectionBackupVault.md @@ -118,7 +118,8 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The name of the resource group where the backup vault is present. +The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -133,7 +134,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -The subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -171,7 +173,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource ## NOTES @@ -183,7 +185,7 @@ To create the parameters described below, construct a hash table containing the `INPUTOBJECT `: Identity Parameter - - `[BackupInstanceName ]`: The name of the backup instance + - `[BackupInstanceName ]`: The name of the backup instance. - `[BackupPolicyName ]`: - `[Id ]`: Resource identity path - `[JobId ]`: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -191,9 +193,9 @@ To create the parameters described below, construct a hash table containing the - `[OperationId ]`: - `[RecoveryPointId ]`: - `[RequestName ]`: - - `[ResourceGroupName ]`: The name of the resource group where the backup vault is present. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceGuardsName ]`: The name of ResourceGuard - - `[SubscriptionId ]`: The subscription Id. + - `[SubscriptionId ]`: The ID of the target subscription. The value must be an UUID. - `[VaultName ]`: The name of the backup vault. ## RELATED LINKS diff --git a/src/DataProtection/help/Get-AzDataProtectionJob.md b/src/DataProtection/help/Get-AzDataProtectionJob.md index c29744a03363..109b9b67095f 100644 --- a/src/DataProtection/help/Get-AzDataProtectionJob.md +++ b/src/DataProtection/help/Get-AzDataProtectionJob.md @@ -117,7 +117,8 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The name of the resource group where the backup vault is present. +The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -132,7 +133,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -The subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -170,7 +172,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupJobResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupJobResource ## NOTES @@ -182,7 +184,7 @@ To create the parameters described below, construct a hash table containing the `INPUTOBJECT `: Identity Parameter - - `[BackupInstanceName ]`: The name of the backup instance + - `[BackupInstanceName ]`: The name of the backup instance. - `[BackupPolicyName ]`: - `[Id ]`: Resource identity path - `[JobId ]`: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -190,9 +192,9 @@ To create the parameters described below, construct a hash table containing the - `[OperationId ]`: - `[RecoveryPointId ]`: - `[RequestName ]`: - - `[ResourceGroupName ]`: The name of the resource group where the backup vault is present. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceGuardsName ]`: The name of ResourceGuard - - `[SubscriptionId ]`: The subscription Id. + - `[SubscriptionId ]`: The ID of the target subscription. The value must be an UUID. - `[VaultName ]`: The name of the backup vault. ## RELATED LINKS diff --git a/src/DataProtection/help/Get-AzDataProtectionOperation.md b/src/DataProtection/help/Get-AzDataProtectionOperation.md index ae4e4e0073a6..695ed25843e0 100644 --- a/src/DataProtection/help/Get-AzDataProtectionOperation.md +++ b/src/DataProtection/help/Get-AzDataProtectionOperation.md @@ -109,7 +109,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IClientDiscoveryValueForSingleApi +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IClientDiscoveryValueForSingleApi ## NOTES diff --git a/src/DataProtection/help/Get-AzDataProtectionPolicyTemplate.md b/src/DataProtection/help/Get-AzDataProtectionPolicyTemplate.md index b28f474945ae..0c15fe4c73f4 100644 --- a/src/DataProtection/help/Get-AzDataProtectionPolicyTemplate.md +++ b/src/DataProtection/help/Get-AzDataProtectionPolicyTemplate.md @@ -59,7 +59,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupPolicy +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy ## NOTES diff --git a/src/DataProtection/help/Get-AzDataProtectionRecoveryPoint.md b/src/DataProtection/help/Get-AzDataProtectionRecoveryPoint.md index 65a3ef767fb9..093b36703e39 100644 --- a/src/DataProtection/help/Get-AzDataProtectionRecoveryPoint.md +++ b/src/DataProtection/help/Get-AzDataProtectionRecoveryPoint.md @@ -72,7 +72,7 @@ This command returns a recovery point with given id. ## PARAMETERS ### -BackupInstanceName -The name of the backup instance +The name of the backup instance. ```yaml Type: System.String @@ -148,7 +148,8 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The name of the resource group where the backup vault is present. +The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -178,7 +179,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -The subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -216,7 +218,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource ### System.Management.Automation.PSObject @@ -230,7 +232,7 @@ To create the parameters described below, construct a hash table containing the `INPUTOBJECT `: Identity Parameter - - `[BackupInstanceName ]`: The name of the backup instance + - `[BackupInstanceName ]`: The name of the backup instance. - `[BackupPolicyName ]`: - `[Id ]`: Resource identity path - `[JobId ]`: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -238,9 +240,9 @@ To create the parameters described below, construct a hash table containing the - `[OperationId ]`: - `[RecoveryPointId ]`: - `[RequestName ]`: - - `[ResourceGroupName ]`: The name of the resource group where the backup vault is present. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceGuardsName ]`: The name of ResourceGuard - - `[SubscriptionId ]`: The subscription Id. + - `[SubscriptionId ]`: The ID of the target subscription. The value must be an UUID. - `[VaultName ]`: The name of the backup vault. ## RELATED LINKS diff --git a/src/DataProtection/help/Get-AzDataProtectionResourceGuard.md b/src/DataProtection/help/Get-AzDataProtectionResourceGuard.md index 0c59b2bb7b78..42e8cbf14ff0 100644 --- a/src/DataProtection/help/Get-AzDataProtectionResourceGuard.md +++ b/src/DataProtection/help/Get-AzDataProtectionResourceGuard.md @@ -113,7 +113,8 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The name of the resource group where the backup vault is present. +The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -128,7 +129,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -The subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -151,7 +153,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource ## NOTES @@ -163,7 +165,7 @@ To create the parameters described below, construct a hash table containing the `INPUTOBJECT `: Identity Parameter - - `[BackupInstanceName ]`: The name of the backup instance + - `[BackupInstanceName ]`: The name of the backup instance. - `[BackupPolicyName ]`: - `[Id ]`: Resource identity path - `[JobId ]`: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -171,9 +173,9 @@ To create the parameters described below, construct a hash table containing the - `[OperationId ]`: - `[RecoveryPointId ]`: - `[RequestName ]`: - - `[ResourceGroupName ]`: The name of the resource group where the backup vault is present. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceGuardsName ]`: The name of ResourceGuard - - `[SubscriptionId ]`: The subscription Id. + - `[SubscriptionId ]`: The ID of the target subscription. The value must be an UUID. - `[VaultName ]`: The name of the backup vault. ## RELATED LINKS diff --git a/src/DataProtection/help/Initialize-AzDataProtectionBackupInstance.md b/src/DataProtection/help/Initialize-AzDataProtectionBackupInstance.md index 1e0941e155ee..54098cf3f349 100644 --- a/src/DataProtection/help/Initialize-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/help/Initialize-AzDataProtectionBackupInstance.md @@ -161,7 +161,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource ## NOTES diff --git a/src/DataProtection/help/Initialize-AzDataProtectionRestoreRequest.md b/src/DataProtection/help/Initialize-AzDataProtectionRestoreRequest.md index 877c1552e1fe..77f3241a2b59 100644 --- a/src/DataProtection/help/Initialize-AzDataProtectionRestoreRequest.md +++ b/src/DataProtection/help/Initialize-AzDataProtectionRestoreRequest.md @@ -139,7 +139,7 @@ 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.Api20220501.BackupInstanceResource +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.BackupInstanceResource Parameter Sets: OriginalLocationFullRecovery, OriginalLocationILR Aliases: @@ -415,7 +415,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest ## NOTES diff --git a/src/DataProtection/help/New-AzDataProtectionBackupInstance.md b/src/DataProtection/help/New-AzDataProtectionBackupInstance.md index a349e3d6c6c3..fde49f396b5a 100644 --- a/src/DataProtection/help/New-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/help/New-AzDataProtectionBackupInstance.md @@ -88,7 +88,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.Api20220501.IBackupInstanceResource +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource Parameter Sets: (All) Aliases: diff --git a/src/DataProtection/help/New-AzDataProtectionBackupPolicy.md b/src/DataProtection/help/New-AzDataProtectionBackupPolicy.md index d2f1d930dbea..2a0202cc16ec 100644 --- a/src/DataProtection/help/New-AzDataProtectionBackupPolicy.md +++ b/src/DataProtection/help/New-AzDataProtectionBackupPolicy.md @@ -115,7 +115,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.Api20220501.IBackupPolicy +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupPolicy Parameter Sets: (All) Aliases: @@ -209,7 +209,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource ## NOTES diff --git a/src/DataProtection/help/New-AzDataProtectionBackupVault.md b/src/DataProtection/help/New-AzDataProtectionBackupVault.md index dd5f4b9c8b9c..69b971742e41 100644 --- a/src/DataProtection/help/New-AzDataProtectionBackupVault.md +++ b/src/DataProtection/help/New-AzDataProtectionBackupVault.md @@ -15,9 +15,11 @@ Creates or updates a BackupVault resource belonging to a resource group. ``` New-AzDataProtectionBackupVault -Location -ResourceGroupName -StorageSetting -VaultName [-AsJob] - [-AzureMonitorAlertsForAllJobFailure ] [-DefaultProfile ] [-ETag ] - [-IdentityType ] [-NoWait] [-SubscriptionId ] [-Tag ] [-Confirm] [-WhatIf] - [] + [-AzureMonitorAlertsForAllJobFailure ] + [-CrossSubscriptionRestoreState ] [-DefaultProfile ] + [-ETag ] [-IdentityType ] [-ImmutabilityState ] [-NoWait] + [-SoftDeleteRetentionDurationInDay ] [-SoftDeleteState ] [-SubscriptionId ] + [-Tag ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -40,6 +42,21 @@ ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type This command creates a new backup vault. +### Example 2: Create a new backup vault with ImmutabilityState, CrossSubscriptionRestoreState, soft delete settings +```powershell +$sub = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +$storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -DataStoreType VaultStore -Type LocallyRedundant +New-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -Location westus -StorageSetting $storagesetting -CrossSubscriptionRestoreState Enabled -ImmutabilityState Unlocked -SoftDeleteRetentionDurationInDay 100 -SoftDeleteState On +``` + +```output +ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type +---- ------------------- ---------------- ------------ -------- ---- ---- + westus MyVault Microsoft.DataProtection/backupVaults +``` + +This command creates a new backup vault while setting Immutability state, cross subscription restore state, soft delete settings of the vault at creation time. + ## PARAMETERS ### -AsJob @@ -73,6 +90,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -CrossSubscriptionRestoreState +Cross subscription restore state of the vault. +Allowed values are Disabled, Enabled, PermanentlyDisabled. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DefaultProfile @@ -118,6 +151,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ImmutabilityState +Immutability state of the vault. +Allowed values are Disabled, Unlocked, Locked. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Location Resource location. @@ -163,13 +212,44 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SoftDeleteRetentionDurationInDay +Soft delete retention duration in days + +```yaml +Type: System.Double +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SoftDeleteState +Soft delete state of the vault. +Allowed values are Off, On, AlwaysOn + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -StorageSetting Storage Settings of the vault. 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.Api20220501.IStorageSetting[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSetting[] Parameter Sets: (All) Aliases: diff --git a/src/DataProtection/help/New-AzDataProtectionPolicyTagCriteriaClientObject.md b/src/DataProtection/help/New-AzDataProtectionPolicyTagCriteriaClientObject.md index d10a72e8815b..ccfb779e7086 100644 --- a/src/DataProtection/help/New-AzDataProtectionPolicyTagCriteriaClientObject.md +++ b/src/DataProtection/help/New-AzDataProtectionPolicyTagCriteriaClientObject.md @@ -161,7 +161,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IScheduleBasedBackupCriteria +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IScheduleBasedBackupCriteria ## NOTES diff --git a/src/DataProtection/help/New-AzDataProtectionResourceGuard.md b/src/DataProtection/help/New-AzDataProtectionResourceGuard.md index bf0132db0f1c..f57a24abeec1 100644 --- a/src/DataProtection/help/New-AzDataProtectionResourceGuard.md +++ b/src/DataProtection/help/New-AzDataProtectionResourceGuard.md @@ -196,7 +196,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource ## NOTES diff --git a/src/DataProtection/help/New-AzDataProtectionRetentionLifeCycleClientObject.md b/src/DataProtection/help/New-AzDataProtectionRetentionLifeCycleClientObject.md index 80ea77becab9..a45efc440433 100644 --- a/src/DataProtection/help/New-AzDataProtectionRetentionLifeCycleClientObject.md +++ b/src/DataProtection/help/New-AzDataProtectionRetentionLifeCycleClientObject.md @@ -137,7 +137,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.ISourceLifeCycle +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.ISourceLifeCycle ## NOTES diff --git a/src/DataProtection/help/Remove-AzDataProtectionBackupInstance.md b/src/DataProtection/help/Remove-AzDataProtectionBackupInstance.md index 9c7cca357bd0..6990cfdd5b80 100644 --- a/src/DataProtection/help/Remove-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/help/Remove-AzDataProtectionBackupInstance.md @@ -87,7 +87,7 @@ Accept wildcard characters: False ``` ### -Name -The name of the backup instance +The name of the backup instance. ```yaml Type: System.String @@ -132,7 +132,8 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The name of the resource group where the backup vault is present. +The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -147,7 +148,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -The subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -228,7 +230,7 @@ To create the parameters described below, construct a hash table containing the `INPUTOBJECT `: Identity Parameter - - `[BackupInstanceName ]`: The name of the backup instance + - `[BackupInstanceName ]`: The name of the backup instance. - `[BackupPolicyName ]`: - `[Id ]`: Resource identity path - `[JobId ]`: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -236,9 +238,9 @@ To create the parameters described below, construct a hash table containing the - `[OperationId ]`: - `[RecoveryPointId ]`: - `[RequestName ]`: - - `[ResourceGroupName ]`: The name of the resource group where the backup vault is present. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceGuardsName ]`: The name of ResourceGuard - - `[SubscriptionId ]`: The subscription Id. + - `[SubscriptionId ]`: The ID of the target subscription. The value must be an UUID. - `[VaultName ]`: The name of the backup vault. ## RELATED LINKS diff --git a/src/DataProtection/help/Remove-AzDataProtectionBackupPolicy.md b/src/DataProtection/help/Remove-AzDataProtectionBackupPolicy.md index cfd1d00861af..6d4e4e8931b4 100644 --- a/src/DataProtection/help/Remove-AzDataProtectionBackupPolicy.md +++ b/src/DataProtection/help/Remove-AzDataProtectionBackupPolicy.md @@ -101,7 +101,8 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The name of the resource group where the backup vault is present. +The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -116,7 +117,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -The subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -197,7 +199,7 @@ To create the parameters described below, construct a hash table containing the `INPUTOBJECT `: Identity Parameter - - `[BackupInstanceName ]`: The name of the backup instance + - `[BackupInstanceName ]`: The name of the backup instance. - `[BackupPolicyName ]`: - `[Id ]`: Resource identity path - `[JobId ]`: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -205,9 +207,9 @@ To create the parameters described below, construct a hash table containing the - `[OperationId ]`: - `[RecoveryPointId ]`: - `[RequestName ]`: - - `[ResourceGroupName ]`: The name of the resource group where the backup vault is present. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceGuardsName ]`: The name of ResourceGuard - - `[SubscriptionId ]`: The subscription Id. + - `[SubscriptionId ]`: The ID of the target subscription. The value must be an UUID. - `[VaultName ]`: The name of the backup vault. ## RELATED LINKS diff --git a/src/DataProtection/help/Remove-AzDataProtectionBackupVault.md b/src/DataProtection/help/Remove-AzDataProtectionBackupVault.md index f21edd4f2e55..95e60b173a51 100644 --- a/src/DataProtection/help/Remove-AzDataProtectionBackupVault.md +++ b/src/DataProtection/help/Remove-AzDataProtectionBackupVault.md @@ -85,7 +85,8 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The name of the resource group where the backup vault is present. +The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -100,7 +101,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -The subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -181,7 +183,7 @@ To create the parameters described below, construct a hash table containing the `INPUTOBJECT `: Identity Parameter - - `[BackupInstanceName ]`: The name of the backup instance + - `[BackupInstanceName ]`: The name of the backup instance. - `[BackupPolicyName ]`: - `[Id ]`: Resource identity path - `[JobId ]`: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -189,9 +191,9 @@ To create the parameters described below, construct a hash table containing the - `[OperationId ]`: - `[RecoveryPointId ]`: - `[RequestName ]`: - - `[ResourceGroupName ]`: The name of the resource group where the backup vault is present. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceGuardsName ]`: The name of ResourceGuard - - `[SubscriptionId ]`: The subscription Id. + - `[SubscriptionId ]`: The ID of the target subscription. The value must be an UUID. - `[VaultName ]`: The name of the backup vault. ## RELATED LINKS diff --git a/src/DataProtection/help/Remove-AzDataProtectionResourceGuard.md b/src/DataProtection/help/Remove-AzDataProtectionResourceGuard.md index de0e48a66342..0bf618a2efdc 100644 --- a/src/DataProtection/help/Remove-AzDataProtectionResourceGuard.md +++ b/src/DataProtection/help/Remove-AzDataProtectionResourceGuard.md @@ -100,7 +100,8 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The name of the resource group where the backup vault is present. +The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -115,7 +116,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -The subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -181,7 +183,7 @@ To create the parameters described below, construct a hash table containing the `INPUTOBJECT `: Identity Parameter - - `[BackupInstanceName ]`: The name of the backup instance + - `[BackupInstanceName ]`: The name of the backup instance. - `[BackupPolicyName ]`: - `[Id ]`: Resource identity path - `[JobId ]`: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -189,9 +191,9 @@ To create the parameters described below, construct a hash table containing the - `[OperationId ]`: - `[RecoveryPointId ]`: - `[RequestName ]`: - - `[ResourceGroupName ]`: The name of the resource group where the backup vault is present. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceGuardsName ]`: The name of ResourceGuard - - `[SubscriptionId ]`: The subscription Id. + - `[SubscriptionId ]`: The ID of the target subscription. The value must be an UUID. - `[VaultName ]`: The name of the backup vault. ## RELATED LINKS diff --git a/src/DataProtection/help/Resume-AzDataProtectionBackupInstanceProtection.md b/src/DataProtection/help/Resume-AzDataProtectionBackupInstanceProtection.md index 7282487c59f2..acf2e4188077 100644 --- a/src/DataProtection/help/Resume-AzDataProtectionBackupInstanceProtection.md +++ b/src/DataProtection/help/Resume-AzDataProtectionBackupInstanceProtection.md @@ -55,7 +55,7 @@ Accept wildcard characters: False ``` ### -BackupInstanceName -. +The name of the backup instance. ```yaml Type: System.String @@ -131,7 +131,8 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The name of the resource group where the backup vault is present. +The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -146,7 +147,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -The subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -227,7 +229,7 @@ To create the parameters described below, construct a hash table containing the `INPUTOBJECT `: Identity Parameter - - `[BackupInstanceName ]`: The name of the backup instance + - `[BackupInstanceName ]`: The name of the backup instance. - `[BackupPolicyName ]`: - `[Id ]`: Resource identity path - `[JobId ]`: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -235,9 +237,9 @@ To create the parameters described below, construct a hash table containing the - `[OperationId ]`: - `[RecoveryPointId ]`: - `[RequestName ]`: - - `[ResourceGroupName ]`: The name of the resource group where the backup vault is present. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceGuardsName ]`: The name of ResourceGuard - - `[SubscriptionId ]`: The subscription Id. + - `[SubscriptionId ]`: The ID of the target subscription. The value must be an UUID. - `[VaultName ]`: The name of the backup vault. ## RELATED LINKS diff --git a/src/DataProtection/help/Set-AzDataProtectionMSIPermission.md b/src/DataProtection/help/Set-AzDataProtectionMSIPermission.md index eaefdc7595c2..08e45018b44e 100644 --- a/src/DataProtection/help/Set-AzDataProtectionMSIPermission.md +++ b/src/DataProtection/help/Set-AzDataProtectionMSIPermission.md @@ -80,7 +80,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.Api20220501.IBackupInstanceResource +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource Parameter Sets: (All) Aliases: diff --git a/src/DataProtection/help/Start-AzDataProtectionBackupInstanceRestore.md b/src/DataProtection/help/Start-AzDataProtectionBackupInstanceRestore.md index a205124aae3d..3470ffb52a92 100644 --- a/src/DataProtection/help/Start-AzDataProtectionBackupInstanceRestore.md +++ b/src/DataProtection/help/Start-AzDataProtectionBackupInstanceRestore.md @@ -108,7 +108,7 @@ Accept wildcard characters: False ``` ### -BackupInstanceName -The name of the backup instance +The name of the backup instance. ```yaml Type: System.String @@ -172,7 +172,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.Api20220501.IAzureBackupRestoreRequest +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest Parameter Sets: Trigger Aliases: @@ -184,7 +184,8 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The name of the resource group where the backup vault is present. +The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -203,7 +204,7 @@ Gets or sets the restore target information. To construct, see NOTES section for RESTORETARGETINFO properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IRestoreTargetInfoBase +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IRestoreTargetInfoBase Parameter Sets: TriggerExpanded Aliases: @@ -245,7 +246,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -The subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -310,11 +312,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo ## NOTES diff --git a/src/DataProtection/help/Stop-AzDataProtectionBackupInstanceProtection.md b/src/DataProtection/help/Stop-AzDataProtectionBackupInstanceProtection.md index cac099f7d85b..c1d7f9f1872b 100644 --- a/src/DataProtection/help/Stop-AzDataProtectionBackupInstanceProtection.md +++ b/src/DataProtection/help/Stop-AzDataProtectionBackupInstanceProtection.md @@ -55,7 +55,7 @@ Accept wildcard characters: False ``` ### -BackupInstanceName -. +The name of the backup instance. ```yaml Type: System.String @@ -131,7 +131,8 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The name of the resource group where the backup vault is present. +The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -146,7 +147,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -The subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -227,7 +229,7 @@ To create the parameters described below, construct a hash table containing the `INPUTOBJECT `: Identity Parameter - - `[BackupInstanceName ]`: The name of the backup instance + - `[BackupInstanceName ]`: The name of the backup instance. - `[BackupPolicyName ]`: - `[Id ]`: Resource identity path - `[JobId ]`: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -235,9 +237,9 @@ To create the parameters described below, construct a hash table containing the - `[OperationId ]`: - `[RecoveryPointId ]`: - `[RequestName ]`: - - `[ResourceGroupName ]`: The name of the resource group where the backup vault is present. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceGuardsName ]`: The name of ResourceGuard - - `[SubscriptionId ]`: The subscription Id. + - `[SubscriptionId ]`: The ID of the target subscription. The value must be an UUID. - `[VaultName ]`: The name of the backup vault. ## RELATED LINKS diff --git a/src/DataProtection/help/Suspend-AzDataProtectionBackupInstanceBackup.md b/src/DataProtection/help/Suspend-AzDataProtectionBackupInstanceBackup.md index b991f0db2b00..919a332263a0 100644 --- a/src/DataProtection/help/Suspend-AzDataProtectionBackupInstanceBackup.md +++ b/src/DataProtection/help/Suspend-AzDataProtectionBackupInstanceBackup.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Suspend-AzDataProtectionBackupInstanceBackup ## SYNOPSIS -This operation will stop backups for backup instance +This operation will stop backup for a backup instance and retains the backup data as per the policy (except latest Recovery point, which will be retained forever) ## SYNTAX @@ -26,7 +26,7 @@ Suspend-AzDataProtectionBackupInstanceBackup -InputObject `: Identity Parameter - - `[BackupInstanceName ]`: The name of the backup instance + - `[BackupInstanceName ]`: The name of the backup instance. - `[BackupPolicyName ]`: - `[Id ]`: Resource identity path - `[JobId ]`: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -235,9 +237,9 @@ To create the parameters described below, construct a hash table containing the - `[OperationId ]`: - `[RecoveryPointId ]`: - `[RequestName ]`: - - `[ResourceGroupName ]`: The name of the resource group where the backup vault is present. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceGuardsName ]`: The name of ResourceGuard - - `[SubscriptionId ]`: The subscription Id. + - `[SubscriptionId ]`: The ID of the target subscription. The value must be an UUID. - `[VaultName ]`: The name of the backup vault. ## RELATED LINKS diff --git a/src/DataProtection/help/Sync-AzDataProtectionBackupInstance.md b/src/DataProtection/help/Sync-AzDataProtectionBackupInstance.md index 22535d91fa07..4ce800f41bfe 100644 --- a/src/DataProtection/help/Sync-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/help/Sync-AzDataProtectionBackupInstance.md @@ -64,7 +64,7 @@ Accept wildcard characters: False ``` ### -Name -. +The name of the backup instance. ```yaml Type: System.String @@ -109,7 +109,8 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The name of the resource group where the backup vault is present. +The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -124,7 +125,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -The subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/DataProtection/help/Test-AzDataProtectionBackupInstanceReadiness.md b/src/DataProtection/help/Test-AzDataProtectionBackupInstanceReadiness.md index ab9ff6fae33e..96ae94693e01 100644 --- a/src/DataProtection/help/Test-AzDataProtectionBackupInstanceReadiness.md +++ b/src/DataProtection/help/Test-AzDataProtectionBackupInstanceReadiness.md @@ -62,7 +62,7 @@ Backup Instance To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance Parameter Sets: (All) Aliases: @@ -104,7 +104,8 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The name of the resource group where the backup vault is present. +The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -119,7 +120,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -The subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -186,7 +188,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo ## NOTES diff --git a/src/DataProtection/help/Test-AzDataProtectionBackupInstanceRestore.md b/src/DataProtection/help/Test-AzDataProtectionBackupInstanceRestore.md index 29c1dd015d9b..10691f590b9b 100644 --- a/src/DataProtection/help/Test-AzDataProtectionBackupInstanceRestore.md +++ b/src/DataProtection/help/Test-AzDataProtectionBackupInstanceRestore.md @@ -116,7 +116,7 @@ Restore request object for which to validate To construct, see NOTES section for RESTOREREQUEST properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest Parameter Sets: (All) Aliases: @@ -195,7 +195,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo ## NOTES diff --git a/src/DataProtection/help/Update-AzDataProtectionBackupInstanceAssociatedPolicy.md b/src/DataProtection/help/Update-AzDataProtectionBackupInstanceAssociatedPolicy.md index 17e3481a20f3..d6f9ba0af357 100644 --- a/src/DataProtection/help/Update-AzDataProtectionBackupInstanceAssociatedPolicy.md +++ b/src/DataProtection/help/Update-AzDataProtectionBackupInstanceAssociatedPolicy.md @@ -199,7 +199,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource ## NOTES diff --git a/src/DataProtection/help/Update-AzDataProtectionBackupVault.md b/src/DataProtection/help/Update-AzDataProtectionBackupVault.md index 50ba64a2b8f1..29ad2ff27723 100644 --- a/src/DataProtection/help/Update-AzDataProtectionBackupVault.md +++ b/src/DataProtection/help/Update-AzDataProtectionBackupVault.md @@ -16,15 +16,21 @@ For example, updating tags for a resource. ### UpdateExpanded (Default) ``` Update-AzDataProtectionBackupVault -ResourceGroupName -VaultName [-SubscriptionId ] - [-AzureMonitorAlertsForAllJobFailure ] [-IdentityType ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-AzureMonitorAlertsForAllJobFailure ] + [-CrossSubscriptionRestoreState ] [-IdentityType ] + [-ImmutabilityState ] [-SoftDeleteRetentionDurationInDay ] + [-SoftDeleteState ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzDataProtectionBackupVault -InputObject - [-AzureMonitorAlertsForAllJobFailure ] [-IdentityType ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-AzureMonitorAlertsForAllJobFailure ] + [-CrossSubscriptionRestoreState ] [-IdentityType ] + [-ImmutabilityState ] [-SoftDeleteRetentionDurationInDay ] + [-SoftDeleteState ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -63,6 +69,20 @@ This command disables the monitor alerts for all the job failures for the backup Allowed values are: Enabled, Disabled. Note that by default this setting is enabled. +### Example 3: Update vault ImmutabilityState, CrossSubscriptionRestoreState, soft delete settings +```powershell +Update-AzDataProtectionBackupVault -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -CrossSubscriptionRestoreState Disabled -ImmutabilityState Disabled -SoftDeleteRetentionDurationInDay 99 -SoftDeleteState Off +``` + +```output +Name Location Type IdentityType +---- -------- ---- ------------ +vaultName southeastasia Microsoft.DataProtection/backupVaults SystemAssigned +``` + +This command is used to modify Immutability state, cross subscription restore state, soft delete settings of the vault. +These parameters are optional and can be used independently. + ## PARAMETERS ### -AsJob @@ -96,6 +116,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -CrossSubscriptionRestoreState +Cross subscription restore state of the vault. +Allowed values are Disabled, Enabled, PermanentlyDisabled. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState +Parameter Sets: (All) +Aliases: + +Required: False +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. @@ -126,6 +162,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ImmutabilityState +Immutability state of the vault. +Allowed values are Disabled, Unlocked, Locked. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -InputObject Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table. @@ -158,7 +210,8 @@ Accept wildcard characters: False ``` ### -ResourceGroupName -The name of the resource group where the backup vault is present. +The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -172,8 +225,40 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -SoftDeleteRetentionDurationInDay +Soft delete retention duration in days. + +```yaml +Type: System.Double +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SoftDeleteState +Soft delete state of the vault. +Allowed values are Off, On, AlwaysOn. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId -The subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -257,7 +342,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource ## NOTES @@ -269,7 +354,7 @@ To create the parameters described below, construct a hash table containing the `INPUTOBJECT `: Identity Parameter - - `[BackupInstanceName ]`: The name of the backup instance + - `[BackupInstanceName ]`: The name of the backup instance. - `[BackupPolicyName ]`: - `[Id ]`: Resource identity path - `[JobId ]`: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -277,9 +362,9 @@ To create the parameters described below, construct a hash table containing the - `[OperationId ]`: - `[RecoveryPointId ]`: - `[RequestName ]`: - - `[ResourceGroupName ]`: The name of the resource group where the backup vault is present. + - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - `[ResourceGuardsName ]`: The name of ResourceGuard - - `[SubscriptionId ]`: The subscription Id. + - `[SubscriptionId ]`: The ID of the target subscription. The value must be an UUID. - `[VaultName ]`: The name of the backup vault. ## RELATED LINKS diff --git a/src/DataProtection/help/Update-AzDataProtectionResourceGuard.md b/src/DataProtection/help/Update-AzDataProtectionResourceGuard.md index 977f1c42cfec..8f139621f07a 100644 --- a/src/DataProtection/help/Update-AzDataProtectionResourceGuard.md +++ b/src/DataProtection/help/Update-AzDataProtectionResourceGuard.md @@ -204,7 +204,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource ## NOTES diff --git a/src/DataProtection/how-to.md b/src/DataProtection/how-to.md index 6053655476d9..11d2ec93efaf 100644 --- a/src/DataProtection/how-to.md +++ b/src/DataProtection/how-to.md @@ -14,7 +14,7 @@ To generate documentation, the process is now integrated into the `build-module. To test the cmdlets, we use [Pester](https://github.com/pester/Pester). Tests scripts (`.ps1`) should be added to the `test` folder. To execute the Pester tests, run the `test-module.ps1` script. This will run all tests in `playback` mode within the `test` folder. To read more about testing cmdlets, look at the [README.md](examples/README.md) in the `examples` folder. ## Packing `Az.DataProtection` -To pack `Az.DataProtection` for distribution, run the `pack-module.ps1` script. This will take the contents of multiple directories and certain root-folder files to create a `.nupkg`. The structure of the `.nupkg` is created so it can be loaded part of a [PSRepository](https://learn.microsoft.com/powershell/module/powershellget/register-psrepository). Additionally, this package is in a format for distribution to the [PSGallery](https://www.powershellgallery.com/). For signing an Azure module, please contact the [Azure PowerShell](https://github.com/Azure/azure-powershell) team. +To pack `Az.DataProtection` for distribution, run the `pack-module.ps1` script. This will take the contents of multiple directories and certain root-folder files to create a `.nupkg`. The structure of the `.nupkg` is created so it can be loaded part of a [PSRepository](https://docs.microsoft.com/powershell/module/powershellget/register-psrepository). Additionally, this package is in a format for distribution to the [PSGallery](https://www.powershellgallery.com/). For signing an Azure module, please contact the [Azure PowerShell](https://github.com/Azure/azure-powershell) team. ## Module Script Details There are multiple scripts created for performing different actions for developing `Az.DataProtection`. diff --git a/src/DataProtection/internal/Get-AzDataProtectionBackupVault.ps1 b/src/DataProtection/internal/Get-AzDataProtectionBackupVault.ps1 index 3d429cfd777a..7a7011616f64 100644 --- a/src/DataProtection/internal/Get-AzDataProtectionBackupVault.ps1 +++ b/src/DataProtection/internal/Get-AzDataProtectionBackupVault.ps1 @@ -29,14 +29,14 @@ Get-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxxx" -ResourceGroupNa .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -44,15 +44,15 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupvault #> function Get-AzDataProtectionBackupVault { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource])] [CmdletBinding(DefaultParameterSetName='GetViaIdentity1', PositionalBinding=$false)] param( [Parameter(Mandatory, ValueFromPipeline)] diff --git a/src/DataProtection/internal/Get-AzDataProtectionRecoveryPoint.ps1 b/src/DataProtection/internal/Get-AzDataProtectionRecoveryPoint.ps1 index b0a86ace9651..a8ea733ce521 100644 --- a/src/DataProtection/internal/Get-AzDataProtectionRecoveryPoint.ps1 +++ b/src/DataProtection/internal/Get-AzDataProtectionRecoveryPoint.ps1 @@ -27,24 +27,25 @@ $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -R Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[2].Name -Id 892e5c5014dc4a96807d22924f5745c9 .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource .Link https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionrecoverypoint #> function Get-AzDataProtectionRecoveryPoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the backup instance + # The name of the backup instance. ${BackupInstanceName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(Mandatory)] @@ -57,7 +58,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] diff --git a/src/DataProtection/internal/New-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/internal/New-AzDataProtectionBackupInstance.ps1 index 510e82d3d477..abc8654137b1 100644 --- a/src/DataProtection/internal/New-AzDataProtectionBackupInstance.ps1 +++ b/src/DataProtection/internal/New-AzDataProtectionBackupInstance.ps1 @@ -36,9 +36,9 @@ $instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDatab New-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName "vaultName" -BackupInstance $instance .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource .Notes COMPLEX PARAMETER PROPERTIES @@ -108,20 +108,21 @@ PROPERTY : BackupInstanceResource properties https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackupinstance #> function New-AzDataProtectionBackupInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Alias('BackupInstanceName')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the backup instance + # The name of the backup instance. ${Name}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(Mandatory)] @@ -134,26 +135,27 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupInstance] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance] # BackupInstanceResource properties # To construct, see NOTES section for PROPERTY properties and create a hash table. ${Property}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceTags]))] [System.Collections.Hashtable] # Proxy Resource tags. ${Tag}, diff --git a/src/DataProtection/internal/New-AzDataProtectionBackupPolicy.ps1 b/src/DataProtection/internal/New-AzDataProtectionBackupPolicy.ps1 index 7d8b4d1b3537..129686dd67cb 100644 --- a/src/DataProtection/internal/New-AzDataProtectionBackupPolicy.ps1 +++ b/src/DataProtection/internal/New-AzDataProtectionBackupPolicy.ps1 @@ -45,9 +45,9 @@ Edit-AzDataProtectionPolicyTagClientObject -Policy $defaultPol -Name Monthly -Cr New-AzDataProtectionBackupPolicy -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -Name "MyPolicy" -Policy $defaultPol .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource .Notes COMPLEX PARAMETER PROPERTIES @@ -60,7 +60,7 @@ PARAMETER : BaseBackupPolicy resource https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackuppolicy #> function New-AzDataProtectionBackupPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -73,7 +73,8 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(Mandatory)] @@ -86,12 +87,13 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 1265326adf80..afecb8a85123 100644 --- a/src/DataProtection/internal/New-AzDataProtectionBackupVault.ps1 +++ b/src/DataProtection/internal/New-AzDataProtectionBackupVault.ps1 @@ -23,11 +23,15 @@ Creates or updates a BackupVault resource belonging to a resource group. $sub = "xxxx-xxxx-xxxxx" $storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -DataStoreType VaultStore -Type LocallyRedundant New-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName "MyVault" -StorageSetting $storagesetting -Location westus +.Example +$sub = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +$storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -DataStoreType VaultStore -Type LocallyRedundant +New-AzDataProtectionBackupVault -SubscriptionId $sub "resourceGroupName" -VaultName "vaultName" -Location westus -StorageSetting $storagesetting -CrossSubscriptionRestoreState Enabled -ImmutabilityState Unlocked -SoftDeleteRetentionDurationInDay 100 -SoftDeleteState On .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource .Notes COMPLEX PARAMETER PROPERTIES @@ -37,17 +41,21 @@ 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 + [ETag ]: Optional ETag. [Location ]: Resource location. - [Tag ]: Resource tags. + [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. [AzureMonitorAlertsForAllJobFailure ]: + [CrossSubscriptionRestoreState ]: CrossSubscriptionRestore state + [ImmutabilityState ]: Immutability state [ResourceMoveDetailCompletionTimeUtc ]: Completion time in UTC of latest ResourceMove operation attempted. ISO 8601 format. [ResourceMoveDetailOperationId ]: CorrelationId of latest ResourceMove operation attempted [ResourceMoveDetailSourceResourcePath ]: ARM resource path of source resource [ResourceMoveDetailStartTimeUtc ]: Start time in UTC of latest ResourceMove operation attempted. ISO 8601 format. [ResourceMoveDetailTargetResourcePath ]: ARM resource path of target resource used in latest ResourceMove operation + [SoftDeleteRetentionDurationInDay ]: Soft delete retention duration + [SoftDeleteState ]: State of soft delete STORAGESETTING : Storage Settings [DatastoreType ]: Gets or sets the type of the datastore. @@ -56,13 +64,14 @@ STORAGESETTING : Storage Settings https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackupvault #> function New-AzDataProtectionBackupVault { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource])] [CmdletBinding(DefaultParameterSetName='Create', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(Mandatory)] @@ -75,12 +84,13 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource] # Backup Vault Resource # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -88,7 +98,7 @@ param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSetting[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSetting[]] # Storage Settings # To construct, see NOTES section for STORAGESETTING properties and create a hash table. ${StorageSetting}, @@ -101,6 +111,14 @@ param( # Security alerts cannot be disabled. ${AzureMonitorAlertsForAllJobFailure}, + [Parameter(ParameterSetName='CreateExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState])] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState] + # Cross subscription restore state of the vault. + # Allowed values are Disabled, Enabled, PermanentlyDisabled. + ${CrossSubscriptionRestoreState}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] [System.String] @@ -113,6 +131,14 @@ param( # The identityType which can be either SystemAssigned or None ${IdentityType}, + [Parameter(ParameterSetName='CreateExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState])] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState] + # Immutability state of the vault. + # Allowed values are Disabled, Unlocked, Locked. + ${ImmutabilityState}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] [System.String] @@ -121,7 +147,21 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags]))] + [System.Double] + # Soft delete retention duration in days. + ${SoftDeleteRetentionDurationInDay}, + + [Parameter(ParameterSetName='CreateExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState])] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState] + # Soft delete state of the vault. + # Allowed values are Off, On, AlwaysOn. + ${SoftDeleteState}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/src/DataProtection/internal/New-AzDataProtectionResourceGuard.ps1 b/src/DataProtection/internal/New-AzDataProtectionResourceGuard.ps1 index eeb4fcb05684..f3d5b670b467 100644 --- a/src/DataProtection/internal/New-AzDataProtectionResourceGuard.ps1 +++ b/src/DataProtection/internal/New-AzDataProtectionResourceGuard.ps1 @@ -23,18 +23,18 @@ Creates or updates a ResourceGuard resource belonging to a resource group. New-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "mua-rg" -Name "mua-resource-guard" -Location "centraluseuap" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource .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. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -42,23 +42,22 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. PARAMETER : . [ETag ]: Optional ETag. - [IdentityType ]: The identityType which can be either SystemAssigned or None [Location ]: Resource location. - [Tag ]: Resource tags. + [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. [CriticalOperationExclusionList ]: List of critical operations which are not protected by this resourceGuard .Link https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionresourceguard #> function New-AzDataProtectionResourceGuard { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource])] [CmdletBinding(DefaultParameterSetName='PutExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Put', Mandatory)] @@ -72,7 +71,8 @@ param( [Parameter(ParameterSetName='PutExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Put')] @@ -80,7 +80,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='PutViaIdentity', Mandatory, ValueFromPipeline)] @@ -94,7 +95,7 @@ param( [Parameter(ParameterSetName='Put', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='PutViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource] # . # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -114,13 +115,6 @@ param( # Optional ETag. ${ETag}, - [Parameter(ParameterSetName='PutExpanded')] - [Parameter(ParameterSetName='PutViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [System.String] - # The identityType which can be either SystemAssigned or None - ${IdentityType}, - [Parameter(ParameterSetName='PutExpanded')] [Parameter(ParameterSetName='PutViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] @@ -131,7 +125,7 @@ param( [Parameter(ParameterSetName='PutExpanded')] [Parameter(ParameterSetName='PutViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/src/DataProtection/internal/ProxyCmdletDefinitions.ps1 b/src/DataProtection/internal/ProxyCmdletDefinitions.ps1 index d1a48140582d..8fc3c489bae0 100644 --- a/src/DataProtection/internal/ProxyCmdletDefinitions.ps1 +++ b/src/DataProtection/internal/ProxyCmdletDefinitions.ps1 @@ -29,14 +29,14 @@ Get-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxxx" -ResourceGroupNa .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -44,15 +44,15 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. .Link https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupvault #> function Get-AzDataProtectionBackupVault { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource])] [CmdletBinding(DefaultParameterSetName='GetViaIdentity1', PositionalBinding=$false)] param( [Parameter(Mandatory, ValueFromPipeline)] @@ -166,24 +166,25 @@ $instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxx-xxx-xxx" -R Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[2].Name -Id 892e5c5014dc4a96807d22924f5745c9 .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource .Link https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionrecoverypoint #> function Get-AzDataProtectionRecoveryPoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRecoveryPointResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRecoveryPointResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the backup instance + # The name of the backup instance. ${BackupInstanceName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(Mandatory)] @@ -196,7 +197,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] @@ -326,9 +328,9 @@ $instance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDatab New-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName "ResourceGroupName" -VaultName "vaultName" -BackupInstance $instance .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource .Notes COMPLEX PARAMETER PROPERTIES @@ -398,20 +400,21 @@ PROPERTY : BackupInstanceResource properties https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackupinstance #> function New-AzDataProtectionBackupInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstanceResource])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Alias('BackupInstanceName')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the backup instance + # The name of the backup instance. ${Name}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(Mandatory)] @@ -424,26 +427,27 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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.Api20220501.IBackupInstance] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance] # BackupInstanceResource properties # To construct, see NOTES section for PROPERTY properties and create a hash table. ${Property}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppProxyResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppProxyResourceTags]))] [System.Collections.Hashtable] # Proxy Resource tags. ${Tag}, @@ -585,9 +589,9 @@ Edit-AzDataProtectionPolicyTagClientObject -Policy $defaultPol -Name Monthly -Cr New-AzDataProtectionBackupPolicy -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -Name "MyPolicy" -Policy $defaultPol .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource .Notes COMPLEX PARAMETER PROPERTIES @@ -600,7 +604,7 @@ PARAMETER : BaseBackupPolicy resource https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackuppolicy #> function New-AzDataProtectionBackupPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -613,7 +617,8 @@ param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(Mandatory)] @@ -626,12 +631,13 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBaseBackupPolicyResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBaseBackupPolicyResource] # BaseBackupPolicy resource # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -752,11 +758,15 @@ Creates or updates a BackupVault resource belonging to a resource group. $sub = "xxxx-xxxx-xxxxx" $storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -DataStoreType VaultStore -Type LocallyRedundant New-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName "MyVault" -StorageSetting $storagesetting -Location westus +.Example +$sub = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +$storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -DataStoreType VaultStore -Type LocallyRedundant +New-AzDataProtectionBackupVault -SubscriptionId $sub "resourceGroupName" -VaultName "vaultName" -Location westus -StorageSetting $storagesetting -CrossSubscriptionRestoreState Enabled -ImmutabilityState Unlocked -SoftDeleteRetentionDurationInDay 100 -SoftDeleteState On .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource .Notes COMPLEX PARAMETER PROPERTIES @@ -766,17 +776,21 @@ 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 + [ETag ]: Optional ETag. [Location ]: Resource location. - [Tag ]: Resource tags. + [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. [AzureMonitorAlertsForAllJobFailure ]: + [CrossSubscriptionRestoreState ]: CrossSubscriptionRestore state + [ImmutabilityState ]: Immutability state [ResourceMoveDetailCompletionTimeUtc ]: Completion time in UTC of latest ResourceMove operation attempted. ISO 8601 format. [ResourceMoveDetailOperationId ]: CorrelationId of latest ResourceMove operation attempted [ResourceMoveDetailSourceResourcePath ]: ARM resource path of source resource [ResourceMoveDetailStartTimeUtc ]: Start time in UTC of latest ResourceMove operation attempted. ISO 8601 format. [ResourceMoveDetailTargetResourcePath ]: ARM resource path of target resource used in latest ResourceMove operation + [SoftDeleteRetentionDurationInDay ]: Soft delete retention duration + [SoftDeleteState ]: State of soft delete STORAGESETTING : Storage Settings [DatastoreType ]: Gets or sets the type of the datastore. @@ -785,13 +799,14 @@ STORAGESETTING : Storage Settings https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackupvault #> function New-AzDataProtectionBackupVault { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource])] [CmdletBinding(DefaultParameterSetName='Create', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(Mandatory)] @@ -804,12 +819,13 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupVaultResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupVaultResource] # Backup Vault Resource # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -817,7 +833,7 @@ param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IStorageSetting[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IStorageSetting[]] # Storage Settings # To construct, see NOTES section for STORAGESETTING properties and create a hash table. ${StorageSetting}, @@ -830,6 +846,14 @@ param( # Security alerts cannot be disabled. ${AzureMonitorAlertsForAllJobFailure}, + [Parameter(ParameterSetName='CreateExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState])] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState] + # Cross subscription restore state of the vault. + # Allowed values are Disabled, Enabled, PermanentlyDisabled. + ${CrossSubscriptionRestoreState}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] [System.String] @@ -842,6 +866,14 @@ param( # The identityType which can be either SystemAssigned or None ${IdentityType}, + [Parameter(ParameterSetName='CreateExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState])] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState] + # Immutability state of the vault. + # Allowed values are Disabled, Unlocked, Locked. + ${ImmutabilityState}, + [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] [System.String] @@ -850,7 +882,21 @@ param( [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags]))] + [System.Double] + # Soft delete retention duration in days. + ${SoftDeleteRetentionDurationInDay}, + + [Parameter(ParameterSetName='CreateExpanded')] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState])] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState] + # Soft delete state of the vault. + # Allowed values are Off, On, AlwaysOn. + ${SoftDeleteState}, + + [Parameter(ParameterSetName='CreateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -970,18 +1016,18 @@ Creates or updates a ResourceGuard resource belonging to a resource group. New-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "mua-rg" -Name "mua-resource-guard" -Location "centraluseuap" .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource .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. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -989,23 +1035,22 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. PARAMETER : . [ETag ]: Optional ETag. - [IdentityType ]: The identityType which can be either SystemAssigned or None [Location ]: Resource location. - [Tag ]: Resource tags. + [Tag ]: Resource tags. [(Any) ]: This indicates any property can be added to this object. [CriticalOperationExclusionList ]: List of critical operations which are not protected by this resourceGuard .Link https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionresourceguard #> function New-AzDataProtectionResourceGuard { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource])] [CmdletBinding(DefaultParameterSetName='PutExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Put', Mandatory)] @@ -1019,7 +1064,8 @@ param( [Parameter(ParameterSetName='PutExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Put')] @@ -1027,7 +1073,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='PutViaIdentity', Mandatory, ValueFromPipeline)] @@ -1041,7 +1088,7 @@ param( [Parameter(ParameterSetName='Put', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='PutViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IResourceGuardResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IResourceGuardResource] # . # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -1061,13 +1108,6 @@ param( # Optional ETag. ${ETag}, - [Parameter(ParameterSetName='PutExpanded')] - [Parameter(ParameterSetName='PutViaIdentityExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [System.String] - # The identityType which can be either SystemAssigned or None - ${IdentityType}, - [Parameter(ParameterSetName='PutExpanded')] [Parameter(ParameterSetName='PutViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] @@ -1078,7 +1118,7 @@ param( [Parameter(ParameterSetName='PutExpanded')] [Parameter(ParameterSetName='PutViaIdentityExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IDppTrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IDppBaseTrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -1193,11 +1233,11 @@ $instance = Initialize-AzDataProtectionBackupInstance -SnapshotResourceGroupId $ Test-AzDataProtectionBackupInstanceReadiness -ResourceGroupName "resourceGroupName" -VaultName $vault.Name -BackupInstance $instance[0].Property .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateForBackupRequest +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateForBackupRequest .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo .Notes COMPLEX PARAMETER PROPERTIES @@ -1233,7 +1273,7 @@ BACKUPINSTANCE : Backup Instance [ValidationType ]: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -1241,9 +1281,9 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. PARAMETER : Validate for backup request @@ -1279,20 +1319,22 @@ PARAMETER : Validate for backup request https://learn.microsoft.com/powershell/module/az.dataprotection/test-azdataprotectionbackupinstancereadiness #> function Test-AzDataProtectionBackupInstanceReadiness { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo])] [CmdletBinding(DefaultParameterSetName='ValidateViaIdentity', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Validate', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Validate')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Validate', Mandatory)] @@ -1312,14 +1354,14 @@ param( [Parameter(ParameterSetName='Validate', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ValidateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateForBackupRequest] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateForBackupRequest] # Validate for backup request # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, [Parameter(ParameterSetName='ValidateViaIdentityExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IBackupInstance] # Backup Instance # To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. ${BackupInstance}, @@ -1444,18 +1486,18 @@ $RestoreRequestObject = Initialize-AzDataProtectionRestoreRequest -DatasourceTyp $validateRestore = Test-AzDataProtectionBackupInstanceRestore -Name $instances[0].Name -ResourceGroupName "testResourceGroup" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "testVault" -RestoreRequest $RestoreRequestObject .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateRestoreRequestObject +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateRestoreRequestObject .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo .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. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -1463,9 +1505,9 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. PARAMETER : Validate restore request object @@ -1488,7 +1530,7 @@ RESTOREREQUESTOBJECT : Gets or sets the restore requ https://learn.microsoft.com/powershell/module/az.dataprotection/test-azdataprotectionbackupinstancerestore #> function Test-AzDataProtectionBackupInstanceRestore { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo])] [CmdletBinding(DefaultParameterSetName='ValidateViaIdentity1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Validate1', Mandatory)] @@ -1496,14 +1538,15 @@ param( [Alias('BackupInstanceName')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the backup instance + # The name of the backup instance. ${Name}, [Parameter(ParameterSetName='Validate1', Mandatory)] [Parameter(ParameterSetName='ValidateExpanded1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Validate1')] @@ -1511,7 +1554,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Validate1', Mandatory)] @@ -1532,7 +1576,7 @@ param( [Parameter(ParameterSetName='Validate1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ValidateViaIdentity1', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateRestoreRequestObject] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateRestoreRequestObject] # Validate restore request object # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -1540,7 +1584,7 @@ param( [Parameter(ParameterSetName='ValidateExpanded1', Mandatory)] [Parameter(ParameterSetName='ValidateViaIdentityExpanded1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest] # Gets or sets the restore request object. # To construct, see NOTES section for RESTOREREQUESTOBJECT properties and create a hash table. ${RestoreRequestObject}, diff --git a/src/DataProtection/internal/README.md b/src/DataProtection/internal/README.md index dd2ffb358cae..038a83ffc864 100644 --- a/src/DataProtection/internal/README.md +++ b/src/DataProtection/internal/README.md @@ -8,7 +8,7 @@ This directory contains a module to handle *internal only* cmdlets. Cmdlets that - Packaged: yes ## Details -The `Az.DataProtection.internal.psm1` file is generated to this folder. This module file handles the hidden cmdlets. These cmdlets will not be exported by `Az.DataProtection`. Instead, this sub-module is imported by the `..\custom\Az.DataProtection.custom.psm1` module, allowing you to use hidden cmdlets in your custom, exposed cmdlets. To call these cmdlets in your custom scripts, simply use [module-qualified calls](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_command_precedence?view=powershell-6#qualified-names). For example, `Az.DataProtection.internal\Get-Example` would call an internal cmdlet named `Get-Example`. +The `Az.DataProtection.internal.psm1` file is generated to this folder. This module file handles the hidden cmdlets. These cmdlets will not be exported by `Az.DataProtection`. Instead, this sub-module is imported by the `..\custom\Az.DataProtection.custom.psm1` module, allowing you to use hidden cmdlets in your custom, exposed cmdlets. To call these cmdlets in your custom scripts, simply use [module-qualified calls](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_command_precedence?view=powershell-6#qualified-names). For example, `Az.DataProtection.internal\Get-Example` would call an internal cmdlet named `Get-Example`. ## Purpose This allows you to include REST specifications for services that you *do not wish to expose from your module*, but simply want to call within custom cmdlets. For example, if you want to make a custom cmdlet that uses `Storage` services, you could include a simplified `Storage` REST specification that has only the operations you need. When you run the generator and build this module, note the generated `Storage` cmdlets. Then, in your readme configuration, use [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) on the `Storage` cmdlets and they will *only be exposed to the custom cmdlets* you want to write, and not be exported as part of `Az.DataProtection`. diff --git a/src/DataProtection/internal/Test-AzDataProtectionBackupInstanceReadiness.ps1 b/src/DataProtection/internal/Test-AzDataProtectionBackupInstanceReadiness.ps1 index 01d1958d38ed..2f74f905322f 100644 --- a/src/DataProtection/internal/Test-AzDataProtectionBackupInstanceReadiness.ps1 +++ b/src/DataProtection/internal/Test-AzDataProtectionBackupInstanceReadiness.ps1 @@ -28,11 +28,11 @@ $instance = Initialize-AzDataProtectionBackupInstance -SnapshotResourceGroupId $ Test-AzDataProtectionBackupInstanceReadiness -ResourceGroupName "resourceGroupName" -VaultName $vault.Name -BackupInstance $instance[0].Property .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateForBackupRequest +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateForBackupRequest .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo .Notes COMPLEX PARAMETER PROPERTIES @@ -68,7 +68,7 @@ BACKUPINSTANCE : Backup Instance [ValidationType ]: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -76,9 +76,9 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. PARAMETER : Validate for backup request @@ -114,20 +114,22 @@ PARAMETER : Validate for backup request https://learn.microsoft.com/powershell/module/az.dataprotection/test-azdataprotectionbackupinstancereadiness #> function Test-AzDataProtectionBackupInstanceReadiness { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo])] [CmdletBinding(DefaultParameterSetName='ValidateViaIdentity', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Validate', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Validate')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Validate', Mandatory)] @@ -147,14 +149,14 @@ param( [Parameter(ParameterSetName='Validate', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ValidateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateForBackupRequest] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateForBackupRequest] # Validate for backup request # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, [Parameter(ParameterSetName='ValidateViaIdentityExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IBackupInstance] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.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 bf73f16abc18..4178b9fd8e65 100644 --- a/src/DataProtection/internal/Test-AzDataProtectionBackupInstanceRestore.ps1 +++ b/src/DataProtection/internal/Test-AzDataProtectionBackupInstanceRestore.ps1 @@ -27,18 +27,18 @@ $RestoreRequestObject = Initialize-AzDataProtectionRestoreRequest -DatasourceTyp $validateRestore = Test-AzDataProtectionBackupInstanceRestore -Name $instances[0].Name -ResourceGroupName "testResourceGroup" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "testVault" -RestoreRequest $RestoreRequestObject .Inputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateRestoreRequestObject +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateRestoreRequestObject .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo +Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo .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. INPUTOBJECT : Identity Parameter - [BackupInstanceName ]: The name of the backup instance + [BackupInstanceName ]: The name of the backup instance. [BackupPolicyName ]: [Id ]: Resource identity path [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). @@ -46,9 +46,9 @@ INPUTOBJECT : Identity Parameter [OperationId ]: [RecoveryPointId ]: [RequestName ]: - [ResourceGroupName ]: The name of the resource group where the backup vault is present. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. [ResourceGuardsName ]: The name of ResourceGuard - [SubscriptionId ]: The subscription Id. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VaultName ]: The name of the backup vault. PARAMETER : Validate restore request object @@ -71,7 +71,7 @@ RESTOREREQUESTOBJECT : Gets or sets the restore requ https://learn.microsoft.com/powershell/module/az.dataprotection/test-azdataprotectionbackupinstancerestore #> function Test-AzDataProtectionBackupInstanceRestore { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IOperationJobExtendedInfo])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IOperationJobExtendedInfo])] [CmdletBinding(DefaultParameterSetName='ValidateViaIdentity1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Validate1', Mandatory)] @@ -79,14 +79,15 @@ param( [Alias('BackupInstanceName')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the backup instance + # The name of the backup instance. ${Name}, [Parameter(ParameterSetName='Validate1', Mandatory)] [Parameter(ParameterSetName='ValidateExpanded1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [System.String] - # The name of the resource group where the backup vault is present. + # The name of the resource group. + # The name is case insensitive. ${ResourceGroupName}, [Parameter(ParameterSetName='Validate1')] @@ -94,7 +95,8 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # The subscription Id. + # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='Validate1', Mandatory)] @@ -115,7 +117,7 @@ param( [Parameter(ParameterSetName='Validate1', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='ValidateViaIdentity1', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IValidateRestoreRequestObject] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IValidateRestoreRequestObject] # Validate restore request object # To construct, see NOTES section for PARAMETER properties and create a hash table. ${Parameter}, @@ -123,7 +125,7 @@ param( [Parameter(ParameterSetName='ValidateExpanded1', Mandatory)] [Parameter(ParameterSetName='ValidateViaIdentityExpanded1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20220501.IAzureBackupRestoreRequest] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20221201.IAzureBackupRestoreRequest] # Gets or sets the restore request object. # To construct, see NOTES section for RESTOREREQUESTOBJECT properties and create a hash table. ${RestoreRequestObject}, diff --git a/src/DataProtection/test/Backup-AzDataProtectionBackupInstanceAdhoc.Recording.json b/src/DataProtection/test/Backup-AzDataProtectionBackupInstanceAdhoc.Recording.json index d99c7ff7c98e..10cbb853ae56 100644 --- a/src/DataProtection/test/Backup-AzDataProtectionBackupInstanceAdhoc.Recording.json +++ b/src/DataProtection/test/Backup-AzDataProtectionBackupInstanceAdhoc.Recording.json @@ -1,16 +1,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/backupInstances?api-version=2022-05-01+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=2022-12-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=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "1" ], - "x-ms-client-request-id": [ "8f049256-3217-4782-8d4c-2e7e3e5be054" ], + "x-ms-client-request-id": [ "c9d59d88-6080-4631-9a3d-3c402b80ee7d" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -27,23 +28,25 @@ "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "1999" ], - "x-ms-correlation-request-id": [ "f3724965-c695-4c35-8517-efcd50224307" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140603Z:f3724965-c695-4c35-8517-efcd50224307" ], - "Date": [ "Wed, 29 Jun 2022 14:06:03 GMT" ] + "x-ms-correlation-request-id": [ "67f78c6b-61b8-4292-94ae-ccb9fe2eb328" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124423Z:67f78c6b-61b8-4292-94ae-ccb9fe2eb328" ], + "Date": [ "Sun, 22 Jan 2023 12:44:23 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "20876" ], + "Content-Length": [ "23559" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"friendlyName\":\"7k0ccypod01otds1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blob-Backup/providers/Microsoft.Storage/storageAccounts/7k0ccypod01otds1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blob-Backup/providers/Microsoft.Storage/storageAccounts/7k0ccypod01otds1\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"7k0ccypod01otds1\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobpolicy\",\"policyVersion\":\"\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"\"}]}},\"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/7k0ccypod01otds1-7k0ccypod01otds1-520ff77c-75eb-4cd4-a0d2-ad4ebb32d097\",\"name\":\"7k0ccypod01otds1-7k0ccypod01otds1-520ff77c-75eb-4cd4-a0d2-ad4ebb32d097\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"clibugbashsa\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ABC/providers/Microsoft.Storage/storageAccounts/clibugbashsa\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"clibugbashsa\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobclipolicy\"},\"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/clibugbashsa-clibugbashsa-9349e670-c432-11eb-aefe-b0a4601328c8\",\"name\":\"clibugbashsa-clibugbashsa-9349e670-c432-11eb-aefe-b0a4601328c8\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"randomsa\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ABC/providers/Microsoft.Storage/storageAccounts/randomsa\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"randomsa\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"randomlocation\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobclipolicy\"},\"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\":\"6ef868a7-ce1a-4273-9e9d-7623d3b3f052-Ibz\"}}},\"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\":\"6ef868a7-ce1a-4273-9e9d-7623d3b3f052-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/randomsa-randomsa-1445b05b-c439-11eb-b183-c8f750f92764\",\"name\":\"randomsa-randomsa-1445b05b-c439-11eb-b183-c8f750f92764\",\"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\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"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\":\"temp3\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp3\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp3\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"b17f01a6-bc95-11eb-b3aa-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"b17f01a6-bc95-11eb-b3aa-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp3-temp3-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp3-temp3-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp2\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp2\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp2\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5119fb3a-1e8d-4c31-a4aa-94ec18b97039-Ibz\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5119fb3a-1e8d-4c31-a4aa-94ec18b97039-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp2-temp2-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp2-temp2-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp5\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp5\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp5\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"059c9281-bca3-11eb-b183-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"059c9281-bca3-11eb-b183-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp5-temp5-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp5-temp5-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"clitest\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/clitest\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"clitest\",\"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/DiskPSPolicy2\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionStopped\"},\"currentProtectionState\":\"ProtectionStopped\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/clitest-clitest-3165cfe7-a932-11eb-9d24-9cfce85d4fae\",\"name\":\"clitest-clitest-3165cfe7-a932-11eb-9d24-9cfce85d4fae\",\"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/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"name\":\"sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"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/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"name\":\"sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"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\":\"ProtectionStopped\"},\"currentProtectionState\":\"ProtectionStopped\",\"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\":\"temp4\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp4\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp4\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5f08710a-bc96-11eb-863b-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5f08710a-bc96-11eb-863b-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp4-temp4-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp4-temp4-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"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\"},\"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\"}]}" + "Content": "{\"value\":[{\"properties\":{\"friendlyName\":\"c12ccypod01otds1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/abhinitRG/providers/Microsoft.Storage/storageAccounts/c12ccypod01otds1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/abhinitRG/providers/Microsoft.Storage/storageAccounts/c12ccypod01otds1\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"c12ccypod01otds1\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"dataSourceSetInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/abhinitRG/providers/Microsoft.Storage/storageAccounts/c12ccypod01otds1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/abhinitRG/providers/Microsoft.Storage/storageAccounts/c12ccypod01otds1\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"c12ccypod01otds1\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"DatasourceSet\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobpolicy\",\"policyVersion\":\"\",\"policyParameters\":{\"backupDatasourceParametersList\":[{\"objectType\":\"BlobBackupDatasourceParameters\",\"containersList\":[]}]}},\"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/c12ccypod01otds1-c12ccypod01otds1-cecd7ec5-9695-484f-b1ff-76347ce94064\",\"name\":\"c12ccypod01otds1-c12ccypod01otds1-cecd7ec5-9695-484f-b1ff-76347ce94064\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"7k0ccypod01otds1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blob-Backup/providers/Microsoft.Storage/storageAccounts/7k0ccypod01otds1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blob-Backup/providers/Microsoft.Storage/storageAccounts/7k0ccypod01otds1\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"7k0ccypod01otds1\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobpolicy\",\"policyVersion\":\"\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"\"}]}},\"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/7k0ccypod01otds1-7k0ccypod01otds1-520ff77c-75eb-4cd4-a0d2-ad4ebb32d097\",\"name\":\"7k0ccypod01otds1-7k0ccypod01otds1-520ff77c-75eb-4cd4-a0d2-ad4ebb32d097\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"clibugbashsa\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ABC/providers/Microsoft.Storage/storageAccounts/clibugbashsa\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"clibugbashsa\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobclipolicy\"},\"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/clibugbashsa-clibugbashsa-9349e670-c432-11eb-aefe-b0a4601328c8\",\"name\":\"clibugbashsa-clibugbashsa-9349e670-c432-11eb-aefe-b0a4601328c8\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"randomsa\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ABC/providers/Microsoft.Storage/storageAccounts/randomsa\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"randomsa\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"randomlocation\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobclipolicy\"},\"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\":\"6ef868a7-ce1a-4273-9e9d-7623d3b3f052-Ibz\"}}},\"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\":\"6ef868a7-ce1a-4273-9e9d-7623d3b3f052-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/randomsa-randomsa-1445b05b-c439-11eb-b183-c8f750f92764\",\"name\":\"randomsa-randomsa-1445b05b-c439-11eb-b183-c8f750f92764\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp3\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp3\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp3\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"b17f01a6-bc95-11eb-b3aa-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"b17f01a6-bc95-11eb-b3aa-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp3-temp3-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp3-temp3-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp2\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp2\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp2\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5119fb3a-1e8d-4c31-a4aa-94ec18b97039-Ibz\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5119fb3a-1e8d-4c31-a4aa-94ec18b97039-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp2-temp2-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp2-temp2-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp5\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp5\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp5\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"059c9281-bca3-11eb-b183-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"059c9281-bca3-11eb-b183-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp5-temp5-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp5-temp5-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"clitest\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/clitest\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"clitest\",\"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/DiskPSPolicy2\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionStopped\"},\"currentProtectionState\":\"ProtectionStopped\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/clitest-clitest-3165cfe7-a932-11eb-9d24-9cfce85d4fae\",\"name\":\"clitest-clitest-3165cfe7-a932-11eb-9d24-9cfce85d4fae\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"sarath-restored-disk-1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarath-restored-disk-1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarath-restored-disk-1\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarath-restored-disk-1\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"dataSourceSetInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarath-restored-disk-1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarath-restored-disk-1\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarath-restored-disk-1\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"DatasourceSet\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyVersion\":\"\",\"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/sarath-restored-disk-1-sarath-restored-disk-1-cecd7ec5-9695-484f-b1ff-76347ce94087\",\"name\":\"sarath-restored-disk-1-sarath-restored-disk-1-cecd7ec5-9695-484f-b1ff-76347ce94087\",\"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/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"name\":\"sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"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/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"name\":\"sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"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\":\"ProtectionStopped\"},\"currentProtectionState\":\"ProtectionStopped\",\"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\":\"temp4\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp4\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp4\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5f08710a-bc96-11eb-863b-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5f08710a-bc96-11eb-863b-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp4-temp4-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp4-temp4-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"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\"},\"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\"}]}", + "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=2022-05-01+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=2022-12-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=2022-05-01", + "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=2022-12-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": { }, "ContentHeaders": { @@ -56,38 +59,40 @@ "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/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2VkMmFiMjA1LWQ0YzYtNDUxOS1hNTM2LTBlNGY0NzVmNTk1Yg==?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzNlNTk5YzUzLTc3NmYtNGI0Ny05YTFkLTNlZWI1OTRiODI3Yg==?api-version=2022-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2VkMmFiMjA1LWQ0YzYtNDUxOS1hNTM2LTBlNGY0NzVmNTk1Yg==?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzNlNTk5YzUzLTc3NmYtNGI0Ny05YTFkLTNlZWI1OTRiODI3Yg==?api-version=2022-12-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": [ "1199" ], - "x-ms-correlation-request-id": [ "68998537-ffda-4217-995e-2933b054e14b" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140604Z:68998537-ffda-4217-995e-2933b054e14b" ], - "Date": [ "Wed, 29 Jun 2022 14:06:04 GMT" ] + "x-ms-correlation-request-id": [ "70279700-5f04-45dc-8335-aef615f7f09c" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124424Z:70279700-5f04-45dc-8335-aef615f7f09c" ], + "Date": [ "Sun, 22 Jan 2023 12:44:24 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "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/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2VkMmFiMjA1LWQ0YzYtNDUxOS1hNTM2LTBlNGY0NzVmNTk1Yg==?api-version=2022-05-01+3": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzNlNTk5YzUzLTc3NmYtNGI0Ny05YTFkLTNlZWI1OTRiODI3Yg==?api-version=2022-12-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/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2VkMmFiMjA1LWQ0YzYtNDUxOS1hNTM2LTBlNGY0NzVmNTk1Yg==?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzNlNTk5YzUzLTc3NmYtNGI0Ny05YTFkLTNlZWI1OTRiODI3Yg==?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "3" ], - "x-ms-client-request-id": [ "e78dfffe-f1ab-4ae6-b647-589c96ca720b" ], + "x-ms-client-request-id": [ "03c5f110-b79b-4287-a53d-4ea9c28799ec" ], "CommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc" ], "FullCommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc_BackupExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -102,32 +107,34 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "999" ], - "x-ms-correlation-request-id": [ "867f914e-30ee-42ce-ae5f-75ff52e491a6" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140636Z:867f914e-30ee-42ce-ae5f-75ff52e491a6" ], - "Date": [ "Wed, 29 Jun 2022 14:06:35 GMT" ] + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "997" ], + "x-ms-correlation-request-id": [ "7b0cd172-5816-489b-b13d-6106049b38b4" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124456Z:7b0cd172-5816-489b-b13d-6106049b38b4" ], + "Date": [ "Sun, 22 Jan 2023 12:44:56 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "721" ], + "Content-Length": [ "720" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2VkMmFiMjA1LWQ0YzYtNDUxOS1hNTM2LTBlNGY0NzVmNTk1Yg==\",\"name\":\"Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2VkMmFiMjA1LWQ0YzYtNDUxOS1hNTM2LTBlNGY0NzVmNTk1Yg==\",\"status\":\"Succeeded\",\"startTime\":\"2022-06-29T14:06:04.7433968Z\",\"endTime\":\"2022-06-29T14:06:08Z\",\"properties\":{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.DataProtection/BackupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"objectType\":\"OperationJobExtendedInfo\"}}" + "Content": "{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzNlNTk5YzUzLTc3NmYtNGI0Ny05YTFkLTNlZWI1OTRiODI3Yg==\",\"name\":\"Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzNlNTk5YzUzLTc3NmYtNGI0Ny05YTFkLTNlZWI1OTRiODI3Yg==\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-22T12:44:24.583875Z\",\"endTime\":\"2023-01-22T12:44:26Z\",\"properties\":{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.DataProtection/BackupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"objectType\":\"OperationJobExtendedInfo\"}}", + "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2VkMmFiMjA1LWQ0YzYtNDUxOS1hNTM2LTBlNGY0NzVmNTk1Yg==?api-version=2022-05-01+4": { + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+BackupExpanded+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzNlNTk5YzUzLTc3NmYtNGI0Ny05YTFkLTNlZWI1OTRiODI3Yg==?api-version=2022-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2VkMmFiMjA1LWQ0YzYtNDUxOS1hNTM2LTBlNGY0NzVmNTk1Yg==?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzNlNTk5YzUzLTc3NmYtNGI0Ny05YTFkLTNlZWI1OTRiODI3Yg==?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "4" ], - "x-ms-client-request-id": [ "e78dfffe-f1ab-4ae6-b647-589c96ca720b" ], + "x-ms-client-request-id": [ "03c5f110-b79b-4287-a53d-4ea9c28799ec" ], "CommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc" ], "FullCommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc_BackupExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -138,37 +145,39 @@ "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/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2VkMmFiMjA1LWQ0YzYtNDUxOS1hNTM2LTBlNGY0NzVmNTk1Yg==?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzNlNTk5YzUzLTc3NmYtNGI0Ny05YTFkLTNlZWI1OTRiODI3Yg==?api-version=2022-12-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-resource-requests": [ "199" ], - "x-ms-correlation-request-id": [ "c5f180d6-6e9c-4152-be6a-580a74cdf4b5" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140636Z:c5f180d6-6e9c-4152-be6a-580a74cdf4b5" ], - "Date": [ "Wed, 29 Jun 2022 14:06:36 GMT" ] + "x-ms-correlation-request-id": [ "a2fc0916-07c9-46d5-8db5-c3d63ab5e440" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124509Z:a2fc0916-07c9-46d5-8db5-c3d63ab5e440" ], + "Date": [ "Sun, 22 Jan 2023 12:45:09 GMT" ] }, "ContentHeaders": { "Content-Length": [ "237" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.DataProtection/BackupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"objectType\":\"OperationJobExtendedInfo\"}" + "Content": "{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.DataProtection/BackupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"objectType\":\"OperationJobExtendedInfo\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "5" ], - "x-ms-client-request-id": [ "11db3beb-09af-4e6b-8c18-d44a722526df" ], + "x-ms-client-request-id": [ "bead04a0-cef1-4bbd-bce5-a51e73a556bc" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -185,30 +194,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "2a090c30-3690-427c-a312-c4d4fe4573d0" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140642Z:2a090c30-3690-427c-a312-c4d4fe4573d0" ], - "Date": [ "Wed, 29 Jun 2022 14:06:41 GMT" ] + "x-ms-correlation-request-id": [ "630e90c8-c783-4b41-870f-e71e767abe16" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124515Z:630e90c8-c783-4b41-870f-e71e767abe16" ], + "Date": [ "Sun, 22 Jan 2023 12:45:15 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "6" ], - "x-ms-client-request-id": [ "f1f30d7d-4598-404a-bbab-9f84fcc402c3" ], + "x-ms-client-request-id": [ "277e3a00-5bd9-4838-b2ae-da6c118672c7" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -225,30 +236,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "4230c291-4761-4045-8978-235c7b16b596" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140647Z:4230c291-4761-4045-8978-235c7b16b596" ], - "Date": [ "Wed, 29 Jun 2022 14:06:46 GMT" ] + "x-ms-correlation-request-id": [ "1d42845b-5532-434d-84aa-e2a8bf1aa3dc" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124520Z:1d42845b-5532-434d-84aa-e2a8bf1aa3dc" ], + "Date": [ "Sun, 22 Jan 2023 12:45:20 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "7" ], - "x-ms-client-request-id": [ "d5380fde-1cdb-41f9-b17f-b9e9dde3ff80" ], + "x-ms-client-request-id": [ "21f755d4-cce7-450c-b32c-5a3bd7a43196" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -265,30 +278,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "12633592-7b95-4b32-8ee7-98290a04cf49" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140653Z:12633592-7b95-4b32-8ee7-98290a04cf49" ], - "Date": [ "Wed, 29 Jun 2022 14:06:52 GMT" ] + "x-ms-correlation-request-id": [ "96696a04-1202-4e61-85ba-58bdefeaaaa4" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124526Z:96696a04-1202-4e61-85ba-58bdefeaaaa4" ], + "Date": [ "Sun, 22 Jan 2023 12:45:26 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "8" ], - "x-ms-client-request-id": [ "f4886079-0a24-4654-b45b-2b49fc3ec2fe" ], + "x-ms-client-request-id": [ "46ab2471-5a74-4ead-8c6a-1b0fd4c26d7d" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -305,30 +320,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "887ee9ea-6338-4c4e-a157-3b405a3d6e84" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140658Z:887ee9ea-6338-4c4e-a157-3b405a3d6e84" ], - "Date": [ "Wed, 29 Jun 2022 14:06:57 GMT" ] + "x-ms-correlation-request-id": [ "3b309733-beb2-44eb-99ab-4e9fdeb668b3" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124531Z:3b309733-beb2-44eb-99ab-4e9fdeb668b3" ], + "Date": [ "Sun, 22 Jan 2023 12:45:31 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "9" ], - "x-ms-client-request-id": [ "31859d91-4557-4ec2-bfc3-1c01cbcedb4b" ], + "x-ms-client-request-id": [ "fa423445-bb70-4c8a-aa20-6293b2df6cd3" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -345,30 +362,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "c4e4fdef-c591-45b8-b35c-1c64c6a85f08" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140703Z:c4e4fdef-c591-45b8-b35c-1c64c6a85f08" ], - "Date": [ "Wed, 29 Jun 2022 14:07:03 GMT" ] + "x-ms-correlation-request-id": [ "56999591-d5e7-4b06-9eb9-1e77ba105c40" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124537Z:56999591-d5e7-4b06-9eb9-1e77ba105c40" ], + "Date": [ "Sun, 22 Jan 2023 12:45:37 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "10" ], - "x-ms-client-request-id": [ "3705102b-6b34-45c4-a623-38524d3a81bd" ], + "x-ms-client-request-id": [ "62e2bb9c-416b-4e27-a348-054cc0428dba" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -385,30 +404,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "e5cb69c3-601f-4cb1-99d3-c243f0dd8e3e" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140709Z:e5cb69c3-601f-4cb1-99d3-c243f0dd8e3e" ], - "Date": [ "Wed, 29 Jun 2022 14:07:08 GMT" ] + "x-ms-correlation-request-id": [ "8cfedf48-432d-4293-9e57-ba920f149cf2" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124542Z:8cfedf48-432d-4293-9e57-ba920f149cf2" ], + "Date": [ "Sun, 22 Jan 2023 12:45:42 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "11" ], - "x-ms-client-request-id": [ "99db24a6-1754-4556-a47a-209ebed0c449" ], + "x-ms-client-request-id": [ "a81ad013-fd65-4dc1-8c97-f79a30193017" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -425,30 +446,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "1eae2a0c-1130-4c8f-b766-76c699fb4824" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140714Z:1eae2a0c-1130-4c8f-b766-76c699fb4824" ], - "Date": [ "Wed, 29 Jun 2022 14:07:14 GMT" ] + "x-ms-correlation-request-id": [ "f09c1c87-2bd5-4bc5-bb0a-863b4a0b9f9c" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124548Z:f09c1c87-2bd5-4bc5-bb0a-863b4a0b9f9c" ], + "Date": [ "Sun, 22 Jan 2023 12:45:47 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "12" ], - "x-ms-client-request-id": [ "17cb4b56-c6e7-4f89-8542-f4a33b37164c" ], + "x-ms-client-request-id": [ "f7016402-4c22-4a67-a567-78f0a480591b" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -465,30 +488,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "a1894d7d-df5f-4267-a32f-7fedc9069456" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140719Z:a1894d7d-df5f-4267-a32f-7fedc9069456" ], - "Date": [ "Wed, 29 Jun 2022 14:07:19 GMT" ] + "x-ms-correlation-request-id": [ "a95efe21-78c5-49a0-89b2-b9a6c9a17140" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124553Z:a95efe21-78c5-49a0-89b2-b9a6c9a17140" ], + "Date": [ "Sun, 22 Jan 2023 12:45:53 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "13" ], - "x-ms-client-request-id": [ "46f90431-5ff6-44b5-8a4c-425654b69cfc" ], + "x-ms-client-request-id": [ "b1aa3792-3c92-47e8-b4e3-e746a9029b5b" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -505,30 +530,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "a22b6103-4041-4855-9e11-5b09618deefb" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140725Z:a22b6103-4041-4855-9e11-5b09618deefb" ], - "Date": [ "Wed, 29 Jun 2022 14:07:25 GMT" ] + "x-ms-correlation-request-id": [ "27ec266f-d90c-4b90-9c66-1569b7714aa9" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124559Z:27ec266f-d90c-4b90-9c66-1569b7714aa9" ], + "Date": [ "Sun, 22 Jan 2023 12:45:59 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "14" ], - "x-ms-client-request-id": [ "8aa6e12e-4a44-40dc-be72-e82ac38d5476" ], + "x-ms-client-request-id": [ "d6bb5b9c-ae67-4eff-9fe1-de98aa3d2cbf" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -545,30 +572,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "ea1e12cf-2807-4630-a391-b06d7be87daa" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140730Z:ea1e12cf-2807-4630-a391-b06d7be87daa" ], - "Date": [ "Wed, 29 Jun 2022 14:07:30 GMT" ] + "x-ms-correlation-request-id": [ "a3b8c210-9e4e-4746-bb00-5b4b66beb3d6" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124604Z:a3b8c210-9e4e-4746-bb00-5b4b66beb3d6" ], + "Date": [ "Sun, 22 Jan 2023 12:46:04 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "15" ], - "x-ms-client-request-id": [ "10223fbf-68dc-4549-aa55-d35c2dc37547" ], + "x-ms-client-request-id": [ "f4b0c402-dd5c-4ca6-95a5-ced78f213bc1" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -585,30 +614,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "cc730b62-26bd-43de-9e83-ab9503db49f0" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140735Z:cc730b62-26bd-43de-9e83-ab9503db49f0" ], - "Date": [ "Wed, 29 Jun 2022 14:07:35 GMT" ] + "x-ms-correlation-request-id": [ "c2cb69cd-3419-4213-8974-d8d82b12b238" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124610Z:c2cb69cd-3419-4213-8974-d8d82b12b238" ], + "Date": [ "Sun, 22 Jan 2023 12:46:10 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "16" ], - "x-ms-client-request-id": [ "e9a12968-c5e1-4265-9368-fc05235c9212" ], + "x-ms-client-request-id": [ "529f067d-0dd7-41f8-af6b-568a8801b294" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -625,30 +656,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "8dd590c6-1816-4f52-964b-147f05ca1a4b" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140741Z:8dd590c6-1816-4f52-964b-147f05ca1a4b" ], - "Date": [ "Wed, 29 Jun 2022 14:07:41 GMT" ] + "x-ms-correlation-request-id": [ "8a457fad-3115-49d1-93bc-24e9c502d818" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124616Z:8a457fad-3115-49d1-93bc-24e9c502d818" ], + "Date": [ "Sun, 22 Jan 2023 12:46:16 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "17" ], - "x-ms-client-request-id": [ "5a33f02d-68e7-4c12-b382-b34c8d1c7ae6" ], + "x-ms-client-request-id": [ "e5ab8128-f5ee-4f54-ab91-60d947fecd07" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -665,30 +698,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "1b099c38-38d6-4cc8-be95-38ac84a596a0" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140746Z:1b099c38-38d6-4cc8-be95-38ac84a596a0" ], - "Date": [ "Wed, 29 Jun 2022 14:07:46 GMT" ] + "x-ms-correlation-request-id": [ "5aeccb3d-1bb6-4566-9978-814ce185c16c" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124621Z:5aeccb3d-1bb6-4566-9978-814ce185c16c" ], + "Date": [ "Sun, 22 Jan 2023 12:46:21 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "18" ], - "x-ms-client-request-id": [ "9c52e6e8-7012-4b0c-b278-be28611da0c6" ], + "x-ms-client-request-id": [ "5094453c-f2c1-4520-9274-47d304c3d6ec" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -705,30 +740,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "93b71a04-1013-4e1e-bbd8-81c6d1d61ff4" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140752Z:93b71a04-1013-4e1e-bbd8-81c6d1d61ff4" ], - "Date": [ "Wed, 29 Jun 2022 14:07:51 GMT" ] + "x-ms-correlation-request-id": [ "8a04af1f-c2a0-479c-81e1-4ff03105865e" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124627Z:8a04af1f-c2a0-479c-81e1-4ff03105865e" ], + "Date": [ "Sun, 22 Jan 2023 12:46:27 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "19" ], - "x-ms-client-request-id": [ "2c07632a-ec4d-4638-ade6-4af6ba6a0db0" ], + "x-ms-client-request-id": [ "ff08ec17-b4ae-4f2a-86d1-8ba1be69598e" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -745,30 +782,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "c518b5e1-e4d1-462c-b0d2-8147ad16c831" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140757Z:c518b5e1-e4d1-462c-b0d2-8147ad16c831" ], - "Date": [ "Wed, 29 Jun 2022 14:07:57 GMT" ] + "x-ms-correlation-request-id": [ "ea9a2786-be5f-45ee-8ca2-3ae4003530e2" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124632Z:ea9a2786-be5f-45ee-8ca2-3ae4003530e2" ], + "Date": [ "Sun, 22 Jan 2023 12:46:32 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "20" ], - "x-ms-client-request-id": [ "8758e7a0-3cec-4ce1-a3d1-149b1e2e6910" ], + "x-ms-client-request-id": [ "23624733-571b-46a0-99e2-c7de78f9142b" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -785,30 +824,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "a8bc4d09-d7a5-4946-b67d-51b8c319a2ca" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140802Z:a8bc4d09-d7a5-4946-b67d-51b8c319a2ca" ], - "Date": [ "Wed, 29 Jun 2022 14:08:02 GMT" ] + "x-ms-correlation-request-id": [ "8d81c523-c4bd-408e-935c-1d03889873f0" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124638Z:8d81c523-c4bd-408e-935c-1d03889873f0" ], + "Date": [ "Sun, 22 Jan 2023 12:46:38 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "21" ], - "x-ms-client-request-id": [ "01ed6d47-e243-4d6c-b26d-e3e5a01c5f7b" ], + "x-ms-client-request-id": [ "c310ee1c-3dec-429e-ac3d-4699205a67c5" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -825,30 +866,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "65c82194-54af-4ced-ad7c-a44f3aeb46e8" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140808Z:65c82194-54af-4ced-ad7c-a44f3aeb46e8" ], - "Date": [ "Wed, 29 Jun 2022 14:08:07 GMT" ] + "x-ms-correlation-request-id": [ "197b0c25-8542-406b-93d6-676341ab7194" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124643Z:197b0c25-8542-406b-93d6-676341ab7194" ], + "Date": [ "Sun, 22 Jan 2023 12:46:43 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "22" ], - "x-ms-client-request-id": [ "9b9692fe-55f9-45c8-a435-5f5bfe70ba29" ], + "x-ms-client-request-id": [ "0eac21eb-6ca6-4783-89a5-9cc317b9a99a" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -865,30 +908,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "e9f24b06-4baf-46a5-98ab-8cf75de7dac1" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140814Z:e9f24b06-4baf-46a5-98ab-8cf75de7dac1" ], - "Date": [ "Wed, 29 Jun 2022 14:08:14 GMT" ] + "x-ms-correlation-request-id": [ "0240bc44-870f-48fb-b5fe-4fef5d4a5566" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124649Z:0240bc44-870f-48fb-b5fe-4fef5d4a5566" ], + "Date": [ "Sun, 22 Jan 2023 12:46:49 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "23" ], - "x-ms-client-request-id": [ "c42e5707-0a03-462b-9e4c-7abe0bd63fc9" ], + "x-ms-client-request-id": [ "b5c8a263-44c3-492c-b6c9-8e272c92603a" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -905,30 +950,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "12dd10ba-62ab-49bb-8413-a70ecc5a6b10" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140820Z:12dd10ba-62ab-49bb-8413-a70ecc5a6b10" ], - "Date": [ "Wed, 29 Jun 2022 14:08:19 GMT" ] + "x-ms-correlation-request-id": [ "063ddf4b-0e6a-4e42-918b-d97e72fa842f" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124654Z:063ddf4b-0e6a-4e42-918b-d97e72fa842f" ], + "Date": [ "Sun, 22 Jan 2023 12:46:54 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "24" ], - "x-ms-client-request-id": [ "71d30b5c-53df-4594-a8ae-1c04203267f0" ], + "x-ms-client-request-id": [ "311b4406-9092-40db-98e2-b95a2d58467e" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -945,30 +992,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "39dea471-6bf8-4e55-9453-f542cab53852" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140825Z:39dea471-6bf8-4e55-9453-f542cab53852" ], - "Date": [ "Wed, 29 Jun 2022 14:08:24 GMT" ] + "x-ms-correlation-request-id": [ "e2eb4502-8b6a-4f6f-80a9-fbbed8f380f3" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124700Z:e2eb4502-8b6a-4f6f-80a9-fbbed8f380f3" ], + "Date": [ "Sun, 22 Jan 2023 12:47:00 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "25" ], - "x-ms-client-request-id": [ "e85c29f2-a498-405e-92dd-bd801892a8f9" ], + "x-ms-client-request-id": [ "bdfdf8e8-b895-4462-b0dd-7d460e98ac1c" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -985,30 +1034,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "343c22cf-fed7-4148-8303-008c60948c61" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140830Z:343c22cf-fed7-4148-8303-008c60948c61" ], - "Date": [ "Wed, 29 Jun 2022 14:08:30 GMT" ] + "x-ms-correlation-request-id": [ "ccbd6ad4-79a6-4fa5-ba86-180d818d8bac" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124705Z:ccbd6ad4-79a6-4fa5-ba86-180d818d8bac" ], + "Date": [ "Sun, 22 Jan 2023 12:47:05 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "26" ], - "x-ms-client-request-id": [ "2e0872dd-508f-4b49-a1e9-b0116de4ed2c" ], + "x-ms-client-request-id": [ "69bbc86b-392a-4f03-8588-5c91e28f5364" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1025,30 +1076,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "18cd0cc1-9af5-4d8d-8b9c-85d9b723f105" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140836Z:18cd0cc1-9af5-4d8d-8b9c-85d9b723f105" ], - "Date": [ "Wed, 29 Jun 2022 14:08:35 GMT" ] + "x-ms-correlation-request-id": [ "231d35e7-6c1c-445f-b982-835352335df4" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124711Z:231d35e7-6c1c-445f-b982-835352335df4" ], + "Date": [ "Sun, 22 Jan 2023 12:47:11 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "27" ], - "x-ms-client-request-id": [ "e8517990-b954-4f49-88e2-ed7122e6f824" ], + "x-ms-client-request-id": [ "474aaada-20c9-4ca5-af5e-ffd8c8616ee3" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1065,30 +1118,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "407ca116-02b1-4921-be90-a7c280d2addd" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140841Z:407ca116-02b1-4921-be90-a7c280d2addd" ], - "Date": [ "Wed, 29 Jun 2022 14:08:40 GMT" ] + "x-ms-correlation-request-id": [ "0a528db9-3f52-4039-993d-949ecfe6a129" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124716Z:0a528db9-3f52-4039-993d-949ecfe6a129" ], + "Date": [ "Sun, 22 Jan 2023 12:47:16 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+28": { + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "28" ], - "x-ms-client-request-id": [ "6a05c1fd-86fa-4576-aae5-370339a7938e" ], + "x-ms-client-request-id": [ "9f5e3b2f-191a-44e2-a643-c75e844251a5" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1105,30 +1160,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "63269de1-9382-46f6-ab10-5e6aa77af848" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140846Z:63269de1-9382-46f6-ab10-5e6aa77af848" ], - "Date": [ "Wed, 29 Jun 2022 14:08:45 GMT" ] + "x-ms-correlation-request-id": [ "93192338-a88a-4aed-a281-501c07819752" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124722Z:93192338-a88a-4aed-a281-501c07819752" ], + "Date": [ "Sun, 22 Jan 2023 12:47:22 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+29": { + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "29" ], - "x-ms-client-request-id": [ "96900839-2d9e-4492-85a2-bdc9d29e6a77" ], + "x-ms-client-request-id": [ "aa07a212-4a9b-433c-9f0c-1b4dbc016e84" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1145,30 +1202,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "07861a6c-f43f-4345-873d-a2517cc39e9a" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140852Z:07861a6c-f43f-4345-873d-a2517cc39e9a" ], - "Date": [ "Wed, 29 Jun 2022 14:08:51 GMT" ] + "x-ms-correlation-request-id": [ "fafb085b-22f4-412a-ac06-7adedabed471" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124727Z:fafb085b-22f4-412a-ac06-7adedabed471" ], + "Date": [ "Sun, 22 Jan 2023 12:47:27 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+30": { + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "30" ], - "x-ms-client-request-id": [ "d2aa9ace-1961-4436-ade7-707c72bfc663" ], + "x-ms-client-request-id": [ "14332b76-b1c7-4424-9f34-89e2fc1f0d86" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1185,30 +1244,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "3b5d1e1f-9f02-47cc-921b-f9a8e85f6784" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140857Z:3b5d1e1f-9f02-47cc-921b-f9a8e85f6784" ], - "Date": [ "Wed, 29 Jun 2022 14:08:57 GMT" ] + "x-ms-correlation-request-id": [ "0a2f9549-c3c6-49ef-a67f-407c3c8ee341" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124733Z:0a2f9549-c3c6-49ef-a67f-407c3c8ee341" ], + "Date": [ "Sun, 22 Jan 2023 12:47:32 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+31": { + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "31" ], - "x-ms-client-request-id": [ "087de0b1-e4e1-4204-9074-86995bb2e843" ], + "x-ms-client-request-id": [ "54ec58f2-ace9-4080-b98e-8f2b427fe9a3" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1225,30 +1286,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "bcbfed6e-8490-4b92-86d3-32a116d106d5" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140902Z:bcbfed6e-8490-4b92-86d3-32a116d106d5" ], - "Date": [ "Wed, 29 Jun 2022 14:09:02 GMT" ] + "x-ms-correlation-request-id": [ "a0bcc9e7-6952-4eac-897b-c3426bd4eb81" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124738Z:a0bcc9e7-6952-4eac-897b-c3426bd4eb81" ], + "Date": [ "Sun, 22 Jan 2023 12:47:38 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+32": { + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "32" ], - "x-ms-client-request-id": [ "90fce915-63b1-43c3-9741-69f2e997a42d" ], + "x-ms-client-request-id": [ "ad154c5c-4efc-4db7-81bc-cde833b0e494" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1265,30 +1328,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "cdbf14fc-4f2c-4c95-ada2-51a6fbc51bb4" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140907Z:cdbf14fc-4f2c-4c95-ada2-51a6fbc51bb4" ], - "Date": [ "Wed, 29 Jun 2022 14:09:07 GMT" ] + "x-ms-correlation-request-id": [ "723b9067-60ec-4f44-9ed4-cf0282989e84" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124744Z:723b9067-60ec-4f44-9ed4-cf0282989e84" ], + "Date": [ "Sun, 22 Jan 2023 12:47:44 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2044" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A06%3A05.5645173Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01+33": { + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/feeaf798-a3e4-443d-a1d7-4ddd241f01b0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "33" ], - "x-ms-client-request-id": [ "2003e32f-9ea2-4290-99d3-62b0c36d71da" ], + "x-ms-client-request-id": [ "689b0779-eceb-4cf9-a340-cf62a8cec4c1" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1305,30 +1370,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "348f6def-ed7c-47db-8ff3-d91bf109a989" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140913Z:348f6def-ed7c-47db-8ff3-d91bf109a989" ], - "Date": [ "Wed, 29 Jun 2022 14:09:13 GMT" ] + "x-ms-correlation-request-id": [ "c0be7311-9c4d-40bf-8879-403fa69261f1" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124749Z:c0be7311-9c4d-40bf-8879-403fa69261f1" ], + "Date": [ "Sun, 22 Jan 2023 12:47:49 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2189" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"e78dfffe-f1ab-4ae6-b647-589c96ca720b\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":\"OperationalTierStore\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A09%3A12.1289705Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:06:05.1560353Z\",\"endTime\":\"2022-06-29T14:09:11.3426827Z\",\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT3M6.1866474S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":{\"recoveryPointID\":\"4e74ba7ef2c04b35afd896ba562defdb\",\"recoveryPointTime\":\"0001-01-01T00:00:00Z\"},\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"Completed\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"name\":\"feeaf798-a3e4-443d-a1d7-4ddd241f01b0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault?api-version=2022-05-01+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/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01+34": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "34" ], - "x-ms-client-request-id": [ "24527aff-2559-4fbe-b889-3a6417c990c5" ], - "CommandName": [ "Get-AzDataProtectionBackupVault" ], - "FullCommandName": [ "Get-AzDataProtectionBackupVault_Get2" ], + "x-ms-client-request-id": [ "9c08dac7-7e2d-4775-abca-41aeb078cf87" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1339,36 +1406,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "170" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "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-resource-requests": [ "499" ], - "x-ms-correlation-request-id": [ "2c1a1eb6-2cfb-4781-9aff-013a600f9d40" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140914Z:2c1a1eb6-2cfb-4781-9aff-013a600f9d40" ], - "Date": [ "Wed, 29 Jun 2022 14:09:13 GMT" ] + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "23d50d62-2080-4242-80a1-d684dbd1f8c7" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124755Z:23d50d62-2080-4242-80a1-d684dbd1f8c7" ], + "Date": [ "Sun, 22 Jan 2023 12:47:55 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "691" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"location\":\"centraluseuap\",\"tags\":{\"MABUsed\":\"Yes\",\"Owner\":\"hiaga\",\"Purpose\":\"testing\",\"DeleteBy\":\"01-2099\"},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"74ad0080-cf50-42ae-a83a-7c5f1126cae2\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"GeoRedundant\"},{\"datastoreType\":\"ArchiveStore\",\"type\":\"GeoRedundant\"}],\"isVaultProtectedByResourceGuard\":false},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault\",\"name\":\"oss-pstest-vault\",\"type\":\"Microsoft.DataProtection/backupVaults\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies?api-version=2022-05-01+2": { + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01+35": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "35" ], - "x-ms-client-request-id": [ "8ce57be9-3b38-43e3-aebf-68bd7fbc1276" ], - "CommandName": [ "Get-AzDataProtectionBackupPolicy" ], - "FullCommandName": [ "Get-AzDataProtectionBackupPolicy_List" ], + "x-ms-client-request-id": [ "3988017f-f16b-4264-af27-c3c0bc0b4179" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1379,36 +1448,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "169" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "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-resource-requests": [ "199" ], - "x-ms-correlation-request-id": [ "9d801ef6-1ad1-4dc1-a93b-158978370285" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140914Z:9d801ef6-1ad1-4dc1-a93b-158978370285" ], - "Date": [ "Wed, 29 Jun 2022 14:09:14 GMT" ] + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "9ac9e0e0-79ba-483a-80f2-2a86a462af4f" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124800Z:9ac9e0e0-79ba-483a-80f2-2a86a462af4f" ], + "Date": [ "Sun, 22 Jan 2023 12:48:00 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2939" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-08-29T10:00:00+05:30/P1W\",\"R/2021-09-02T10:00:00+05:30/P1W\"],\"timeZone\":\"India Standard Time\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"name\":\"oss-pstest-policy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-09-19T05:30:00+00:00/P1W\"],\"timeZone\":\"UTC\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/newOssPol\",\"name\":\"newOssPol\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"}]}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances?api-version=2022-05-01+3": { + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01+36": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "36" ], - "x-ms-client-request-id": [ "234153ee-facf-46d6-a7ce-91dfe7ab114c" ], - "CommandName": [ "Get-AzDataProtectionBackupInstance" ], - "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], + "x-ms-client-request-id": [ "7d6bda97-1cbb-4be5-9095-901dfcda3cc0" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1419,73 +1490,81 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "168" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "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-resource-requests": [ "1999" ], - "x-ms-correlation-request-id": [ "6f4c18f9-46e4-4cee-bd37-ab7c1083138e" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140914Z:6f4c18f9-46e4-4cee-bd37-ab7c1083138e" ], - "Date": [ "Wed, 29 Jun 2022 14:09:14 GMT" ] + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "88a0b184-b90f-434a-901e-3004ec33b08f" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124806Z:88a0b184-b90f-434a-901e-3004ec33b08f" ], + "Date": [ "Sun, 22 Jan 2023 12:48:06 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1860" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"friendlyName\":\"oss-pstest-server\\\\postgres\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"resourceName\":\"postgres\",\"resourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"dataSourceSetInfo\":{\"resourceID\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"resourceName\":\"oss-pstest-server\",\"resourceType\":\"Microsoft.DBforPostgreSQL/servers\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"DatasourceSet\"},\"policyInfo\":{\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\"},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"datasourceAuthCredentials\":{\"objectType\":\"SecretStoreBasedAuthCredentials\",\"secretStoreResource\":{\"uri\":\"https://oss-pstest-keyvault.vault.azure.net/secrets/oss-pstest-secret\",\"secretStoreType\":\"AzureKeyVault\",\"value\":null}},\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"name\":\"oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"}]}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$POST+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/backup?api-version=2022-05-01+4": { + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01+37": { "Request": { - "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/backup?api-version=2022-05-01", - "Content": "{\r\n \"backupRuleOptions\": {\r\n \"triggerOption\": {\r\n \"retentionTagOverride\": \"Default\"\r\n },\r\n \"ruleName\": \"BackupWeekly\"\r\n }\r\n}", + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, "Headers": { + "x-ms-unique-id": [ "37" ], + "x-ms-client-request-id": [ "d97d8c45-f275-4f89-a5e0-605f33568f5f" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "140" ] } }, "Response": { - "StatusCode": 202, + "StatusCode": 200, "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2QxYTE2NjU5LTdhNzYtNDJmNS1hNDllLTZiZTAyZjFkZjIzNQ==?api-version=2022-05-01" ], - "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2QxYTE2NjU5LTdhNzYtNDJmNS1hNDllLTZiZTAyZjFkZjIzNQ==?api-version=2022-05-01" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "167" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "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": [ "1199" ], - "x-ms-correlation-request-id": [ "87c0d134-d93c-43a4-94d7-83fcbd84a5bd" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140915Z:87c0d134-d93c-43a4-94d7-83fcbd84a5bd" ], - "Date": [ "Wed, 29 Jun 2022 14:09:15 GMT" ] + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "d4debb32-85a6-4876-a381-44cbc3991eb4" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124811Z:d4debb32-85a6-4876-a381-44cbc3991eb4" ], + "Date": [ "Sun, 22 Jan 2023 12:48:10 GMT" ] }, "ContentHeaders": { - "Expires": [ "-1" ], - "Content-Length": [ "0" ] + "Content-Length": [ "2043" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] }, - "Content": null + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2QxYTE2NjU5LTdhNzYtNDJmNS1hNDllLTZiZTAyZjFkZjIzNQ==?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01+38": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2QxYTE2NjU5LTdhNzYtNDJmNS1hNDllLTZiZTAyZjFkZjIzNQ==?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "38" ], - "x-ms-client-request-id": [ "eade4c31-d566-4ae4-a5c8-18dca3d3887b" ], - "CommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc" ], - "FullCommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc_BackupExpanded" ], + "x-ms-client-request-id": [ "a80a9943-3df2-4c82-b491-2cd5b2dfd0f0" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { } @@ -1495,37 +1574,39 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "166" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "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-resource-requests": [ "999" ], - "x-ms-correlation-request-id": [ "17680792-ff8a-4654-9506-58bf8d4e11b0" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140945Z:17680792-ff8a-4654-9506-58bf8d4e11b0" ], - "Date": [ "Wed, 29 Jun 2022 14:09:45 GMT" ] + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "20a32aaf-5a2f-4688-a8f5-a881127f7708" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124817Z:20a32aaf-5a2f-4688-a8f5-a881127f7708" ], + "Date": [ "Sun, 22 Jan 2023 12:48:17 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "737" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2QxYTE2NjU5LTdhNzYtNDJmNS1hNDllLTZiZTAyZjFkZjIzNQ==\",\"name\":\"ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2QxYTE2NjU5LTdhNzYtNDJmNS1hNDllLTZiZTAyZjFkZjIzNQ==\",\"status\":\"Succeeded\",\"startTime\":\"2022-06-29T14:09:15.3486726Z\",\"endTime\":\"2022-06-29T14:09:18Z\",\"properties\":{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/f06f11fb-e616-45ea-94f6-2b5e49cea66d\",\"objectType\":\"OperationJobExtendedInfo\"}}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2QxYTE2NjU5LTdhNzYtNDJmNS1hNDllLTZiZTAyZjFkZjIzNQ==?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01+39": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2QxYTE2NjU5LTdhNzYtNDJmNS1hNDllLTZiZTAyZjFkZjIzNQ==?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "Authorization": [ "[Filtered]" ], "x-ms-unique-id": [ "39" ], - "x-ms-client-request-id": [ "eade4c31-d566-4ae4-a5c8-18dca3d3887b" ], - "CommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc" ], - "FullCommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc_BackupExpanded" ], + "x-ms-client-request-id": [ "bdf8e5a7-2a94-4871-99c8-343aa9b0e313" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { } @@ -1535,38 +1616,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2QxYTE2NjU5LTdhNzYtNDJmNS1hNDllLTZiZTAyZjFkZjIzNQ==?api-version=2022-05-01" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "165" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "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-resource-requests": [ "199" ], - "x-ms-correlation-request-id": [ "218beae0-3a68-4bf2-90ab-3c36dec08137" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140946Z:218beae0-3a68-4bf2-90ab-3c36dec08137" ], - "Date": [ "Wed, 29 Jun 2022 14:09:45 GMT" ] + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "40818f65-4410-4b90-b9a0-6618f3f795c8" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124822Z:40818f65-4410-4b90-b9a0-6618f3f795c8" ], + "Date": [ "Sun, 22 Jan 2023 12:48:22 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "245" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/f06f11fb-e616-45ea-94f6-2b5e49cea66d\",\"objectType\":\"OperationJobExtendedInfo\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/f06f11fb-e616-45ea-94f6-2b5e49cea66d?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01+40": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/f06f11fb-e616-45ea-94f6-2b5e49cea66d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "40" ], - "x-ms-client-request-id": [ "e3570b43-405f-40ba-95b9-f155fd01000d" ], + "x-ms-client-request-id": [ "5232dbab-9f2c-4b76-b747-c92b9339cb21" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1577,36 +1658,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "199" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "164" ], "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": [ "60d26f26-e7e9-4b53-8e9e-78f1d5f97011" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T140956Z:60d26f26-e7e9-4b53-8e9e-78f1d5f97011" ], - "Date": [ "Wed, 29 Jun 2022 14:09:56 GMT" ] + "x-ms-correlation-request-id": [ "d5e3b207-cbaf-4f62-af94-13ddde720cf3" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124828Z:d5e3b207-cbaf-4f62-af94-13ddde720cf3" ], + "Date": [ "Sun, 22 Jan 2023 12:48:28 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2171" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"eade4c31-d566-4ae4-a5c8-18dca3d3887b\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A09%3A16.2829597Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:09:15.7774101Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/f06f11fb-e616-45ea-94f6-2b5e49cea66d\",\"name\":\"f06f11fb-e616-45ea-94f6-2b5e49cea66d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/f06f11fb-e616-45ea-94f6-2b5e49cea66d?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01+41": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/f06f11fb-e616-45ea-94f6-2b5e49cea66d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "41" ], - "x-ms-client-request-id": [ "668b7880-1589-485b-9d59-02c1b0aea105" ], + "x-ms-client-request-id": [ "7bba6f55-ccf5-4508-9ba7-026baa2f611a" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1617,36 +1700,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "198" ], "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": [ "7cd23352-f921-41a9-aa67-f6a5d7e44c98" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141013Z:7cd23352-f921-41a9-aa67-f6a5d7e44c98" ], - "Date": [ "Wed, 29 Jun 2022 14:10:12 GMT" ] + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "163" ], + "x-ms-correlation-request-id": [ "01dc4ae9-d04a-414a-9365-aa52d252cd34" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124833Z:01dc4ae9-d04a-414a-9365-aa52d252cd34" ], + "Date": [ "Sun, 22 Jan 2023 12:48:33 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2171" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"eade4c31-d566-4ae4-a5c8-18dca3d3887b\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A09%3A16.2829597Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:09:15.7774101Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/f06f11fb-e616-45ea-94f6-2b5e49cea66d\",\"name\":\"f06f11fb-e616-45ea-94f6-2b5e49cea66d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/f06f11fb-e616-45ea-94f6-2b5e49cea66d?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01+42": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/f06f11fb-e616-45ea-94f6-2b5e49cea66d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "42" ], - "x-ms-client-request-id": [ "d742d41d-9aeb-4bd3-bd51-f200f2051046" ], + "x-ms-client-request-id": [ "a3d32621-ed4e-478f-8870-33a6038ba325" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1657,36 +1742,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "197" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "162" ], "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": [ "4718e8d9-c74a-45c4-8546-129140c2ae6b" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141023Z:4718e8d9-c74a-45c4-8546-129140c2ae6b" ], - "Date": [ "Wed, 29 Jun 2022 14:10:23 GMT" ] + "x-ms-correlation-request-id": [ "93689907-a022-4ddc-a0cf-277003800a53" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124839Z:93689907-a022-4ddc-a0cf-277003800a53" ], + "Date": [ "Sun, 22 Jan 2023 12:48:39 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2171" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"eade4c31-d566-4ae4-a5c8-18dca3d3887b\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A09%3A16.2829597Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:09:15.7774101Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/f06f11fb-e616-45ea-94f6-2b5e49cea66d\",\"name\":\"f06f11fb-e616-45ea-94f6-2b5e49cea66d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/f06f11fb-e616-45ea-94f6-2b5e49cea66d?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01+43": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/f06f11fb-e616-45ea-94f6-2b5e49cea66d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "43" ], - "x-ms-client-request-id": [ "bc67dbe0-9335-456b-bb8a-d141baf7b573" ], + "x-ms-client-request-id": [ "b0ea15b0-c33e-488b-8852-53d652dc6777" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1697,36 +1784,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "196" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "161" ], "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": [ "4da79ee2-d0e8-42bc-a661-de3b231e9547" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141033Z:4da79ee2-d0e8-42bc-a661-de3b231e9547" ], - "Date": [ "Wed, 29 Jun 2022 14:10:33 GMT" ] + "x-ms-correlation-request-id": [ "f16f16b4-ded4-4512-b5a9-9c760f46ee05" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124844Z:f16f16b4-ded4-4512-b5a9-9c760f46ee05" ], + "Date": [ "Sun, 22 Jan 2023 12:48:44 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2171" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"eade4c31-d566-4ae4-a5c8-18dca3d3887b\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A09%3A16.2829597Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:09:15.7774101Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/f06f11fb-e616-45ea-94f6-2b5e49cea66d\",\"name\":\"f06f11fb-e616-45ea-94f6-2b5e49cea66d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/f06f11fb-e616-45ea-94f6-2b5e49cea66d?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01+44": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/f06f11fb-e616-45ea-94f6-2b5e49cea66d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "44" ], - "x-ms-client-request-id": [ "c84259c3-256a-467d-b149-7ef66ea469d3" ], + "x-ms-client-request-id": [ "4b779286-e7f5-48fd-b150-4cdd7e73bfa6" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1737,36 +1826,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "160" ], "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-resource-requests": [ "195" ], - "x-ms-correlation-request-id": [ "3f800204-dd52-4932-a5db-86a40d8967ee" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141044Z:3f800204-dd52-4932-a5db-86a40d8967ee" ], - "Date": [ "Wed, 29 Jun 2022 14:10:43 GMT" ] + "x-ms-correlation-request-id": [ "ffab7ea1-f199-4766-ac8c-30c8897dc26e" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124850Z:ffab7ea1-f199-4766-ac8c-30c8897dc26e" ], + "Date": [ "Sun, 22 Jan 2023 12:48:50 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2171" ], + "Content-Length": [ "2043" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"eade4c31-d566-4ae4-a5c8-18dca3d3887b\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A09%3A16.2829597Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:09:15.7774101Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/f06f11fb-e616-45ea-94f6-2b5e49cea66d\",\"name\":\"f06f11fb-e616-45ea-94f6-2b5e49cea66d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/f06f11fb-e616-45ea-94f6-2b5e49cea66d?api-version=2022-05-01+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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01+45": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/f06f11fb-e616-45ea-94f6-2b5e49cea66d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "x-ms-unique-id": [ "45" ], - "x-ms-client-request-id": [ "16fa2f32-6673-411b-a4be-e6bc511e6020" ], + "x-ms-client-request-id": [ "c24910ba-ec79-4c94-bf6f-3b84dc0f5ffc" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1777,22 +1868,1575 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "194" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "159" ], + "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": [ "5e094850-433c-48c2-8b00-e6c29a400ec8" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124856Z:5e094850-433c-48c2-8b00-e6c29a400ec8" ], + "Date": [ "Sun, 22 Jan 2023 12:48:56 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2043" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "46" ], + "x-ms-client-request-id": [ "9743b41d-e786-4c07-9425-f854b0e8698a" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "158" ], + "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": [ "963d2a76-924f-45b7-85e8-a13dd1b5b38e" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124901Z:963d2a76-924f-45b7-85e8-a13dd1b5b38e" ], + "Date": [ "Sun, 22 Jan 2023 12:49:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2043" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "47" ], + "x-ms-client-request-id": [ "b73e559c-5b07-45df-8604-c5e6d838316d" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "157" ], + "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": [ "5451bd02-effe-4d7c-8a61-7cfe494a21ca" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124907Z:5451bd02-effe-4d7c-8a61-7cfe494a21ca" ], + "Date": [ "Sun, 22 Jan 2023 12:49:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2043" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "48" ], + "x-ms-client-request-id": [ "8eebf976-81df-4460-83e1-0b0781a3eb5c" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "156" ], + "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": [ "6d7ff862-57a6-4740-a13c-c62bb043fa58" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124912Z:6d7ff862-57a6-4740-a13c-c62bb043fa58" ], + "Date": [ "Sun, 22 Jan 2023 12:49:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2043" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "49" ], + "x-ms-client-request-id": [ "718ceb4f-bbf5-46f7-b2fb-a4e9fefd578b" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "155" ], + "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": [ "5123bc53-8806-44db-9ddb-d8e1e0bc7c45" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124918Z:5123bc53-8806-44db-9ddb-d8e1e0bc7c45" ], + "Date": [ "Sun, 22 Jan 2023 12:49:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2043" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "50" ], + "x-ms-client-request-id": [ "77fcd535-7176-4ac7-8506-e00aa1f49c61" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "154" ], "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": [ "3b2da260-ee2e-4e68-ab0a-32c9379792ba" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141055Z:3b2da260-ee2e-4e68-ab0a-32c9379792ba" ], - "Date": [ "Wed, 29 Jun 2022 14:10:54 GMT" ] + "x-ms-correlation-request-id": [ "d7c9d6aa-e59b-4032-9fb7-fb779b0085da" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124923Z:d7c9d6aa-e59b-4032-9fb7-fb779b0085da" ], + "Date": [ "Sun, 22 Jan 2023 12:49:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2043" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "51" ], + "x-ms-client-request-id": [ "dea9dd3d-ae0f-4aa4-9bfb-80e2ed0c8a00" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "153" ], + "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": [ "93b8546f-0ba2-4665-b8b7-95ae13f844d9" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124929Z:93b8546f-0ba2-4665-b8b7-95ae13f844d9" ], + "Date": [ "Sun, 22 Jan 2023 12:49:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2043" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "52" ], + "x-ms-client-request-id": [ "2d3eb9f8-0d41-4ae0-bc11-40e9eeaee398" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "152" ], + "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": [ "23414164-5046-4a68-a4c9-704330a2aca3" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124934Z:23414164-5046-4a68-a4c9-704330a2aca3" ], + "Date": [ "Sun, 22 Jan 2023 12:49:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2043" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "53" ], + "x-ms-client-request-id": [ "fb2b2fba-b312-4f19-8421-5ebfef530a30" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "151" ], + "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": [ "83a80e2d-61cb-4159-ab3b-ef97012fd733" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124940Z:83a80e2d-61cb-4159-ab3b-ef97012fd733" ], + "Date": [ "Sun, 22 Jan 2023 12:49:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2043" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "54" ], + "x-ms-client-request-id": [ "c9bc03f1-17b1-4b85-abf0-a01ee5f7c47e" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "150" ], + "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": [ "5810f6dd-4eed-4b9f-800d-bba470c35d86" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124945Z:5810f6dd-4eed-4b9f-800d-bba470c35d86" ], + "Date": [ "Sun, 22 Jan 2023 12:49:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2043" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "55" ], + "x-ms-client-request-id": [ "c2ee70b0-f2d8-4575-9dbf-8042845f129a" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "149" ], + "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": [ "4c2f7fa0-ddf3-4824-93b3-be29f6d08a92" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124951Z:4c2f7fa0-ddf3-4824-93b3-be29f6d08a92" ], + "Date": [ "Sun, 22 Jan 2023 12:49:51 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2043" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "56" ], + "x-ms-client-request-id": [ "6e9e621c-dfdc-4d7b-b65e-44ebccce2ee1" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "148" ], + "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": [ "16cb912e-e168-4ab5-8af6-61af38232dce" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T124956Z:16cb912e-e168-4ab5-8af6-61af38232dce" ], + "Date": [ "Sun, 22 Jan 2023 12:49:56 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2043" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "57" ], + "x-ms-client-request-id": [ "963d8a7c-99a0-4d94-af24-1ac0ab16ccc2" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "147" ], + "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": [ "032d2ace-a352-4311-b311-cb1a9f459502" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125002Z:032d2ace-a352-4311-b311-cb1a9f459502" ], + "Date": [ "Sun, 22 Jan 2023 12:50:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2043" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "58" ], + "x-ms-client-request-id": [ "a81999bf-88a8-4f57-8b5c-91a3daff6f07" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "146" ], + "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": [ "b512695b-ccac-42e4-a22a-9a3b3d3ea37c" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125007Z:b512695b-ccac-42e4-a22a-9a3b3d3ea37c" ], + "Date": [ "Sun, 22 Jan 2023 12:50:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2043" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "59" ], + "x-ms-client-request-id": [ "32db5edb-6f6c-485c-9bd2-c774b7200642" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "145" ], + "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": [ "b8733d22-c5ea-4b4d-a26c-7c5129796793" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125013Z:b8733d22-c5ea-4b4d-a26c-7c5129796793" ], + "Date": [ "Sun, 22 Jan 2023 12:50:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2043" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "60" ], + "x-ms-client-request-id": [ "d1e3ef11-fcce-473a-a8ef-954f1f44a238" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "144" ], + "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": [ "b9db6fab-6532-4498-86d3-e788651eeb4d" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125018Z:b9db6fab-6532-4498-86d3-e788651eeb4d" ], + "Date": [ "Sun, 22 Jan 2023 12:50:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2043" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "61" ], + "x-ms-client-request-id": [ "b8b1346a-0e26-4a7b-9554-46a22d2ef1ed" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "143" ], + "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": [ "72228a42-60a2-49cc-98bf-0f22c2007917" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125024Z:72228a42-60a2-49cc-98bf-0f22c2007917" ], + "Date": [ "Sun, 22 Jan 2023 12:50:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2043" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "62" ], + "x-ms-client-request-id": [ "216196b4-f17a-46fe-9773-83d9d9aae874" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "142" ], + "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": [ "4f8ca13a-bac1-48e5-b150-ba88aa9fb8b6" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125030Z:4f8ca13a-bac1-48e5-b150-ba88aa9fb8b6" ], + "Date": [ "Sun, 22 Jan 2023 12:50:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2043" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "63" ], + "x-ms-client-request-id": [ "ebf67613-9b45-4fe3-b799-6bc880dd993f" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "141" ], + "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": [ "e034d085-fe43-4ea6-b8e6-d6128be1c20c" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125035Z:e034d085-fe43-4ea6-b8e6-d6128be1c20c" ], + "Date": [ "Sun, 22 Jan 2023 12:50:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2043" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "64" ], + "x-ms-client-request-id": [ "86c77781-22d0-4221-a096-f1e982d68d3e" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "140" ], + "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": [ "7a3fdf53-14a6-444f-85d9-c506c8704def" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125041Z:7a3fdf53-14a6-444f-85d9-c506c8704def" ], + "Date": [ "Sun, 22 Jan 2023 12:50:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2043" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "65" ], + "x-ms-client-request-id": [ "c4418aea-50fe-4171-8e94-d177d9a2c35f" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "139" ], + "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": [ "89774441-450d-459f-8799-7b878ae7a42b" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125046Z:89774441-450d-459f-8799-7b878ae7a42b" ], + "Date": [ "Sun, 22 Jan 2023 12:50:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2043" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "66" ], + "x-ms-client-request-id": [ "274910e6-4863-4e6a-afb5-07118a4c51b9" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "138" ], + "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": [ "630ca621-94b3-4bf3-8d43-f36db7f54c94" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125052Z:630ca621-94b3-4bf3-8d43-f36db7f54c94" ], + "Date": [ "Sun, 22 Jan 2023 12:50:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2043" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "67" ], + "x-ms-client-request-id": [ "e028b1bc-a9b8-4d72-83fe-e1a572e4d830" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "137" ], + "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": [ "0ea30ee9-19d6-496c-967f-e1a9c91de6ea" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125057Z:0ea30ee9-19d6-496c-967f-e1a9c91de6ea" ], + "Date": [ "Sun, 22 Jan 2023 12:50:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2043" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "68" ], + "x-ms-client-request-id": [ "9db50932-51c2-4e4a-adbb-c9745290f8dd" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "136" ], + "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": [ "70cce447-8d11-4b10-b5e0-bf95b37fb372" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125103Z:70cce447-8d11-4b10-b5e0-bf95b37fb372" ], + "Date": [ "Sun, 22 Jan 2023 12:51:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2043" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A44%3A25.356228Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-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/6a756809-6b80-42ea-83b3-338601395382?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "69" ], + "x-ms-client-request-id": [ "448d3653-ffc6-427e-af42-03c53d79aa5f" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "135" ], + "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": [ "fe5e8efa-60c7-410d-9d04-adfaa7534409" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125108Z:fe5e8efa-60c7-410d-9d04-adfaa7534409" ], + "Date": [ "Sun, 22 Jan 2023 12:51:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2314" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk\",\"policyName\":\"DiskPolicy1\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":\"OperationalTierStore\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A51%3A06.9184739Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:44:24.8653135Z\",\"endTime\":\"2023-01-22T12:51:06.4120964Z\",\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT6M41.5467829S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":{\"recoveryPointID\":\"cd680f0eeb7c40e5ab779e23e0159d4e\",\"recoveryPointTime\":\"0001-01-01T00:00:00Z\"},\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"Completed\",\"taskProgress\":null,\"additionalDetails\":{\"OriginalDatasourceSizeInBytes\":\"0\",\"TaskId\":\"03c5f110-b79b-4287-a53d-4ea9c28799ec\",\"DatasourceType\":\"Microsoft.Compute/disks\"}}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/6a756809-6b80-42ea-83b3-338601395382\",\"name\":\"6a756809-6b80-42ea-83b3-338601395382\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault?api-version=2022-12-01+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "70" ], + "x-ms-client-request-id": [ "75b1930a-26d7-477f-a826-27cc06ba800a" ], + "CommandName": [ "Get-AzDataProtectionBackupVault" ], + "FullCommandName": [ "Get-AzDataProtectionBackupVault_Get2" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "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-resource-requests": [ "498" ], + "x-ms-correlation-request-id": [ "548acaf7-7279-4dfd-b49b-d8ced78f7436" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125109Z:548acaf7-7279-4dfd-b49b-d8ced78f7436" ], + "Date": [ "Sun, 22 Jan 2023 12:51:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "691" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"location\":\"centraluseuap\",\"tags\":{\"MABUsed\":\"Yes\",\"Owner\":\"hiaga\",\"Purpose\":\"testing\",\"DeleteBy\":\"01-2099\"},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"74ad0080-cf50-42ae-a83a-7c5f1126cae2\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"GeoRedundant\"},{\"datastoreType\":\"ArchiveStore\",\"type\":\"GeoRedundant\"}],\"isVaultProtectedByResourceGuard\":false},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault\",\"name\":\"oss-pstest-vault\",\"type\":\"Microsoft.DataProtection/backupVaults\"}", + "isContentBase64": false + } + }, + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies?api-version=2022-12-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "71" ], + "x-ms-client-request-id": [ "97c1d8d2-a65d-4ebc-90c3-eba216c6a45b" ], + "CommandName": [ "Get-AzDataProtectionBackupPolicy" ], + "FullCommandName": [ "Get-AzDataProtectionBackupPolicy_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "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-resource-requests": [ "199" ], + "x-ms-correlation-request-id": [ "f8560722-d90d-4db1-bcef-4753e3fe84ed" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125110Z:f8560722-d90d-4db1-bcef-4753e3fe84ed" ], + "Date": [ "Sun, 22 Jan 2023 12:51:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2939" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-08-29T10:00:00+05:30/P1W\",\"R/2021-09-02T10:00:00+05:30/P1W\"],\"timeZone\":\"India Standard Time\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"name\":\"oss-pstest-policy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-09-19T05:30:00+00:00/P1W\"],\"timeZone\":\"UTC\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/newOssPol\",\"name\":\"newOssPol\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"}]}", + "isContentBase64": false + } + }, + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances?api-version=2022-12-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "72" ], + "x-ms-client-request-id": [ "8d7455d3-86e8-4ac2-9283-685eb9835f8b" ], + "CommandName": [ "Get-AzDataProtectionBackupInstance" ], + "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "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-resource-requests": [ "1999" ], + "x-ms-correlation-request-id": [ "041d3859-5b53-42f5-9750-c2101add7ac7" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125110Z:041d3859-5b53-42f5-9750-c2101add7ac7" ], + "Date": [ "Sun, 22 Jan 2023 12:51:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1942" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"tags\":{\"Owner\":\"hiaga\",\"MABUsed\":\"Yes\",\"DeleteBy\":\"06-2023\",\"Purpose\":\"Testing\"},\"properties\":{\"friendlyName\":\"oss-pstest-server\\\\postgres\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"resourceName\":\"postgres\",\"resourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"dataSourceSetInfo\":{\"resourceID\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"resourceName\":\"oss-pstest-server\",\"resourceType\":\"Microsoft.DBforPostgreSQL/servers\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"DatasourceSet\"},\"policyInfo\":{\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\"},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"datasourceAuthCredentials\":{\"objectType\":\"SecretStoreBasedAuthCredentials\",\"secretStoreResource\":{\"uri\":\"https://oss-pstest-keyvault.vault.azure.net/secrets/oss-pstest-secret\",\"secretStoreType\":\"AzureKeyVault\",\"value\":null}},\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"name\":\"oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"}]}", + "isContentBase64": false + } + }, + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$POST+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/backup?api-version=2022-12-01+4": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/backup?api-version=2022-12-01", + "Content": "{\r\n \"backupRuleOptions\": {\r\n \"triggerOption\": {\r\n \"retentionTagOverride\": \"Default\"\r\n },\r\n \"ruleName\": \"BackupWeekly\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "140" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzJkYzA5NWQ1LTAzODItNGFiNS05NTBiLTAyOWFiNWRiODQzMQ==?api-version=2022-12-01" ], + "Retry-After": [ "30" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzJkYzA5NWQ1LTAzODItNGFiNS05NTBiLTAyOWFiNWRiODQzMQ==?api-version=2022-12-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": [ "1199" ], + "x-ms-correlation-request-id": [ "bc5756db-289b-4959-884f-eb2d9f7a2041" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125111Z:bc5756db-289b-4959-884f-eb2d9f7a2041" ], + "Date": [ "Sun, 22 Jan 2023 12:51:10 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzJkYzA5NWQ1LTAzODItNGFiNS05NTBiLTAyOWFiNWRiODQzMQ==?api-version=2022-12-01+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzJkYzA5NWQ1LTAzODItNGFiNS05NTBiLTAyOWFiNWRiODQzMQ==?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "74" ], + "x-ms-client-request-id": [ "ccd3172c-bbaf-4127-80c3-f6b8e67d36f9" ], + "CommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc" ], + "FullCommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc_BackupExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ] + }, + "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-resource-requests": [ "999" ], + "x-ms-correlation-request-id": [ "b94d7370-a7cc-4427-9d5f-1c3721a968fc" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125142Z:b94d7370-a7cc-4427-9d5f-1c3721a968fc" ], + "Date": [ "Sun, 22 Jan 2023 12:51:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "737" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzJkYzA5NWQ1LTAzODItNGFiNS05NTBiLTAyOWFiNWRiODQzMQ==\",\"name\":\"ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzJkYzA5NWQ1LTAzODItNGFiNS05NTBiLTAyOWFiNWRiODQzMQ==\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-22T12:51:11.6203609Z\",\"endTime\":\"2023-01-22T12:51:13Z\",\"properties\":{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/d0bb588f-d000-4023-b05d-e1a6d94b4023\",\"objectType\":\"OperationJobExtendedInfo\"}}", + "isContentBase64": false + } + }, + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzJkYzA5NWQ1LTAzODItNGFiNS05NTBiLTAyOWFiNWRiODQzMQ==?api-version=2022-12-01+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzJkYzA5NWQ1LTAzODItNGFiNS05NTBiLTAyOWFiNWRiODQzMQ==?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "75" ], + "x-ms-client-request-id": [ "ccd3172c-bbaf-4127-80c3-f6b8e67d36f9" ], + "CommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc" ], + "FullCommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc_BackupExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Retry-After": [ "30" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzJkYzA5NWQ1LTAzODItNGFiNS05NTBiLTAyOWFiNWRiODQzMQ==?api-version=2022-12-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-resource-requests": [ "199" ], + "x-ms-correlation-request-id": [ "a462f6cd-479b-41d9-b9e8-083062ca270e" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125142Z:a462f6cd-479b-41d9-b9e8-083062ca270e" ], + "Date": [ "Sun, 22 Jan 2023 12:51:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "245" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/d0bb588f-d000-4023-b05d-e1a6d94b4023\",\"objectType\":\"OperationJobExtendedInfo\"}", + "isContentBase64": false + } + }, + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/d0bb588f-d000-4023-b05d-e1a6d94b4023?api-version=2022-12-01+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/d0bb588f-d000-4023-b05d-e1a6d94b4023?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "76" ], + "x-ms-client-request-id": [ "274256cb-1cc2-4e1e-926a-5c6a5fd095d8" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "199" ], + "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": [ "c8e8a874-55d7-4630-8051-39a9bda58337" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125153Z:c8e8a874-55d7-4630-8051-39a9bda58337" ], + "Date": [ "Sun, 22 Jan 2023 12:51:53 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2171" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"ccd3172c-bbaf-4127-80c3-f6b8e67d36f9\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A51%3A12.2314878Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:51:11.9249279Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/d0bb588f-d000-4023-b05d-e1a6d94b4023\",\"name\":\"d0bb588f-d000-4023-b05d-e1a6d94b4023\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/d0bb588f-d000-4023-b05d-e1a6d94b4023?api-version=2022-12-01+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/d0bb588f-d000-4023-b05d-e1a6d94b4023?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "77" ], + "x-ms-client-request-id": [ "f9812ad2-4f6c-437f-b3cf-599ce9be5c41" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "198" ], + "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": [ "685283f9-4197-453f-abac-f83c0363a07d" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125203Z:685283f9-4197-453f-abac-f83c0363a07d" ], + "Date": [ "Sun, 22 Jan 2023 12:52:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2171" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"ccd3172c-bbaf-4127-80c3-f6b8e67d36f9\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A51%3A12.2314878Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:51:11.9249279Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/d0bb588f-d000-4023-b05d-e1a6d94b4023\",\"name\":\"d0bb588f-d000-4023-b05d-e1a6d94b4023\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/d0bb588f-d000-4023-b05d-e1a6d94b4023?api-version=2022-12-01+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/d0bb588f-d000-4023-b05d-e1a6d94b4023?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "78" ], + "x-ms-client-request-id": [ "0d4082a0-5ae0-4ee2-b955-4600e422639c" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "197" ], + "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": [ "7e882d91-202c-43cf-86ca-7ac0112c8adc" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125214Z:7e882d91-202c-43cf-86ca-7ac0112c8adc" ], + "Date": [ "Sun, 22 Jan 2023 12:52:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2171" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"ccd3172c-bbaf-4127-80c3-f6b8e67d36f9\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A51%3A12.2314878Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:51:11.9249279Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/d0bb588f-d000-4023-b05d-e1a6d94b4023\",\"name\":\"d0bb588f-d000-4023-b05d-e1a6d94b4023\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/d0bb588f-d000-4023-b05d-e1a6d94b4023?api-version=2022-12-01+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/d0bb588f-d000-4023-b05d-e1a6d94b4023?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "79" ], + "x-ms-client-request-id": [ "117421cf-b8b6-451e-86e2-567cfbfe41b1" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "196" ], + "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": [ "5b491f87-3e6a-4f00-881c-6eeb0312b954" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125224Z:5b491f87-3e6a-4f00-881c-6eeb0312b954" ], + "Date": [ "Sun, 22 Jan 2023 12:52:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2171" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"ccd3172c-bbaf-4127-80c3-f6b8e67d36f9\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A51%3A12.2314878Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:51:11.9249279Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/d0bb588f-d000-4023-b05d-e1a6d94b4023\",\"name\":\"d0bb588f-d000-4023-b05d-e1a6d94b4023\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/d0bb588f-d000-4023-b05d-e1a6d94b4023?api-version=2022-12-01+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/d0bb588f-d000-4023-b05d-e1a6d94b4023?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "80" ], + "x-ms-client-request-id": [ "798c0280-2dfe-4636-b577-8ca29b314097" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "195" ], + "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": [ "5019cae7-061f-40d2-977f-2b6de55a4412" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125235Z:5019cae7-061f-40d2-977f-2b6de55a4412" ], + "Date": [ "Sun, 22 Jan 2023 12:52:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2171" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"ccd3172c-bbaf-4127-80c3-f6b8e67d36f9\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A51%3A12.2314878Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:51:11.9249279Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/d0bb588f-d000-4023-b05d-e1a6d94b4023\",\"name\":\"d0bb588f-d000-4023-b05d-e1a6d94b4023\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/d0bb588f-d000-4023-b05d-e1a6d94b4023?api-version=2022-12-01+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/d0bb588f-d000-4023-b05d-e1a6d94b4023?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "81" ], + "x-ms-client-request-id": [ "928e71dc-b56f-4744-bd6c-2da49ad5b2c3" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "194" ], + "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": [ "5c8a3c17-7834-4936-9c59-a137b1415c40" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125245Z:5c8a3c17-7834-4936-9c59-a137b1415c40" ], + "Date": [ "Sun, 22 Jan 2023 12:52:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2171" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"ccd3172c-bbaf-4127-80c3-f6b8e67d36f9\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A51%3A12.2314878Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:51:11.9249279Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/d0bb588f-d000-4023-b05d-e1a6d94b4023\",\"name\":\"d0bb588f-d000-4023-b05d-e1a6d94b4023\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false + } + }, + "Backup-AzDataProtectionBackupInstanceAdhoc+[NoContext]+OssBackup+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/d0bb588f-d000-4023-b05d-e1a6d94b4023?api-version=2022-12-01+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/d0bb588f-d000-4023-b05d-e1a6d94b4023?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "82" ], + "x-ms-client-request-id": [ "d3e4a08d-82d5-4e1e-90a9-2816e0a54e60" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "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-resource-requests": [ "193" ], + "x-ms-correlation-request-id": [ "a8b5c47d-dd2b-469f-b36c-e471b4453c12" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T125256Z:a8b5c47d-dd2b-469f-b36c-e471b4453c12" ], + "Date": [ "Sun, 22 Jan 2023 12:52:56 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2299" ], + "Content-Length": [ "2451" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"eade4c31-d566-4ae4-a5c8-18dca3d3887b\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A10%3A51.4038288Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:09:15.7774101Z\",\"endTime\":\"2022-06-29T14:10:51.1162834Z\",\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT1M35.3388733S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":{\"recoveryPointID\":\"72c35f6a76e34881b1f1966665133d88\",\"recoveryPointTime\":\"0001-01-01T00:00:00Z\"},\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"Completed\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/f06f11fb-e616-45ea-94f6-2b5e49cea66d\",\"name\":\"f06f11fb-e616-45ea-94f6-2b5e49cea66d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"ccd3172c-bbaf-4127-80c3-f6b8e67d36f9\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-22T12%3A52%3A50.4546485Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-22T12:51:11.9249279Z\",\"endTime\":\"2023-01-22T12:52:49.9674766Z\",\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT1M38.0425487S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":2063.0,\"targetRecoverPoint\":{\"recoveryPointID\":\"a6282c6481ac42c298866f52c25dbcfd\",\"recoveryPointTime\":\"0001-01-01T00:00:00Z\"},\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"Completed\",\"taskProgress\":null,\"additionalDetails\":{\"OriginalDatasourceSizeInBytes\":\"8802975\",\"TaskId\":\"ccd3172c-bbaf-4127-80c3-f6b8e67d36f9\",\"DatasourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\"}}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/d0bb588f-d000-4023-b05d-e1a6d94b4023\",\"name\":\"d0bb588f-d000-4023-b05d-e1a6d94b4023\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/DataProtection/test/DiskBackupScenario.Recording.json b/src/DataProtection/test/DiskBackupScenario.Recording.json index 78f8e1f21da1..7e66931435ef 100644 --- a/src/DataProtection/test/DiskBackupScenario.Recording.json +++ b/src/DataProtection/test/DiskBackupScenario.Recording.json @@ -1,16 +1,17 @@ { - "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=2022-05-01+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=2022-12-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=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "46" ], - "x-ms-client-request-id": [ "e6b38893-edca-4d99-b9b6-b0755dbce365" ], + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "3642d154-f9cc-4515-b9a0-12c64d8f8774" ], "CommandName": [ "Get-AzDataProtectionBackupVault" ], "FullCommandName": [ "Get-AzDataProtectionBackupVault_Get2" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -26,31 +27,33 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], - "x-ms-correlation-request-id": [ "30a5387d-ec34-49bf-b0ca-65fba276295b" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141055Z:30a5387d-ec34-49bf-b0ca-65fba276295b" ], - "Date": [ "Wed, 29 Jun 2022 14:10:55 GMT" ] + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "497" ], + "x-ms-correlation-request-id": [ "90bbe5d0-8653-45e9-8125-f1fb38e0a357" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103123Z:90bbe5d0-8653-45e9-8125-f1fb38e0a357" ], + "Date": [ "Mon, 23 Jan 2023 10:31:22 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "563" ], + "Content-Length": [ "639" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"location\":\"centraluseuap\",\"tags\":{\"A\":\"b\"},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"2ca1d5f7-38b3-4b61-aa45-8147d7e0edbc\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"LocallyRedundant\"}],\"isVaultProtectedByResourceGuard\":false},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.DataProtection/BackupVaults/sarath-vault\",\"name\":\"sarath-vault\",\"type\":\"Microsoft.DataProtection/backupVaults\"}" + "Content": "{\"location\":\"centraluseuap\",\"tags\":{\"A\":\"b\"},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"2ca1d5f7-38b3-4b61-aa45-8147d7e0edbc\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"LocallyRedundant\"}],\"isVaultProtectedByResourceGuard\":false,\"featureSettings\":{\"crossSubscriptionRestoreSettings\":{\"state\":\"Disabled\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.DataProtection/BackupVaults/sarath-vault\",\"name\":\"sarath-vault\",\"type\":\"Microsoft.DataProtection/backupVaults\"}", + "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=2022-05-01+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=2022-12-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=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "47" ], - "x-ms-client-request-id": [ "4d41250a-2388-4d75-9822-daa15cb81b1d" ], + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "4f4579b5-d27c-4db8-9fde-ff97d96ff575" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -66,31 +69,33 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "1998" ], - "x-ms-correlation-request-id": [ "2089b610-3641-4756-8db6-83379b865b59" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141100Z:2089b610-3641-4756-8db6-83379b865b59" ], - "Date": [ "Wed, 29 Jun 2022 14:10:59 GMT" ] + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "1999" ], + "x-ms-correlation-request-id": [ "76748291-cd83-43d3-bfcb-4aad5bda6d93" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103124Z:76748291-cd83-43d3-bfcb-4aad5bda6d93" ], + "Date": [ "Mon, 23 Jan 2023 10:31:23 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "20876" ], + "Content-Length": [ "23559" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"friendlyName\":\"7k0ccypod01otds1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blob-Backup/providers/Microsoft.Storage/storageAccounts/7k0ccypod01otds1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blob-Backup/providers/Microsoft.Storage/storageAccounts/7k0ccypod01otds1\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"7k0ccypod01otds1\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobpolicy\",\"policyVersion\":\"\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"\"}]}},\"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/7k0ccypod01otds1-7k0ccypod01otds1-520ff77c-75eb-4cd4-a0d2-ad4ebb32d097\",\"name\":\"7k0ccypod01otds1-7k0ccypod01otds1-520ff77c-75eb-4cd4-a0d2-ad4ebb32d097\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"clibugbashsa\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ABC/providers/Microsoft.Storage/storageAccounts/clibugbashsa\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"clibugbashsa\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobclipolicy\"},\"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/clibugbashsa-clibugbashsa-9349e670-c432-11eb-aefe-b0a4601328c8\",\"name\":\"clibugbashsa-clibugbashsa-9349e670-c432-11eb-aefe-b0a4601328c8\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"randomsa\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ABC/providers/Microsoft.Storage/storageAccounts/randomsa\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"randomsa\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"randomlocation\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobclipolicy\"},\"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\":\"6ef868a7-ce1a-4273-9e9d-7623d3b3f052-Ibz\"}}},\"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\":\"6ef868a7-ce1a-4273-9e9d-7623d3b3f052-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/randomsa-randomsa-1445b05b-c439-11eb-b183-c8f750f92764\",\"name\":\"randomsa-randomsa-1445b05b-c439-11eb-b183-c8f750f92764\",\"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\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"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\":\"temp3\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp3\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp3\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"b17f01a6-bc95-11eb-b3aa-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"b17f01a6-bc95-11eb-b3aa-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp3-temp3-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp3-temp3-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp2\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp2\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp2\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5119fb3a-1e8d-4c31-a4aa-94ec18b97039-Ibz\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5119fb3a-1e8d-4c31-a4aa-94ec18b97039-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp2-temp2-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp2-temp2-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp5\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp5\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp5\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"059c9281-bca3-11eb-b183-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"059c9281-bca3-11eb-b183-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp5-temp5-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp5-temp5-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"clitest\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/clitest\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"clitest\",\"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/DiskPSPolicy2\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionStopped\"},\"currentProtectionState\":\"ProtectionStopped\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/clitest-clitest-3165cfe7-a932-11eb-9d24-9cfce85d4fae\",\"name\":\"clitest-clitest-3165cfe7-a932-11eb-9d24-9cfce85d4fae\",\"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/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"name\":\"sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"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/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"name\":\"sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"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\":\"ProtectionStopped\"},\"currentProtectionState\":\"ProtectionStopped\",\"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\":\"temp4\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp4\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp4\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5f08710a-bc96-11eb-863b-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5f08710a-bc96-11eb-863b-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp4-temp4-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp4-temp4-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"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\"},\"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\"}]}" + "Content": "{\"value\":[{\"properties\":{\"friendlyName\":\"c12ccypod01otds1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/abhinitRG/providers/Microsoft.Storage/storageAccounts/c12ccypod01otds1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/abhinitRG/providers/Microsoft.Storage/storageAccounts/c12ccypod01otds1\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"c12ccypod01otds1\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"dataSourceSetInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/abhinitRG/providers/Microsoft.Storage/storageAccounts/c12ccypod01otds1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/abhinitRG/providers/Microsoft.Storage/storageAccounts/c12ccypod01otds1\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"c12ccypod01otds1\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"DatasourceSet\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobpolicy\",\"policyVersion\":\"\",\"policyParameters\":{\"backupDatasourceParametersList\":[{\"objectType\":\"BlobBackupDatasourceParameters\",\"containersList\":[]}]}},\"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/c12ccypod01otds1-c12ccypod01otds1-cecd7ec5-9695-484f-b1ff-76347ce94064\",\"name\":\"c12ccypod01otds1-c12ccypod01otds1-cecd7ec5-9695-484f-b1ff-76347ce94064\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"7k0ccypod01otds1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blob-Backup/providers/Microsoft.Storage/storageAccounts/7k0ccypod01otds1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blob-Backup/providers/Microsoft.Storage/storageAccounts/7k0ccypod01otds1\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"7k0ccypod01otds1\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobpolicy\",\"policyVersion\":\"\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"\"}]}},\"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/7k0ccypod01otds1-7k0ccypod01otds1-520ff77c-75eb-4cd4-a0d2-ad4ebb32d097\",\"name\":\"7k0ccypod01otds1-7k0ccypod01otds1-520ff77c-75eb-4cd4-a0d2-ad4ebb32d097\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"clibugbashsa\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ABC/providers/Microsoft.Storage/storageAccounts/clibugbashsa\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"clibugbashsa\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobclipolicy\"},\"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/clibugbashsa-clibugbashsa-9349e670-c432-11eb-aefe-b0a4601328c8\",\"name\":\"clibugbashsa-clibugbashsa-9349e670-c432-11eb-aefe-b0a4601328c8\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"randomsa\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ABC/providers/Microsoft.Storage/storageAccounts/randomsa\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"randomsa\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"randomlocation\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobclipolicy\"},\"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\":\"6ef868a7-ce1a-4273-9e9d-7623d3b3f052-Ibz\"}}},\"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\":\"6ef868a7-ce1a-4273-9e9d-7623d3b3f052-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/randomsa-randomsa-1445b05b-c439-11eb-b183-c8f750f92764\",\"name\":\"randomsa-randomsa-1445b05b-c439-11eb-b183-c8f750f92764\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp3\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp3\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp3\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"b17f01a6-bc95-11eb-b3aa-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"b17f01a6-bc95-11eb-b3aa-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp3-temp3-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp3-temp3-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp2\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp2\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp2\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5119fb3a-1e8d-4c31-a4aa-94ec18b97039-Ibz\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5119fb3a-1e8d-4c31-a4aa-94ec18b97039-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp2-temp2-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp2-temp2-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp5\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp5\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp5\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"059c9281-bca3-11eb-b183-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"059c9281-bca3-11eb-b183-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp5-temp5-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp5-temp5-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"clitest\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/clitest\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"clitest\",\"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/DiskPSPolicy2\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionStopped\"},\"currentProtectionState\":\"ProtectionStopped\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/clitest-clitest-3165cfe7-a932-11eb-9d24-9cfce85d4fae\",\"name\":\"clitest-clitest-3165cfe7-a932-11eb-9d24-9cfce85d4fae\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"sarath-restored-disk-1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarath-restored-disk-1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarath-restored-disk-1\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarath-restored-disk-1\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"dataSourceSetInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarath-restored-disk-1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarath-restored-disk-1\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarath-restored-disk-1\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"DatasourceSet\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyVersion\":\"\",\"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/sarath-restored-disk-1-sarath-restored-disk-1-cecd7ec5-9695-484f-b1ff-76347ce94087\",\"name\":\"sarath-restored-disk-1-sarath-restored-disk-1-cecd7ec5-9695-484f-b1ff-76347ce94087\",\"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/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"name\":\"sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"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/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"name\":\"sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"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\":\"ProtectionStopped\"},\"currentProtectionState\":\"ProtectionStopped\",\"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\":\"temp4\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp4\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp4\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5f08710a-bc96-11eb-863b-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5f08710a-bc96-11eb-863b-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp4-temp4-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp4-temp4-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"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\"},\"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\"}]}", + "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-44a7a483-3240-421c-a8a2-4468c10a4158?api-version=2022-05-01+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-44a7a483-3240-421c-a8a2-4468c10a4158?api-version=2022-12-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-44a7a483-3240-421c-a8a2-4468c10a4158?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "48" ], - "x-ms-client-request-id": [ "9894d0bb-820d-4e9e-a750-ee03e273aeb8" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "a4ff3f5b-136c-4e2d-b1fb-607e08988e7b" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -106,31 +111,33 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "1997" ], - "x-ms-correlation-request-id": [ "b2325b8a-1bb8-44d5-b9da-a7b95b16e319" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141101Z:b2325b8a-1bb8-44d5-b9da-a7b95b16e319" ], - "Date": [ "Wed, 29 Jun 2022 14:11:00 GMT" ] + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "1998" ], + "x-ms-correlation-request-id": [ "f841b7ee-cd8e-47f1-971a-1b986168c845" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103125Z:f841b7ee-cd8e-47f1-971a-1b986168c845" ], + "Date": [ "Mon, 23 Jan 2023 10:31:24 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1469" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"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/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"name\":\"sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"}" + "Content": "{\"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/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"name\":\"sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"}", + "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/backupPolicies?api-version=2022-05-01+4": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies?api-version=2022-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "49" ], - "x-ms-client-request-id": [ "d2baec67-45af-4638-a73a-ef9d5b473a71" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "2d9c94fc-73db-41ea-bc17-229c22e6015c" ], "CommandName": [ "Get-AzDataProtectionBackupPolicy" ], "FullCommandName": [ "Get-AzDataProtectionBackupPolicy_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -147,23 +154,25 @@ "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "199" ], - "x-ms-correlation-request-id": [ "4d712e4c-7317-49db-8055-048eb4c0d70e" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141101Z:4d712e4c-7317-49db-8055-048eb4c0d70e" ], - "Date": [ "Wed, 29 Jun 2022 14:11:00 GMT" ] + "x-ms-correlation-request-id": [ "8cc52582-a20a-4480-9416-23d97a0ba66b" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103126Z:8cc52582-a20a-4480-9416-23d97a0ba66b" ], + "Date": [ "Mon, 23 Jan 2023 10:31:25 GMT" ] }, "ContentHeaders": { "Content-Length": [ "26605" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2020-04-05T13:00:00+00:00/PT4H\"]},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupHourly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"name\":\"DiskPolicy1\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-02-24T11:06:42+05:30/P1D\"]},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true},{\"tagInfo\":{\"tagName\":\"Weekly\",\"id\":\"Weekly_\"},\"taggingPriority\":20,\"isDefault\":false,\"criteria\":[{\"absoluteCriteria\":[\"FirstOfWeek\"],\"objectType\":\"ScheduleBasedBackupCriteria\"}]}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupDaily\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P4W\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Weekly\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"name\":\"DiskDailyPolicy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2020-04-05T13:00:00+00:00/PT4H\"]},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupHourly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPSPolicy2\",\"name\":\"DiskPSPolicy2\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2020-04-05T13:00:00+00:00/PT4H\"]},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupHourly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/newdiskpolicy-vgxrh5mld6\",\"name\":\"newdiskpolicy-vgxrh5mld6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-05-13T08:55:25+00:00/PT4H\"],\"timeZone\":\"UTC\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Weekly\",\"id\":\"Weekly_\"},\"taggingPriority\":20,\"isDefault\":false,\"criteria\":[{\"absoluteCriteria\":[\"FirstOfWeek\"],\"objectType\":\"ScheduleBasedBackupCriteria\"}]},{\"tagInfo\":{\"tagName\":\"Daily\",\"id\":\"Daily_\"},\"taggingPriority\":25,\"isDefault\":false,\"criteria\":[{\"absoluteCriteria\":[\"FirstOfDay\"],\"objectType\":\"ScheduleBasedBackupCriteria\"}]},{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupHourly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P13W\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Weekly\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Daily\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/dcqqw\",\"name\":\"dcqqw\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P30D\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Storage/storageAccounts/blobServices\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobpolicy\",\"name\":\"blobpolicy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P30D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Storage/storageAccounts/blobServices\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/defaultblobpolicy\",\"name\":\"defaultblobpolicy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-08-13T14:30:00+00:00/P1D\"],\"timeZone\":\"UTC\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Weekly\",\"id\":\"Weekly_\"},\"taggingPriority\":20,\"isDefault\":false,\"criteria\":[{\"absoluteCriteria\":[\"FirstOfWeek\"],\"objectType\":\"ScheduleBasedBackupCriteria\"}]},{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupDaily\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P12W\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Weekly\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P10D\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/dwqdq\",\"name\":\"dwqdq\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P12D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Storage/storageAccounts/blobServices\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobclipolicy\",\"name\":\"blobclipolicy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-09-26T23:30:00+00:00/P1W\"],\"timeZone\":\"UTC\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/wdw\",\"name\":\"wdw\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-02-18T12:52:40+05:30/P1D\"]},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true},{\"tagInfo\":{\"tagName\":\"Weekly\",\"id\":\"Weekly_\"},\"taggingPriority\":20,\"isDefault\":false,\"criteria\":[{\"absoluteCriteria\":[\"FirstOfWeek\"],\"objectType\":\"ScheduleBasedBackupCriteria\"}]}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupDaily\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P8W\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Weekly\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/disktestpolicy123\",\"name\":\"disktestpolicy123\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P30D\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"},{\"backupParameters\":{\"backupType\":\"Discrete\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2022-05-13T17:00:00+00:00/P1D\"],\"timeZone\":\"UTC\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupDaily\",\"objectType\":\"AzureBackupRule\"}],\"datasourceTypes\":[\"Microsoft.Storage/storageAccounts/blobServices\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/oihioj\",\"name\":\"oihioj\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-11-14T13:00:00+00:00/P1W\"],\"timeZone\":\"UTC\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Monthly\",\"id\":\"Monthly_\"},\"taggingPriority\":15,\"isDefault\":false,\"criteria\":[{\"scheduleTimes\":[\"2021-11-14T13:00:00Z\"],\"daysOfMonth\":[],\"weeksOfTheMonth\":[\"First\"],\"daysOfTheWeek\":[\"Sunday\"],\"monthsOfYear\":[],\"objectType\":\"ScheduleBasedBackupCriteria\"}]},{\"tagInfo\":{\"tagName\":\"Weekly\",\"id\":\"Weekly_\"},\"taggingPriority\":20,\"isDefault\":false,\"criteria\":[{\"absoluteCriteria\":[\"FirstOfWeek\"],\"objectType\":\"ScheduleBasedBackupCriteria\"}]},{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Monthly\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P12W\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Weekly\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/fwfw\",\"name\":\"fwfw\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-09-13T05:23:18+00:00/PT4H\"],\"timeZone\":\"UTC\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Daily\",\"id\":\"Daily_\"},\"taggingPriority\":25,\"isDefault\":false,\"criteria\":[{\"absoluteCriteria\":[\"FirstOfDay\"],\"objectType\":\"ScheduleBasedBackupCriteria\"}]},{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupHourly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Daily\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/test\",\"name\":\"test\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-09-19T09:00:00+00:00/P1W\"],\"timeZone\":\"UTC\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/abc\",\"name\":\"abc\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2020-04-05T13:00:00+00:00/PT4H\"]},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupHourly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DisktestPolicy\",\"name\":\"DisktestPolicy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2020-04-05T13:00:00+00:00/PT4H\"]},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupHourly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/testpol\",\"name\":\"testpol\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2020-04-05T13:00:00+00:00/PT4H\"]},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true},{\"tagInfo\":{\"tagName\":\"Weekly\",\"id\":\"Weekly_\"},\"taggingPriority\":20,\"isDefault\":false,\"criteria\":[{\"absoluteCriteria\":[\"FirstOfWeek\"],\"objectType\":\"ScheduleBasedBackupCriteria\"}]}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupHourly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P12W\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Weekly\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/ejfbwfbw\",\"name\":\"ejfbwfbw\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2020-04-05T13:00:00+00:00/PT4H\"]},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true},{\"tagInfo\":{\"tagName\":\"Weekly\",\"id\":\"Weekly_\"},\"taggingPriority\":20,\"isDefault\":false,\"criteria\":[{\"absoluteCriteria\":[\"FirstOfWeek\"],\"objectType\":\"ScheduleBasedBackupCriteria\"}]},{\"tagInfo\":{\"tagName\":\"Daily\",\"id\":\"Daily_\"},\"taggingPriority\":25,\"isDefault\":false,\"criteria\":[{\"absoluteCriteria\":[\"FirstOfDay\"],\"objectType\":\"ScheduleBasedBackupCriteria\"}]}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupHourly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P16D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P17W\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Weekly\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P17D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Daily\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/clifullpolicy\",\"name\":\"clifullpolicy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-03-09T13:56:41+05:30/P1D\"]},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupDaily\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/hiagaPSPolicyDaily\",\"name\":\"hiagaPSPolicyDaily\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2020-04-05T13:00:00+00:00/PT4H\"]},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupHourly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/hiagaPSPolicy\",\"name\":\"hiagaPSPolicy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"}]}" + "Content": "{\"value\":[{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2020-04-05T13:00:00+00:00/PT4H\"]},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupHourly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"name\":\"DiskPolicy1\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-02-24T11:06:42+05:30/P1D\"]},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true},{\"tagInfo\":{\"tagName\":\"Weekly\",\"id\":\"Weekly_\"},\"taggingPriority\":20,\"isDefault\":false,\"criteria\":[{\"absoluteCriteria\":[\"FirstOfWeek\"],\"objectType\":\"ScheduleBasedBackupCriteria\"}]}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupDaily\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P4W\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Weekly\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"name\":\"DiskDailyPolicy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2020-04-05T13:00:00+00:00/PT4H\"]},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupHourly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPSPolicy2\",\"name\":\"DiskPSPolicy2\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2020-04-05T13:00:00+00:00/PT4H\"]},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupHourly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/newdiskpolicy-vgxrh5mld6\",\"name\":\"newdiskpolicy-vgxrh5mld6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-05-13T08:55:25+00:00/PT4H\"],\"timeZone\":\"UTC\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Weekly\",\"id\":\"Weekly_\"},\"taggingPriority\":20,\"isDefault\":false,\"criteria\":[{\"absoluteCriteria\":[\"FirstOfWeek\"],\"objectType\":\"ScheduleBasedBackupCriteria\"}]},{\"tagInfo\":{\"tagName\":\"Daily\",\"id\":\"Daily_\"},\"taggingPriority\":25,\"isDefault\":false,\"criteria\":[{\"absoluteCriteria\":[\"FirstOfDay\"],\"objectType\":\"ScheduleBasedBackupCriteria\"}]},{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupHourly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P13W\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Weekly\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Daily\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/dcqqw\",\"name\":\"dcqqw\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P30D\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Storage/storageAccounts/blobServices\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobpolicy\",\"name\":\"blobpolicy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P30D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Storage/storageAccounts/blobServices\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/defaultblobpolicy\",\"name\":\"defaultblobpolicy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-08-13T14:30:00+00:00/P1D\"],\"timeZone\":\"UTC\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Weekly\",\"id\":\"Weekly_\"},\"taggingPriority\":20,\"isDefault\":false,\"criteria\":[{\"absoluteCriteria\":[\"FirstOfWeek\"],\"objectType\":\"ScheduleBasedBackupCriteria\"}]},{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupDaily\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P12W\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Weekly\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P10D\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/dwqdq\",\"name\":\"dwqdq\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P12D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Storage/storageAccounts/blobServices\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobclipolicy\",\"name\":\"blobclipolicy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-09-26T23:30:00+00:00/P1W\"],\"timeZone\":\"UTC\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/wdw\",\"name\":\"wdw\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-02-18T12:52:40+05:30/P1D\"]},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true},{\"tagInfo\":{\"tagName\":\"Weekly\",\"id\":\"Weekly_\"},\"taggingPriority\":20,\"isDefault\":false,\"criteria\":[{\"absoluteCriteria\":[\"FirstOfWeek\"],\"objectType\":\"ScheduleBasedBackupCriteria\"}]}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupDaily\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P8W\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Weekly\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/disktestpolicy123\",\"name\":\"disktestpolicy123\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P30D\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"},{\"backupParameters\":{\"backupType\":\"Discrete\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2022-05-13T17:00:00+00:00/P1D\"],\"timeZone\":\"UTC\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupDaily\",\"objectType\":\"AzureBackupRule\"}],\"datasourceTypes\":[\"Microsoft.Storage/storageAccounts/blobServices\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/oihioj\",\"name\":\"oihioj\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-11-14T13:00:00+00:00/P1W\"],\"timeZone\":\"UTC\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Monthly\",\"id\":\"Monthly_\"},\"taggingPriority\":15,\"isDefault\":false,\"criteria\":[{\"scheduleTimes\":[\"2021-11-14T13:00:00Z\"],\"daysOfMonth\":[],\"weeksOfTheMonth\":[\"First\"],\"daysOfTheWeek\":[\"Sunday\"],\"monthsOfYear\":[],\"objectType\":\"ScheduleBasedBackupCriteria\"}]},{\"tagInfo\":{\"tagName\":\"Weekly\",\"id\":\"Weekly_\"},\"taggingPriority\":20,\"isDefault\":false,\"criteria\":[{\"absoluteCriteria\":[\"FirstOfWeek\"],\"objectType\":\"ScheduleBasedBackupCriteria\"}]},{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Monthly\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P12W\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Weekly\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/fwfw\",\"name\":\"fwfw\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-09-13T05:23:18+00:00/PT4H\"],\"timeZone\":\"UTC\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Daily\",\"id\":\"Daily_\"},\"taggingPriority\":25,\"isDefault\":false,\"criteria\":[{\"absoluteCriteria\":[\"FirstOfDay\"],\"objectType\":\"ScheduleBasedBackupCriteria\"}]},{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupHourly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Daily\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/test\",\"name\":\"test\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-09-19T09:00:00+00:00/P1W\"],\"timeZone\":\"UTC\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/abc\",\"name\":\"abc\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2020-04-05T13:00:00+00:00/PT4H\"]},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupHourly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DisktestPolicy\",\"name\":\"DisktestPolicy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2020-04-05T13:00:00+00:00/PT4H\"]},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupHourly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/testpol\",\"name\":\"testpol\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2020-04-05T13:00:00+00:00/PT4H\"]},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true},{\"tagInfo\":{\"tagName\":\"Weekly\",\"id\":\"Weekly_\"},\"taggingPriority\":20,\"isDefault\":false,\"criteria\":[{\"absoluteCriteria\":[\"FirstOfWeek\"],\"objectType\":\"ScheduleBasedBackupCriteria\"}]}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupHourly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P12W\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Weekly\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/ejfbwfbw\",\"name\":\"ejfbwfbw\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2020-04-05T13:00:00+00:00/PT4H\"]},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true},{\"tagInfo\":{\"tagName\":\"Weekly\",\"id\":\"Weekly_\"},\"taggingPriority\":20,\"isDefault\":false,\"criteria\":[{\"absoluteCriteria\":[\"FirstOfWeek\"],\"objectType\":\"ScheduleBasedBackupCriteria\"}]},{\"tagInfo\":{\"tagName\":\"Daily\",\"id\":\"Daily_\"},\"taggingPriority\":25,\"isDefault\":false,\"criteria\":[{\"absoluteCriteria\":[\"FirstOfDay\"],\"objectType\":\"ScheduleBasedBackupCriteria\"}]}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupHourly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P16D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P17W\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Weekly\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P17D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Daily\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/clifullpolicy\",\"name\":\"clifullpolicy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-03-09T13:56:41+05:30/P1D\"]},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupDaily\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/hiagaPSPolicyDaily\",\"name\":\"hiagaPSPolicyDaily\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2020-04-05T13:00:00+00:00/PT4H\"]},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupHourly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/hiagaPSPolicy\",\"name\":\"hiagaPSPolicy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"}]}", + "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-44a7a483-3240-421c-a8a2-4468c10a4158/backup?api-version=2022-05-01+5": { + "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-44a7a483-3240-421c-a8a2-4468c10a4158/backup?api-version=2022-12-01+5": { "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-44a7a483-3240-421c-a8a2-4468c10a4158/backup?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/backup?api-version=2022-12-01", "Content": "{\r\n \"backupRuleOptions\": {\r\n \"triggerOption\": {\r\n \"retentionTagOverride\": \"Default\"\r\n },\r\n \"ruleName\": \"BackupDaily\"\r\n }\r\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { @@ -176,38 +185,40 @@ "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/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzZkOGRjNTE3LTNiYzktNGJlNC1hNWVhLTNkYTY2N2ZmZDIyYQ==?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Y0NTZhZmQ2LTVhZjMtNGEzOS04ZWY5LTYwYThiYjAxMDJjYg==?api-version=2022-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzZkOGRjNTE3LTNiYzktNGJlNC1hNWVhLTNkYTY2N2ZmZDIyYQ==?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Y0NTZhZmQ2LTVhZjMtNGEzOS04ZWY5LTYwYThiYjAxMDJjYg==?api-version=2022-12-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": [ "1198" ], - "x-ms-correlation-request-id": [ "4febf904-c695-4a85-a9a0-def052b8cec9" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141102Z:4febf904-c695-4a85-a9a0-def052b8cec9" ], - "Date": [ "Wed, 29 Jun 2022 14:11:01 GMT" ] + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "x-ms-correlation-request-id": [ "9a3995f3-9c22-4ff4-9581-cdfe4a7f45e7" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103127Z:9a3995f3-9c22-4ff4-9581-cdfe4a7f45e7" ], + "Date": [ "Mon, 23 Jan 2023 10:31:26 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "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/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzZkOGRjNTE3LTNiYzktNGJlNC1hNWVhLTNkYTY2N2ZmZDIyYQ==?api-version=2022-05-01+6": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Y0NTZhZmQ2LTVhZjMtNGEzOS04ZWY5LTYwYThiYjAxMDJjYg==?api-version=2022-12-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/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzZkOGRjNTE3LTNiYzktNGJlNC1hNWVhLTNkYTY2N2ZmZDIyYQ==?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Y0NTZhZmQ2LTVhZjMtNGEzOS04ZWY5LTYwYThiYjAxMDJjYg==?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "51" ], - "x-ms-client-request-id": [ "2bf747f9-c38b-45de-8ac5-6802dee775a0" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "6ac1c279-4d5f-4e5f-8db1-3035f77018ff" ], "CommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc" ], "FullCommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc_BackupExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -222,32 +233,34 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "998" ], - "x-ms-correlation-request-id": [ "90932555-b6b9-478f-b778-e91708ef7262" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141132Z:90932555-b6b9-478f-b778-e91708ef7262" ], - "Date": [ "Wed, 29 Jun 2022 14:11:31 GMT" ] + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "999" ], + "x-ms-correlation-request-id": [ "482ebbe5-9ca9-4684-a1b0-2fea8371621a" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103158Z:482ebbe5-9ca9-4684-a1b0-2fea8371621a" ], + "Date": [ "Mon, 23 Jan 2023 10:31:58 GMT" ] }, "ContentHeaders": { "Content-Length": [ "721" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzZkOGRjNTE3LTNiYzktNGJlNC1hNWVhLTNkYTY2N2ZmZDIyYQ==\",\"name\":\"Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzZkOGRjNTE3LTNiYzktNGJlNC1hNWVhLTNkYTY2N2ZmZDIyYQ==\",\"status\":\"Succeeded\",\"startTime\":\"2022-06-29T14:11:01.9635561Z\",\"endTime\":\"2022-06-29T14:11:04Z\",\"properties\":{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.DataProtection/BackupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"objectType\":\"OperationJobExtendedInfo\"}}" + "Content": "{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Y0NTZhZmQ2LTVhZjMtNGEzOS04ZWY5LTYwYThiYjAxMDJjYg==\",\"name\":\"Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Y0NTZhZmQ2LTVhZjMtNGEzOS04ZWY5LTYwYThiYjAxMDJjYg==\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-23T10:31:27.0647846Z\",\"endTime\":\"2023-01-23T10:31:29Z\",\"properties\":{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.DataProtection/BackupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"objectType\":\"OperationJobExtendedInfo\"}}", + "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzZkOGRjNTE3LTNiYzktNGJlNC1hNWVhLTNkYTY2N2ZmZDIyYQ==?api-version=2022-05-01+7": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Y0NTZhZmQ2LTVhZjMtNGEzOS04ZWY5LTYwYThiYjAxMDJjYg==?api-version=2022-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzZkOGRjNTE3LTNiYzktNGJlNC1hNWVhLTNkYTY2N2ZmZDIyYQ==?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Y0NTZhZmQ2LTVhZjMtNGEzOS04ZWY5LTYwYThiYjAxMDJjYg==?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "52" ], - "x-ms-client-request-id": [ "2bf747f9-c38b-45de-8ac5-6802dee775a0" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "6ac1c279-4d5f-4e5f-8db1-3035f77018ff" ], "CommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc" ], "FullCommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc_BackupExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -258,37 +271,39 @@ "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/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzZkOGRjNTE3LTNiYzktNGJlNC1hNWVhLTNkYTY2N2ZmZDIyYQ==?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Y0NTZhZmQ2LTVhZjMtNGEzOS04ZWY5LTYwYThiYjAxMDJjYg==?api-version=2022-12-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-resource-requests": [ "198" ], - "x-ms-correlation-request-id": [ "977ae5bc-8dc5-4ea3-ac58-5447dedb03f3" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141132Z:977ae5bc-8dc5-4ea3-ac58-5447dedb03f3" ], - "Date": [ "Wed, 29 Jun 2022 14:11:31 GMT" ] + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "199" ], + "x-ms-correlation-request-id": [ "089c3cbc-ad6c-4829-b90a-5f1b07f6046a" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103158Z:089c3cbc-ad6c-4829-b90a-5f1b07f6046a" ], + "Date": [ "Mon, 23 Jan 2023 10:31:58 GMT" ] }, "ContentHeaders": { "Content-Length": [ "237" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.DataProtection/BackupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"objectType\":\"OperationJobExtendedInfo\"}" + "Content": "{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.DataProtection/BackupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"objectType\":\"OperationJobExtendedInfo\"}", + "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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "53" ], - "x-ms-client-request-id": [ "6a03c421-6931-46be-9751-1bbe8c4f13fd" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "43bf7dbe-bb1e-43e9-88d3-a2d5a5aee8cd" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -299,36 +314,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "170" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "198" ], "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": [ "e133a038-57ba-487b-a7f1-abae70de6869" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141137Z:e133a038-57ba-487b-a7f1-abae70de6869" ], - "Date": [ "Wed, 29 Jun 2022 14:11:36 GMT" ] + "x-ms-correlation-request-id": [ "776dec6c-8ac2-44ea-a473-4e7288124ed3" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103204Z:776dec6c-8ac2-44ea-a473-4e7288124ed3" ], + "Date": [ "Mon, 23 Jan 2023 10:32:04 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2bf747f9-c38b-45de-8ac5-6802dee775a0\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A11%3A02.9021152Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:11:02.4267505Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"name\":\"0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "54" ], - "x-ms-client-request-id": [ "d4d3ed55-5ec7-425a-b17f-a483371a4408" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "87f095b9-c43c-47f8-bbab-8f90828b85a0" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -339,36 +356,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "169" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "197" ], "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": [ "e6235e42-cd00-4a6f-8820-09bf50e9c1c8" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141143Z:e6235e42-cd00-4a6f-8820-09bf50e9c1c8" ], - "Date": [ "Wed, 29 Jun 2022 14:11:43 GMT" ] + "x-ms-correlation-request-id": [ "ba5d932e-1467-41f3-bd19-ca58292f0873" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103210Z:ba5d932e-1467-41f3-bd19-ca58292f0873" ], + "Date": [ "Mon, 23 Jan 2023 10:32:09 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2bf747f9-c38b-45de-8ac5-6802dee775a0\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A11%3A02.9021152Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:11:02.4267505Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"name\":\"0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "55" ], - "x-ms-client-request-id": [ "f58e2815-b476-4da5-a634-72e75e92fe28" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "b61fc8b0-21da-4a95-acfd-34b2687a321a" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -379,36 +398,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "168" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "196" ], "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": [ "5bf6fa94-5fbb-4fd5-babe-1b9d0f9380ee" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141148Z:5bf6fa94-5fbb-4fd5-babe-1b9d0f9380ee" ], - "Date": [ "Wed, 29 Jun 2022 14:11:48 GMT" ] + "x-ms-correlation-request-id": [ "65b3c1e9-ee90-4e86-81e1-3e20f1fa266c" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103216Z:65b3c1e9-ee90-4e86-81e1-3e20f1fa266c" ], + "Date": [ "Mon, 23 Jan 2023 10:32:15 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2bf747f9-c38b-45de-8ac5-6802dee775a0\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A11%3A02.9021152Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:11:02.4267505Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"name\":\"0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "56" ], - "x-ms-client-request-id": [ "64abce96-51d2-4fba-bffe-19d2790a7e22" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "fb4249c4-b5b9-45a1-8a71-e279d1e3a6fb" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -419,36 +440,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "167" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "195" ], "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": [ "009552ec-7835-4e96-8c99-9eca97c6d48e" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141153Z:009552ec-7835-4e96-8c99-9eca97c6d48e" ], - "Date": [ "Wed, 29 Jun 2022 14:11:53 GMT" ] + "x-ms-correlation-request-id": [ "39b87932-262a-4666-a031-aae79c6e1ec0" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103221Z:39b87932-262a-4666-a031-aae79c6e1ec0" ], + "Date": [ "Mon, 23 Jan 2023 10:32:21 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2bf747f9-c38b-45de-8ac5-6802dee775a0\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A11%3A02.9021152Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:11:02.4267505Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"name\":\"0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "57" ], - "x-ms-client-request-id": [ "28b82a58-6a34-46a9-b488-8217fd666eee" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "8ac93b9f-ce1b-4724-a1bf-f7385da5c00c" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -459,36 +482,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "166" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "194" ], "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": [ "713b01a1-64f6-4eea-bb0f-c3de34b45738" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141204Z:713b01a1-64f6-4eea-bb0f-c3de34b45738" ], - "Date": [ "Wed, 29 Jun 2022 14:12:03 GMT" ] + "x-ms-correlation-request-id": [ "c758a754-c0a4-44c5-8d79-e4379b96188d" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103227Z:c758a754-c0a4-44c5-8d79-e4379b96188d" ], + "Date": [ "Mon, 23 Jan 2023 10:32:26 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2bf747f9-c38b-45de-8ac5-6802dee775a0\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A11%3A02.9021152Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:11:02.4267505Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"name\":\"0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "58" ], - "x-ms-client-request-id": [ "a41e98e1-f345-44e5-9976-ddbe81d4920b" ], + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "e6fc2287-7b8a-4401-87ca-24272baf1e4c" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -499,36 +524,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "165" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "193" ], "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": [ "b9cabd38-afb2-40e2-acdc-35fe3adcfd97" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141209Z:b9cabd38-afb2-40e2-acdc-35fe3adcfd97" ], - "Date": [ "Wed, 29 Jun 2022 14:12:09 GMT" ] + "x-ms-correlation-request-id": [ "ac42cfd7-c589-4366-8773-4d97e05175c4" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103233Z:ac42cfd7-c589-4366-8773-4d97e05175c4" ], + "Date": [ "Mon, 23 Jan 2023 10:32:32 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2bf747f9-c38b-45de-8ac5-6802dee775a0\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A11%3A02.9021152Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:11:02.4267505Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"name\":\"0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "59" ], - "x-ms-client-request-id": [ "83c3a6c0-022c-452c-8b5e-2ee76a99b31a" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "63623c46-f870-4fcc-a9e0-89f29140b285" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -539,36 +566,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "164" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "192" ], "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": [ "313dcbfe-aeb7-4c60-8afc-3ac1a295a146" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141214Z:313dcbfe-aeb7-4c60-8afc-3ac1a295a146" ], - "Date": [ "Wed, 29 Jun 2022 14:12:14 GMT" ] + "x-ms-correlation-request-id": [ "d68606f6-221d-4fdd-9106-5f67cb614e6a" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103239Z:d68606f6-221d-4fdd-9106-5f67cb614e6a" ], + "Date": [ "Mon, 23 Jan 2023 10:32:38 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2bf747f9-c38b-45de-8ac5-6802dee775a0\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A11%3A02.9021152Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:11:02.4267505Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"name\":\"0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "60" ], - "x-ms-client-request-id": [ "e6f96321-7aec-4c90-a804-6f93444d1c25" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "ff8844c1-a09d-4870-b919-ee72e17bfa22" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -579,36 +608,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "163" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "191" ], "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": [ "78b463ff-0c49-4813-8e51-30af2cb6e75a" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141220Z:78b463ff-0c49-4813-8e51-30af2cb6e75a" ], - "Date": [ "Wed, 29 Jun 2022 14:12:19 GMT" ] + "x-ms-correlation-request-id": [ "1acb5eb5-780e-4797-838b-992b9521f4e2" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103245Z:1acb5eb5-780e-4797-838b-992b9521f4e2" ], + "Date": [ "Mon, 23 Jan 2023 10:32:44 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2bf747f9-c38b-45de-8ac5-6802dee775a0\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A11%3A02.9021152Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:11:02.4267505Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"name\":\"0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "61" ], - "x-ms-client-request-id": [ "0bcfe337-a774-4e2b-bcc2-e9330b083965" ], + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "69871002-9f52-435b-9a1d-39551362b4ec" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -619,36 +650,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "162" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "190" ], "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": [ "05540eae-2ff1-4b92-a766-3b4fef541ff4" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141231Z:05540eae-2ff1-4b92-a766-3b4fef541ff4" ], - "Date": [ "Wed, 29 Jun 2022 14:12:31 GMT" ] + "x-ms-correlation-request-id": [ "c64669f3-d9da-4877-abe4-086be088dabf" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103250Z:c64669f3-d9da-4877-abe4-086be088dabf" ], + "Date": [ "Mon, 23 Jan 2023 10:32:50 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2bf747f9-c38b-45de-8ac5-6802dee775a0\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A11%3A02.9021152Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:11:02.4267505Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"name\":\"0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "62" ], - "x-ms-client-request-id": [ "f2e64368-37c1-4b6b-ae67-f964c1c8dbf6" ], + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "b5aa1bcf-a21c-45b8-93d0-e5ccf81b4a72" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -659,36 +692,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "161" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "189" ], "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": [ "d07a5ebf-b130-4e27-a113-893953aa8d34" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141244Z:d07a5ebf-b130-4e27-a113-893953aa8d34" ], - "Date": [ "Wed, 29 Jun 2022 14:12:43 GMT" ] + "x-ms-correlation-request-id": [ "952a8939-6ca0-49af-a6ad-739e330a3600" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103256Z:952a8939-6ca0-49af-a6ad-739e330a3600" ], + "Date": [ "Mon, 23 Jan 2023 10:32:56 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2bf747f9-c38b-45de-8ac5-6802dee775a0\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A11%3A02.9021152Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:11:02.4267505Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"name\":\"0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "63" ], - "x-ms-client-request-id": [ "f13ca26e-868b-4688-b52c-252abb0ebae8" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "f6b7c2f1-d3a0-4e3d-a73b-0b4adf3005e1" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -699,36 +734,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "160" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "188" ], "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": [ "2bf5c8ea-7bd5-4a0a-856f-cbedfafddc24" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141257Z:2bf5c8ea-7bd5-4a0a-856f-cbedfafddc24" ], - "Date": [ "Wed, 29 Jun 2022 14:12:56 GMT" ] + "x-ms-correlation-request-id": [ "869864c7-df2b-4de0-91fb-d3c0fc4e1c8f" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103302Z:869864c7-df2b-4de0-91fb-d3c0fc4e1c8f" ], + "Date": [ "Mon, 23 Jan 2023 10:33:02 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2bf747f9-c38b-45de-8ac5-6802dee775a0\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A11%3A02.9021152Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:11:02.4267505Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"name\":\"0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "64" ], - "x-ms-client-request-id": [ "34256cb5-70fb-4735-9e64-b02e22a7608b" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "79f61614-ce1b-41e5-8085-7ae5e2ff21b9" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -739,36 +776,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "159" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "187" ], "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": [ "cce48055-29d6-483a-84c9-3d912e3b73b4" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141302Z:cce48055-29d6-483a-84c9-3d912e3b73b4" ], - "Date": [ "Wed, 29 Jun 2022 14:13:01 GMT" ] + "x-ms-correlation-request-id": [ "ad1e3bcb-3b35-46aa-becf-42a0bc7e89ce" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103308Z:ad1e3bcb-3b35-46aa-becf-42a0bc7e89ce" ], + "Date": [ "Mon, 23 Jan 2023 10:33:07 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2bf747f9-c38b-45de-8ac5-6802dee775a0\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A11%3A02.9021152Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:11:02.4267505Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"name\":\"0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "65" ], - "x-ms-client-request-id": [ "9cc681d5-af4c-4fb0-b881-f3e95c861ddc" ], + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "aa751b2c-0515-4b15-a480-a4d37fe14a60" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -779,36 +818,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "158" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "186" ], "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": [ "d200c0ef-1069-405e-a1c0-b7d512bf679b" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141307Z:d200c0ef-1069-405e-a1c0-b7d512bf679b" ], - "Date": [ "Wed, 29 Jun 2022 14:13:07 GMT" ] + "x-ms-correlation-request-id": [ "d0492d9b-3ecd-4ef7-9c7b-702b2402cb87" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103315Z:d0492d9b-3ecd-4ef7-9c7b-702b2402cb87" ], + "Date": [ "Mon, 23 Jan 2023 10:33:14 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2bf747f9-c38b-45de-8ac5-6802dee775a0\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A11%3A02.9021152Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:11:02.4267505Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"name\":\"0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "66" ], - "x-ms-client-request-id": [ "f86fbb5f-513c-4ee3-ba79-3e2a4476b35a" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "cd604c0e-3c55-4606-b550-7cd7a9451031" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -819,36 +860,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "157" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "185" ], "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": [ "fa0a905d-4931-4ea3-94f1-dd340720b35f" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141313Z:fa0a905d-4931-4ea3-94f1-dd340720b35f" ], - "Date": [ "Wed, 29 Jun 2022 14:13:12 GMT" ] + "x-ms-correlation-request-id": [ "595bb22b-bcf3-4578-aaa5-19d9bd758570" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103321Z:595bb22b-bcf3-4578-aaa5-19d9bd758570" ], + "Date": [ "Mon, 23 Jan 2023 10:33:20 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2bf747f9-c38b-45de-8ac5-6802dee775a0\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A11%3A02.9021152Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:11:02.4267505Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"name\":\"0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "67" ], - "x-ms-client-request-id": [ "920b3255-d717-4e86-8a6c-77d7e15bbc84" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "555c74a9-f5cd-44b6-8994-16707e321b5b" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -859,36 +902,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "156" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "184" ], "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": [ "32205001-e7cc-4f4d-a55d-3b2a1e069519" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141318Z:32205001-e7cc-4f4d-a55d-3b2a1e069519" ], - "Date": [ "Wed, 29 Jun 2022 14:13:17 GMT" ] + "x-ms-correlation-request-id": [ "cdfc6ded-398a-47e5-8f3b-f58afaeb22cb" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103328Z:cdfc6ded-398a-47e5-8f3b-f58afaeb22cb" ], + "Date": [ "Mon, 23 Jan 2023 10:33:27 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2bf747f9-c38b-45de-8ac5-6802dee775a0\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A11%3A02.9021152Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:11:02.4267505Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"name\":\"0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "68" ], - "x-ms-client-request-id": [ "1009075e-64f5-44d0-89cf-55604c21d364" ], + "x-ms-unique-id": [ "23" ], + "x-ms-client-request-id": [ "f7b3539e-b63b-4e0a-88ca-fec997fb01fb" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -899,36 +944,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "155" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "183" ], "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": [ "8801288c-e6c1-4316-a4cf-de7e3519ce53" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141325Z:8801288c-e6c1-4316-a4cf-de7e3519ce53" ], - "Date": [ "Wed, 29 Jun 2022 14:13:24 GMT" ] + "x-ms-correlation-request-id": [ "8cc390de-c801-4950-91fd-6c967d410e11" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103333Z:8cc390de-c801-4950-91fd-6c967d410e11" ], + "Date": [ "Mon, 23 Jan 2023 10:33:33 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2bf747f9-c38b-45de-8ac5-6802dee775a0\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A11%3A02.9021152Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:11:02.4267505Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"name\":\"0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "69" ], - "x-ms-client-request-id": [ "0a65860f-4e7e-4888-8df0-4eb8906fd8e5" ], + "x-ms-unique-id": [ "24" ], + "x-ms-client-request-id": [ "d50cd333-83fa-47a8-8657-2114dafb83c5" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -939,36 +986,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "154" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "182" ], "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": [ "6b40943c-9f0d-49fa-bfcf-d1bc1032283b" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141330Z:6b40943c-9f0d-49fa-bfcf-d1bc1032283b" ], - "Date": [ "Wed, 29 Jun 2022 14:13:29 GMT" ] + "x-ms-correlation-request-id": [ "02429df4-fff6-4091-a8ba-e68e1bf6583b" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103339Z:02429df4-fff6-4091-a8ba-e68e1bf6583b" ], + "Date": [ "Mon, 23 Jan 2023 10:33:38 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2bf747f9-c38b-45de-8ac5-6802dee775a0\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A11%3A02.9021152Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:11:02.4267505Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"name\":\"0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "70" ], - "x-ms-client-request-id": [ "9afa63ce-51d4-42df-9b10-ed06a1f563ce" ], + "x-ms-unique-id": [ "25" ], + "x-ms-client-request-id": [ "2a21d31a-1a61-4ec3-9b87-99a4adeb2b1a" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -979,36 +1028,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "153" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "181" ], "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": [ "6f310666-59eb-4b76-80c0-af4c1113e7bd" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141336Z:6f310666-59eb-4b76-80c0-af4c1113e7bd" ], - "Date": [ "Wed, 29 Jun 2022 14:13:35 GMT" ] + "x-ms-correlation-request-id": [ "98713f1c-19b9-4a65-915e-0f546d4a3360" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103345Z:98713f1c-19b9-4a65-915e-0f546d4a3360" ], + "Date": [ "Mon, 23 Jan 2023 10:33:44 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2bf747f9-c38b-45de-8ac5-6802dee775a0\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A11%3A02.9021152Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:11:02.4267505Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"name\":\"0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "71" ], - "x-ms-client-request-id": [ "1acae876-b308-41b2-97c5-a8d436b6ce48" ], + "x-ms-unique-id": [ "26" ], + "x-ms-client-request-id": [ "2d191fb3-60a1-4591-8c84-7b9e5c7e5f03" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1019,36 +1070,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "152" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "180" ], "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": [ "f50c7289-a806-411c-ad96-56f7264003b6" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141341Z:f50c7289-a806-411c-ad96-56f7264003b6" ], - "Date": [ "Wed, 29 Jun 2022 14:13:40 GMT" ] + "x-ms-correlation-request-id": [ "eb81340f-8ec5-4be7-b331-917ab82a2cd0" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103350Z:eb81340f-8ec5-4be7-b331-917ab82a2cd0" ], + "Date": [ "Mon, 23 Jan 2023 10:33:50 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2bf747f9-c38b-45de-8ac5-6802dee775a0\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A11%3A02.9021152Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:11:02.4267505Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"name\":\"0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "72" ], - "x-ms-client-request-id": [ "b51791ba-9508-42b1-8e59-24d2f2f30890" ], + "x-ms-unique-id": [ "27" ], + "x-ms-client-request-id": [ "5bc15268-0365-40ba-a277-60852dae98ef" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1059,36 +1112,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "151" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "179" ], "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": [ "2cd00ca4-1d2f-4946-bb8c-51a96fab2239" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141346Z:2cd00ca4-1d2f-4946-bb8c-51a96fab2239" ], - "Date": [ "Wed, 29 Jun 2022 14:13:45 GMT" ] + "x-ms-correlation-request-id": [ "65cd062f-8e0e-4808-b2e9-e6f2f43cc2e3" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103356Z:65cd062f-8e0e-4808-b2e9-e6f2f43cc2e3" ], + "Date": [ "Mon, 23 Jan 2023 10:33:55 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2bf747f9-c38b-45de-8ac5-6802dee775a0\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A11%3A02.9021152Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:11:02.4267505Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"name\":\"0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "73" ], - "x-ms-client-request-id": [ "3214d145-c2a2-48e7-b24a-c5c8ff693340" ], + "x-ms-unique-id": [ "28" ], + "x-ms-client-request-id": [ "c9f85878-9678-430c-ac3a-24b250fb3e0a" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1099,36 +1154,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "150" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "178" ], "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": [ "22d7a21e-584c-44e7-b0d6-c55501b7d63f" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141351Z:22d7a21e-584c-44e7-b0d6-c55501b7d63f" ], - "Date": [ "Wed, 29 Jun 2022 14:13:51 GMT" ] + "x-ms-correlation-request-id": [ "b2348099-28a1-474d-b00f-fd6ea3bc01fd" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103402Z:b2348099-28a1-474d-b00f-fd6ea3bc01fd" ], + "Date": [ "Mon, 23 Jan 2023 10:34:01 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2bf747f9-c38b-45de-8ac5-6802dee775a0\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A11%3A02.9021152Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:11:02.4267505Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"name\":\"0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "74" ], - "x-ms-client-request-id": [ "6fa72747-90a8-4299-b54a-d366e3b998f1" ], + "x-ms-unique-id": [ "29" ], + "x-ms-client-request-id": [ "76d66944-12c6-4db6-b0ba-802d1730cf7d" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1139,36 +1196,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "149" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "177" ], "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": [ "bb66506d-94cf-4a11-831c-51520aa23a63" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141357Z:bb66506d-94cf-4a11-831c-51520aa23a63" ], - "Date": [ "Wed, 29 Jun 2022 14:13:56 GMT" ] + "x-ms-correlation-request-id": [ "8bc692b7-dac9-4e06-88ed-156ee5eb1f66" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103408Z:8bc692b7-dac9-4e06-88ed-156ee5eb1f66" ], + "Date": [ "Mon, 23 Jan 2023 10:34:08 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2bf747f9-c38b-45de-8ac5-6802dee775a0\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A11%3A02.9021152Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:11:02.4267505Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"name\":\"0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "75" ], - "x-ms-client-request-id": [ "a2b0eb77-cdfc-4da3-a135-8f495ec1275d" ], + "x-ms-unique-id": [ "30" ], + "x-ms-client-request-id": [ "0e20e43e-e646-4014-a83d-140fb4491425" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1179,36 +1238,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "148" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "176" ], "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": [ "6486df1f-bef0-482a-a163-b078896711de" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141402Z:6486df1f-bef0-482a-a163-b078896711de" ], - "Date": [ "Wed, 29 Jun 2022 14:14:01 GMT" ] + "x-ms-correlation-request-id": [ "46365bbd-081f-4110-ad11-24dafaf1b661" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103414Z:46365bbd-081f-4110-ad11-24dafaf1b661" ], + "Date": [ "Mon, 23 Jan 2023 10:34:13 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2bf747f9-c38b-45de-8ac5-6802dee775a0\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A11%3A02.9021152Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:11:02.4267505Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"name\":\"0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "76" ], - "x-ms-client-request-id": [ "0094790a-1016-4f72-92db-a72247371061" ], + "x-ms-unique-id": [ "31" ], + "x-ms-client-request-id": [ "fa6ffd2c-f371-4a99-9fbc-08c3b378674b" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1219,36 +1280,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "147" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "175" ], "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": [ "2557b9c2-4960-4c2a-bac4-f943a49f17d2" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141407Z:2557b9c2-4960-4c2a-bac4-f943a49f17d2" ], - "Date": [ "Wed, 29 Jun 2022 14:14:06 GMT" ] + "x-ms-correlation-request-id": [ "deaebd05-2248-41b7-8d12-1fe4c6e9daaf" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103419Z:deaebd05-2248-41b7-8d12-1fe4c6e9daaf" ], + "Date": [ "Mon, 23 Jan 2023 10:34:19 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2bf747f9-c38b-45de-8ac5-6802dee775a0\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A11%3A02.9021152Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:11:02.4267505Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"name\":\"0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/0e8ae8e9-a2e5-447a-a011-7a4301315af4?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "77" ], - "x-ms-client-request-id": [ "5046f278-9bac-46be-9ed7-47b5b866465f" ], + "x-ms-unique-id": [ "32" ], + "x-ms-client-request-id": [ "1523b179-7bdc-4aaf-b6a3-6701d8261754" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1259,36 +1322,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "146" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "174" ], "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": [ "a3dca6e8-9ac0-4918-879c-a9d3238a68b6" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141413Z:a3dca6e8-9ac0-4918-879c-a9d3238a68b6" ], - "Date": [ "Wed, 29 Jun 2022 14:14:13 GMT" ] + "x-ms-correlation-request-id": [ "e093378f-fcda-4104-8c14-b4d3a36ede58" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103425Z:e093378f-fcda-4104-8c14-b4d3a36ede58" ], + "Date": [ "Mon, 23 Jan 2023 10:34:25 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2201" ], + "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"2bf747f9-c38b-45de-8ac5-6802dee775a0\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":\"OperationalTierStore\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A07.970434Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:11:02.4267505Z\",\"endTime\":\"2022-06-29T14:14:07.6355611Z\",\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT3M5.2088106S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":{\"recoveryPointID\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"0001-01-01T00:00:00Z\"},\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"Completed\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"name\":\"0e8ae8e9-a2e5-447a-a011-7a4301315af4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "78" ], - "x-ms-client-request-id": [ "b2615cf5-f40c-469d-be50-d08ff14fe70b" ], - "CommandName": [ "Az.DataProtection.internal\\Get-AzDataProtectionRecoveryPoint" ], - "FullCommandName": [ "Get-AzDataProtectionRecoveryPoint_List" ], + "x-ms-unique-id": [ "33" ], + "x-ms-client-request-id": [ "67242c27-cb7f-4ad7-aa1f-be4f423b5152" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1299,73 +1364,123 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "173" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], "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-resource-requests": [ "99" ], - "x-ms-correlation-request-id": [ "7db50da9-ab50-40e6-9835-e10d26ff8e62" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141413Z:7db50da9-ab50-40e6-9835-e10d26ff8e62" ], - "Date": [ "Wed, 29 Jun 2022 14:14:13 GMT" ] + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "f7b94671-cd8b-4687-b7b8-08d41d6e9ff3" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103431Z:f7b94671-cd8b-4687-b7b8-08d41d6e9ff3" ], + "Date": [ "Mon, 23 Jan 2023 10:34:31 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "11784" ], + "Content-Length": [ "2057" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"b03d3a6a-27c4-4dce-bb9b-ed4976ce50bf\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2022-06-29T14:13:10.4222924Z\",\"expiryTime\":null,\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637515737724672720\",\"policyName\":\"DiskDailyPolicy\",\"policyVersion\":null},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints/51e7c02ea3854cb083c086196c5c2251\",\"name\":\"51e7c02ea3854cb083c086196c5c2251\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"f1800cdba99949179cb20a7e2534678b\",\"recoveryPointTime\":\"2022-06-29T05:38:50.0417278Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"be7dbca5-07ee-4750-9ba9-e99b0c9c9445\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2022-06-29T05:38:50.0417278Z\",\"expiryTime\":\"2022-07-06T05:38:50.0417278Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637515737724672720\",\"policyName\":\"DiskDailyPolicy\",\"policyVersion\":null},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints/f1800cdba99949179cb20a7e2534678b\",\"name\":\"f1800cdba99949179cb20a7e2534678b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"1a85614e68c6444398b4a9eb8e3f4069\",\"recoveryPointTime\":\"2022-06-28T05:38:41.4799584Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"1138813b-229d-4931-9f93-5efe884940a8\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2022-06-28T05:38:41.4799584Z\",\"expiryTime\":\"2022-07-05T05:38:41.4799584Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637515737724672720\",\"policyName\":\"DiskDailyPolicy\",\"policyVersion\":null},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints/1a85614e68c6444398b4a9eb8e3f4069\",\"name\":\"1a85614e68c6444398b4a9eb8e3f4069\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"0ebbfa28819b43a1b8e4c6952ef59dff\",\"recoveryPointTime\":\"2022-06-27T05:38:50.7547297Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"4c5b9307-2321-4661-abd0-778ab5a4cca9\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2022-06-27T05:38:50.7547297Z\",\"expiryTime\":\"2022-07-04T05:38:50.7547297Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637515737724672720\",\"policyName\":\"DiskDailyPolicy\",\"policyVersion\":null},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints/0ebbfa28819b43a1b8e4c6952ef59dff\",\"name\":\"0ebbfa28819b43a1b8e4c6952ef59dff\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"910980842e144e8f87c8434ca76e14d9\",\"recoveryPointTime\":\"2022-06-26T05:38:55.0396211Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"8c6708e0-0e15-408f-b096-f18aa8f4571c\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2022-06-26T05:38:55.0396211Z\",\"expiryTime\":\"2022-07-24T05:38:55.0396211Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Weekly\",\"retentionTagVersion\":\"637515744414835105\",\"policyName\":\"DiskDailyPolicy\",\"policyVersion\":null},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints/910980842e144e8f87c8434ca76e14d9\",\"name\":\"910980842e144e8f87c8434ca76e14d9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"199b9e97e5f94291a3b887ba754fbba6\",\"recoveryPointTime\":\"2022-06-25T05:38:43.1488995Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"8b8361dc-cba1-4194-a4f5-2e4113e153fd\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2022-06-25T05:38:43.1488995Z\",\"expiryTime\":\"2022-07-02T05:38:43.1488995Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637515737724672720\",\"policyName\":\"DiskDailyPolicy\",\"policyVersion\":null},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints/199b9e97e5f94291a3b887ba754fbba6\",\"name\":\"199b9e97e5f94291a3b887ba754fbba6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"e44ef7b6b5b747969890c4cf95116080\",\"recoveryPointTime\":\"2022-06-24T05:38:54.8342848Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"aaf492a5-92ab-405e-91fd-74eab5e4864d\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2022-06-24T05:38:54.8342848Z\",\"expiryTime\":\"2022-07-01T05:38:54.8342848Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637515737724672720\",\"policyName\":\"DiskDailyPolicy\",\"policyVersion\":null},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints/e44ef7b6b5b747969890c4cf95116080\",\"name\":\"e44ef7b6b5b747969890c4cf95116080\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"ea6faded32274b05b43dfac07ef1f9e1\",\"recoveryPointTime\":\"2022-06-23T05:38:45.4858009Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"af965f8e-27ac-48a0-bc02-88fd8213c3f0\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2022-06-23T05:38:45.4858009Z\",\"expiryTime\":\"2022-06-30T05:38:45.4858009Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637515737724672720\",\"policyName\":\"DiskDailyPolicy\",\"policyVersion\":null},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints/ea6faded32274b05b43dfac07ef1f9e1\",\"name\":\"ea6faded32274b05b43dfac07ef1f9e1\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"5f9084d43d284461b6e93040780e964b\",\"recoveryPointTime\":\"2022-06-19T06:26:48.2813564Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"130c5d67-e194-4edb-8be6-a3acaaa29036\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2022-06-19T06:26:48.2813564Z\",\"expiryTime\":\"2022-07-17T06:26:48.2813564Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Weekly\",\"retentionTagVersion\":\"637515744414835105\",\"policyName\":\"DiskDailyPolicy\",\"policyVersion\":null},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints/5f9084d43d284461b6e93040780e964b\",\"name\":\"5f9084d43d284461b6e93040780e964b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"a2be388d9f574fcb82ac0f5dd0abe1cc\",\"recoveryPointTime\":\"2022-06-12T05:38:56.4411451Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"7af3647b-18c4-4ffe-bc1e-f55e87825bb0\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2022-06-12T05:38:56.4411451Z\",\"expiryTime\":\"2022-07-10T05:38:56.4411451Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Weekly\",\"retentionTagVersion\":\"637515744414835105\",\"policyName\":\"DiskDailyPolicy\",\"policyVersion\":null},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints/a2be388d9f574fcb82ac0f5dd0abe1cc\",\"name\":\"a2be388d9f574fcb82ac0f5dd0abe1cc\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"e524a29d80ec421db5be0ecbd74827ae\",\"recoveryPointTime\":\"2022-06-05T05:38:45.4267430Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"98603def-99a5-4bcd-99c0-0d779ef2750c\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2022-06-05T05:38:45.4267430Z\",\"expiryTime\":\"2022-07-03T05:38:45.4267430Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Weekly\",\"retentionTagVersion\":\"637515744414835105\",\"policyName\":\"DiskDailyPolicy\",\"policyVersion\":null},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints/e524a29d80ec421db5be0ecbd74827ae\",\"name\":\"e524a29d80ec421db5be0ecbd74827ae\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"}]}" + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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-44a7a483-3240-421c-a8a2-4468c10a4158/restore?api-version=2022-05-01+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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01+34": { "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-44a7a483-3240-421c-a8a2-4468c10a4158/restore?api-version=2022-05-01", - "Content": "{\r\n \"objectType\": \"AzureBackupRecoveryPointBasedRestoreRequest\",\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-restoredrzpqay21xi\",\r\n \"resourceLocation\": \"centraluseuap\",\r\n \"resourceName\": \"sarathdisk2-restoredrzpqay21xi\",\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-restoredrzpqay21xi\"\r\n }\r\n },\r\n \"sourceDataStoreType\": \"OperationalStore\",\r\n \"recoveryPointId\": \"51e7c02ea3854cb083c086196c5c2251\"\r\n}", + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, "Headers": { + "x-ms-unique-id": [ "34" ], + "x-ms-client-request-id": [ "92840d46-eedb-4366-9583-4523b46c0ffb" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "951" ] } }, "Response": { - "StatusCode": 202, + "StatusCode": 200, "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/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzc5NWI1OTkzLWE1OGUtNGM0Yi04ZDc4LTc5MmNjM2RmNzEwOA==?api-version=2022-05-01" ], - "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzc5NWI1OTkzLWE1OGUtNGM0Yi04ZDc4LTc5MmNjM2RmNzEwOA==?api-version=2022-05-01" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "172" ], + "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": [ "436aeb2a-3349-4607-9ebb-bd324e58999d" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103437Z:436aeb2a-3349-4607-9ebb-bd324e58999d" ], + "Date": [ "Mon, 23 Jan 2023 10:34:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2057" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A31%3A27.7844797Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-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/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "35" ], + "x-ms-client-request-id": [ "14127801-b512-4e3d-8167-8c4869289b6f" ], + "CommandName": [ "Get-AzDataProtectionJob" ], + "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "171" ], + "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], - "x-ms-correlation-request-id": [ "2d0db3f4-8d9d-4532-a5e7-0eb4158c7f10" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141414Z:2d0db3f4-8d9d-4532-a5e7-0eb4158c7f10" ], - "Date": [ "Wed, 29 Jun 2022 14:14:14 GMT" ] + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-correlation-request-id": [ "768c8d53-924c-46b1-8b88-4f3896c6f097" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103442Z:768c8d53-924c-46b1-8b88-4f3896c6f097" ], + "Date": [ "Mon, 23 Jan 2023 10:34:42 GMT" ] }, "ContentHeaders": { - "Expires": [ "-1" ], - "Content-Length": [ "0" ] + "Content-Length": [ "2326" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] }, - "Content": null + "Content": "{\"properties\":{\"activityID\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":\"OperationalTierStore\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A37.9913614Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:31:27.3219191Z\",\"endTime\":\"2023-01-23T10:34:34.2602205Z\",\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT3M6.9383014S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":{\"recoveryPointID\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"0001-01-01T00:00:00Z\"},\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"Completed\",\"taskProgress\":null,\"additionalDetails\":{\"OriginalDatasourceSizeInBytes\":\"0\",\"TaskId\":\"6ac1c279-4d5f-4e5f-8db1-3035f77018ff\",\"DatasourceType\":\"Microsoft.Compute/disks\"}}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"name\":\"f3567eea-5daf-4216-a6b1-c9b10ea7cce6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzc5NWI1OTkzLWE1OGUtNGM0Yi04ZDc4LTc5MmNjM2RmNzEwOA==?api-version=2022-05-01+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-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints?api-version=2022-12-01+36": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzc5NWI1OTkzLWE1OGUtNGM0Yi04ZDc4LTc5MmNjM2RmNzEwOA==?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "80" ], - "x-ms-client-request-id": [ "18daf32a-29f1-4297-82a8-6c93c3ae28ab" ], - "CommandName": [ "Start-AzDataProtectionBackupInstanceRestore" ], - "FullCommandName": [ "Start-AzDataProtectionBackupInstanceRestore_Trigger" ], + "x-ms-unique-id": [ "36" ], + "x-ms-client-request-id": [ "dbb9c681-0e38-40aa-96ee-6cd3b06a95dd" ], + "CommandName": [ "Az.DataProtection.internal\\Get-AzDataProtectionRecoveryPoint" ], + "FullCommandName": [ "Get-AzDataProtectionRecoveryPoint_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { } @@ -1380,32 +1495,72 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "997" ], - "x-ms-correlation-request-id": [ "219e7233-95d4-4a8d-a147-0854f037644c" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141445Z:219e7233-95d4-4a8d-a147-0854f037644c" ], - "Date": [ "Wed, 29 Jun 2022 14:14:44 GMT" ] + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "99" ], + "x-ms-correlation-request-id": [ "1494c40e-9a72-43fe-92d1-ded949924351" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103443Z:1494c40e-9a72-43fe-92d1-ded949924351" ], + "Date": [ "Mon, 23 Jan 2023 10:34:43 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "721" ], + "Content-Length": [ "13310" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzc5NWI1OTkzLWE1OGUtNGM0Yi04ZDc4LTc5MmNjM2RmNzEwOA==\",\"name\":\"Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzc5NWI1OTkzLWE1OGUtNGM0Yi04ZDc4LTc5MmNjM2RmNzEwOA==\",\"status\":\"Succeeded\",\"startTime\":\"2022-06-29T14:14:14.5966774Z\",\"endTime\":\"2022-06-29T14:14:17Z\",\"properties\":{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.DataProtection/BackupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"objectType\":\"OperationJobExtendedInfo\"}}" + "Content": "{\"value\":[{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2023-01-23T10:32:38.8567924Z\",\"expiryTime\":null,\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637515737724672720\",\"policyName\":\"DiskDailyPolicy\",\"policyVersion\":null,\"expiryTime\":null},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints/a412eca47ca64a7b9da621fba51559fa\",\"name\":\"a412eca47ca64a7b9da621fba51559fa\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"c5510acf691f42c1a7d19b3aaa76b503\",\"recoveryPointTime\":\"2023-01-23T05:39:14.4483122Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"c5510acf691f42c1a7d19b3aaa76b503\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2023-01-23T05:38:01.8200061Z\",\"expiryTime\":\"2023-01-30T05:38:01.8200061Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637515737724672720\",\"policyName\":\"DiskDailyPolicy\",\"policyVersion\":null,\"expiryTime\":\"2023-01-30T05:38:01.8200061Z\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints/c5510acf691f42c1a7d19b3aaa76b503\",\"name\":\"c5510acf691f42c1a7d19b3aaa76b503\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"d534e11b8d8e4d2ea5c0f3f702653d2e\",\"recoveryPointTime\":\"2023-01-22T13:17:17.3040969Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"d534e11b8d8e4d2ea5c0f3f702653d2e\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2023-01-22T13:03:33.0907549Z\",\"expiryTime\":\"2023-01-29T13:03:33.0907549Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637515737724672720\",\"policyName\":\"DiskDailyPolicy\",\"policyVersion\":null,\"expiryTime\":\"2023-01-29T13:03:33.0907549Z\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints/d534e11b8d8e4d2ea5c0f3f702653d2e\",\"name\":\"d534e11b8d8e4d2ea5c0f3f702653d2e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"7eeeabb72f624015a9d8a86cbd7f7964\",\"recoveryPointTime\":\"2023-01-22T05:42:49.2420475Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"7eeeabb72f624015a9d8a86cbd7f7964\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2023-01-22T05:41:32.0725481Z\",\"expiryTime\":\"2023-02-19T05:41:32.0725481Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Weekly\",\"retentionTagVersion\":\"637515744414835105\",\"policyName\":\"DiskDailyPolicy\",\"policyVersion\":null,\"expiryTime\":\"2023-02-19T05:41:32.0725481Z\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints/7eeeabb72f624015a9d8a86cbd7f7964\",\"name\":\"7eeeabb72f624015a9d8a86cbd7f7964\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"ed8b8fcb2bef4991b7d8037c1906e641\",\"recoveryPointTime\":\"2023-01-21T05:38:58.4546451Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"ed8b8fcb2bef4991b7d8037c1906e641\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2023-01-21T05:37:47.3553836Z\",\"expiryTime\":\"2023-01-28T05:37:47.3553836Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637515737724672720\",\"policyName\":\"DiskDailyPolicy\",\"policyVersion\":null,\"expiryTime\":\"2023-01-28T05:37:47.3553836Z\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints/ed8b8fcb2bef4991b7d8037c1906e641\",\"name\":\"ed8b8fcb2bef4991b7d8037c1906e641\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"faedd902364d414b8ba9ab7b128ab89a\",\"recoveryPointTime\":\"2023-01-20T05:39:13.1363066Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"faedd902364d414b8ba9ab7b128ab89a\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2023-01-20T05:38:01.1753097Z\",\"expiryTime\":\"2023-01-27T05:38:01.1753097Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637515737724672720\",\"policyName\":\"DiskDailyPolicy\",\"policyVersion\":null,\"expiryTime\":\"2023-01-27T05:38:01.1753097Z\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints/faedd902364d414b8ba9ab7b128ab89a\",\"name\":\"faedd902364d414b8ba9ab7b128ab89a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"740bab542f7e4148815f603a1381bcc5\",\"recoveryPointTime\":\"2023-01-19T05:39:04.7589223Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"740bab542f7e4148815f603a1381bcc5\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2023-01-19T05:37:53.1189736Z\",\"expiryTime\":\"2023-01-26T05:37:53.1189736Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637515737724672720\",\"policyName\":\"DiskDailyPolicy\",\"policyVersion\":null,\"expiryTime\":\"2023-01-26T05:37:53.1189736Z\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints/740bab542f7e4148815f603a1381bcc5\",\"name\":\"740bab542f7e4148815f603a1381bcc5\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"129b0e58b8e045139bc6ea0c17145f6e\",\"recoveryPointTime\":\"2023-01-17T05:39:02.9106508Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"129b0e58b8e045139bc6ea0c17145f6e\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2023-01-17T05:37:50.0344777Z\",\"expiryTime\":\"2023-01-24T05:37:50.0344777Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637515737724672720\",\"policyName\":\"DiskDailyPolicy\",\"policyVersion\":null,\"expiryTime\":\"2023-01-24T05:37:50.0344777Z\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints/129b0e58b8e045139bc6ea0c17145f6e\",\"name\":\"129b0e58b8e045139bc6ea0c17145f6e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"ab67399150a646b6ad2e0adc3e1534be\",\"recoveryPointTime\":\"2023-01-15T05:39:01.5755373Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"ab67399150a646b6ad2e0adc3e1534be\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2023-01-15T05:37:47.6479118Z\",\"expiryTime\":\"2023-02-12T05:37:47.6479118Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Weekly\",\"retentionTagVersion\":\"637515744414835105\",\"policyName\":\"DiskDailyPolicy\",\"policyVersion\":null,\"expiryTime\":\"2023-02-12T05:37:47.6479118Z\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints/ab67399150a646b6ad2e0adc3e1534be\",\"name\":\"ab67399150a646b6ad2e0adc3e1534be\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"196fd75300c94d3783b4f5b9130fc9b7\",\"recoveryPointTime\":\"2023-01-08T05:38:57.9300719Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"196fd75300c94d3783b4f5b9130fc9b7\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2023-01-08T05:37:44.9858110Z\",\"expiryTime\":\"2023-02-05T05:37:44.9858110Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Weekly\",\"retentionTagVersion\":\"637515744414835105\",\"policyName\":\"DiskDailyPolicy\",\"policyVersion\":null,\"expiryTime\":\"2023-02-05T05:37:44.9858110Z\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints/196fd75300c94d3783b4f5b9130fc9b7\",\"name\":\"196fd75300c94d3783b4f5b9130fc9b7\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"e21546929feb4da6b2fa690bad064b71\",\"recoveryPointTime\":\"2023-01-01T05:39:24.2876386Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"e21546929feb4da6b2fa690bad064b71\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2023-01-01T05:38:12.4286492Z\",\"expiryTime\":\"2023-01-29T05:38:12.4286492Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Weekly\",\"retentionTagVersion\":\"637515744414835105\",\"policyName\":\"DiskDailyPolicy\",\"policyVersion\":null,\"expiryTime\":\"2023-01-29T05:38:12.4286492Z\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints/e21546929feb4da6b2fa690bad064b71\",\"name\":\"e21546929feb4da6b2fa690bad064b71\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"1f6f3b720e794a36a7b79f0b9878651f\",\"recoveryPointTime\":\"2022-12-27T05:39:29.2694348Z\",\"recoveryPointType\":\"Incremental\",\"friendlyName\":\"1f6f3b720e794a36a7b79f0b9878651f\",\"recoveryPointDataStoresDetails\":[{\"id\":\"c2ad4629-f2ef-49b6-b3f8-50f3eb5404f4\",\"type\":\"OperationalStore\",\"creationTime\":\"2022-12-27T05:38:12.5298125Z\",\"expiryTime\":\"2023-01-24T05:38:12.5298125Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Weekly\",\"retentionTagVersion\":\"637515744414835105\",\"policyName\":\"DiskDailyPolicy\",\"policyVersion\":null,\"expiryTime\":\"2023-01-24T05:38:12.5298125Z\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158/recoveryPoints/1f6f3b720e794a36a7b79f0b9878651f\",\"name\":\"1f6f3b720e794a36a7b79f0b9878651f\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"}]}", + "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-44a7a483-3240-421c-a8a2-4468c10a4158/restore?api-version=2022-12-01+37": { + "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-44a7a483-3240-421c-a8a2-4468c10a4158/restore?api-version=2022-12-01", + "Content": "{\r\n \"objectType\": \"AzureBackupRecoveryPointBasedRestoreRequest\",\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-restoredvq5fnu0zbm\",\r\n \"resourceLocation\": \"centraluseuap\",\r\n \"resourceName\": \"sarathdisk2-restoredvq5fnu0zbm\",\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-restoredvq5fnu0zbm\"\r\n }\r\n },\r\n \"sourceDataStoreType\": \"OperationalStore\",\r\n \"recoveryPointId\": \"a412eca47ca64a7b9da621fba51559fa\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "951" ] + } + }, + "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/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Y0N2ZmZTgzLWFmNDItNGMzMi05NjEwLThiODkzYjUwNmQxNg==?api-version=2022-12-01" ], + "Retry-After": [ "30" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Y0N2ZmZTgzLWFmNDItNGMzMi05NjEwLThiODkzYjUwNmQxNg==?api-version=2022-12-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": [ "1198" ], + "x-ms-correlation-request-id": [ "51d7f3d4-b289-41a9-872d-b43ac5fe6662" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103444Z:51d7f3d4-b289-41a9-872d-b43ac5fe6662" ], + "Date": [ "Mon, 23 Jan 2023 10:34:44 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false } }, - "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzc5NWI1OTkzLWE1OGUtNGM0Yi04ZDc4LTc5MmNjM2RmNzEwOA==?api-version=2022-05-01+36": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Y0N2ZmZTgzLWFmNDItNGMzMi05NjEwLThiODkzYjUwNmQxNg==?api-version=2022-12-01+38": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzc5NWI1OTkzLWE1OGUtNGM0Yi04ZDc4LTc5MmNjM2RmNzEwOA==?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Y0N2ZmZTgzLWFmNDItNGMzMi05NjEwLThiODkzYjUwNmQxNg==?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "81" ], - "x-ms-client-request-id": [ "18daf32a-29f1-4297-82a8-6c93c3ae28ab" ], + "x-ms-unique-id": [ "38" ], + "x-ms-client-request-id": [ "25c5c7fa-6bb3-497f-81bf-cd7fc88d8603" ], "CommandName": [ "Start-AzDataProtectionBackupInstanceRestore" ], "FullCommandName": [ "Start-AzDataProtectionBackupInstanceRestore_Trigger" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -1415,39 +1570,39 @@ "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/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwOzc5NWI1OTkzLWE1OGUtNGM0Yi04ZDc4LTc5MmNjM2RmNzEwOA==?api-version=2022-05-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-resource-requests": [ "197" ], - "x-ms-correlation-request-id": [ "e82d9f55-4d6a-4bee-84e9-0449a66d5403" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141445Z:e82d9f55-4d6a-4bee-84e9-0449a66d5403" ], - "Date": [ "Wed, 29 Jun 2022 14:14:45 GMT" ] + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "998" ], + "x-ms-correlation-request-id": [ "33bdb329-8403-4c9b-b717-5f37e74ad5c0" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103516Z:33bdb329-8403-4c9b-b717-5f37e74ad5c0" ], + "Date": [ "Mon, 23 Jan 2023 10:35:16 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "237" ], + "Content-Length": [ "719" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.DataProtection/BackupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"objectType\":\"OperationJobExtendedInfo\"}" + "Content": "{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Y0N2ZmZTgzLWFmNDItNGMzMi05NjEwLThiODkzYjUwNmQxNg==\",\"name\":\"Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Y0N2ZmZTgzLWFmNDItNGMzMi05NjEwLThiODkzYjUwNmQxNg==\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-23T10:34:44.60646Z\",\"endTime\":\"2023-01-23T10:34:46Z\",\"properties\":{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.DataProtection/BackupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"objectType\":\"OperationJobExtendedInfo\"}}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+37": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Y0N2ZmZTgzLWFmNDItNGMzMi05NjEwLThiODkzYjUwNmQxNg==?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Y0N2ZmZTgzLWFmNDItNGMzMi05NjEwLThiODkzYjUwNmQxNg==?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "82" ], - "x-ms-client-request-id": [ "7b902e9b-4522-49c5-b825-45ba918ccde9" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "39" ], + "x-ms-client-request-id": [ "25c5c7fa-6bb3-497f-81bf-cd7fc88d8603" ], + "CommandName": [ "Start-AzDataProtectionBackupInstanceRestore" ], + "FullCommandName": [ "Start-AzDataProtectionBackupInstanceRestore_Trigger" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], - "Authorization": [ "[Filtered]" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -1457,36 +1612,40 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "145" ], - "Server": [ "Microsoft-IIS/10.0", "Kestrel" ], + "Retry-After": [ "30" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/Y2EwMTdlZGYtMGQ4OC00MDc1LTkzYWMtMWQ5MDI1NDkwMWYwO2Y0N2ZmZTgzLWFmNDItNGMzMi05NjEwLThiODkzYjUwNmQxNg==?api-version=2022-12-01" ], "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": [ "e76b828e-1149-4f10-8c1c-2e0bf5eef905" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141451Z:e76b828e-1149-4f10-8c1c-2e0bf5eef905" ], - "Date": [ "Wed, 29 Jun 2022 14:14:50 GMT" ] + "Server": [ "Microsoft-IIS/10.0" ], + "X-Powered-By": [ "ASP.NET" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "198" ], + "x-ms-correlation-request-id": [ "34b6d2b2-daf2-493f-af7d-d2c70e7e44c2" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103517Z:34b6d2b2-daf2-493f-af7d-d2c70e7e44c2" ], + "Date": [ "Mon, 23 Jan 2023 10:35:17 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2291" ], + "Content-Length": [ "237" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.DataProtection/BackupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"objectType\":\"OperationJobExtendedInfo\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+38": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "83" ], - "x-ms-client-request-id": [ "5fb00ed0-dac7-466b-b305-fa05e0864769" ], + "x-ms-unique-id": [ "40" ], + "x-ms-client-request-id": [ "db72df29-d94e-48e2-ad1d-5b40044d9f7a" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1497,36 +1656,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "144" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "170" ], "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": [ "fb872701-9c1e-4c9a-8f73-36e0e578a0fa" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141456Z:fb872701-9c1e-4c9a-8f73-36e0e578a0fa" ], - "Date": [ "Wed, 29 Jun 2022 14:14:56 GMT" ] + "x-ms-correlation-request-id": [ "c994bf00-672e-416e-974c-e0e29f6c8476" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103523Z:c994bf00-672e-416e-974c-e0e29f6c8476" ], + "Date": [ "Mon, 23 Jan 2023 10:35:22 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "84" ], - "x-ms-client-request-id": [ "1a8a633f-e47c-4ca6-a7f7-fcb4e820de22" ], + "x-ms-unique-id": [ "41" ], + "x-ms-client-request-id": [ "d403e326-e261-4fb8-b654-6356acbc3b3d" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1537,36 +1698,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "143" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "169" ], "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": [ "b5bcab4e-710e-4bcf-bccc-945c4624bf60" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141501Z:b5bcab4e-710e-4bcf-bccc-945c4624bf60" ], - "Date": [ "Wed, 29 Jun 2022 14:15:01 GMT" ] + "x-ms-correlation-request-id": [ "4d3d1db5-869c-44f2-a90d-01dc68a594f8" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103528Z:4d3d1db5-869c-44f2-a90d-01dc68a594f8" ], + "Date": [ "Mon, 23 Jan 2023 10:35:28 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "85" ], - "x-ms-client-request-id": [ "28d298ea-9752-4a23-9028-bb45e48d5a41" ], + "x-ms-unique-id": [ "42" ], + "x-ms-client-request-id": [ "8aa1e50a-031b-4e8d-baeb-c9bb961f66ff" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1577,36 +1740,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "142" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "168" ], "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": [ "a3757898-7b13-4fb6-b1a2-36f27f81bb6f" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141507Z:a3757898-7b13-4fb6-b1a2-36f27f81bb6f" ], - "Date": [ "Wed, 29 Jun 2022 14:15:06 GMT" ] + "x-ms-correlation-request-id": [ "4f71df5e-2221-40eb-8825-ef84a328dc1d" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103534Z:4f71df5e-2221-40eb-8825-ef84a328dc1d" ], + "Date": [ "Mon, 23 Jan 2023 10:35:34 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "86" ], - "x-ms-client-request-id": [ "40c043e2-e800-4aea-817f-15e2516944e8" ], + "x-ms-unique-id": [ "43" ], + "x-ms-client-request-id": [ "c094ebbc-b993-4056-8870-1750a55ab1c6" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1617,36 +1782,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "141" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "167" ], "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": [ "17775bf6-f959-485d-9287-749915847e48" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141512Z:17775bf6-f959-485d-9287-749915847e48" ], - "Date": [ "Wed, 29 Jun 2022 14:15:12 GMT" ] + "x-ms-correlation-request-id": [ "a3f203f0-4991-4b1e-a354-2e90dcf1b13d" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103540Z:a3f203f0-4991-4b1e-a354-2e90dcf1b13d" ], + "Date": [ "Mon, 23 Jan 2023 10:35:40 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "87" ], - "x-ms-client-request-id": [ "3c00a8d7-a4e3-4d26-a7b2-e4c55a8036ea" ], + "x-ms-unique-id": [ "44" ], + "x-ms-client-request-id": [ "a0a3fdf8-ecfc-47b2-ad08-948a406810ef" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1657,36 +1824,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "140" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "166" ], "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": [ "2bf2347f-3981-41ed-889e-522ecb75d39a" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141518Z:2bf2347f-3981-41ed-889e-522ecb75d39a" ], - "Date": [ "Wed, 29 Jun 2022 14:15:17 GMT" ] + "x-ms-correlation-request-id": [ "833408fa-3104-47f4-8a7c-0d960a1152aa" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103546Z:833408fa-3104-47f4-8a7c-0d960a1152aa" ], + "Date": [ "Mon, 23 Jan 2023 10:35:45 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "88" ], - "x-ms-client-request-id": [ "d2a460d5-3a81-44d9-a700-45f6e2c0e646" ], + "x-ms-unique-id": [ "45" ], + "x-ms-client-request-id": [ "63530464-3429-409f-8869-7b037d504439" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1697,36 +1866,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "139" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "165" ], "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": [ "b795838f-0c0c-4393-89bc-92156c395971" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141523Z:b795838f-0c0c-4393-89bc-92156c395971" ], - "Date": [ "Wed, 29 Jun 2022 14:15:22 GMT" ] + "x-ms-correlation-request-id": [ "9f1722bb-3d79-493e-a4a3-1d9f47088d1b" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103552Z:9f1722bb-3d79-493e-a4a3-1d9f47088d1b" ], + "Date": [ "Mon, 23 Jan 2023 10:35:51 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "89" ], - "x-ms-client-request-id": [ "f31e06cc-ffcf-449c-98ff-2184293f528b" ], + "x-ms-unique-id": [ "46" ], + "x-ms-client-request-id": [ "9aa542a3-8dbb-4bc1-9a54-a39cf0a2b8e2" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1737,36 +1908,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "138" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "164" ], "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": [ "ff8c99e4-6c68-41e6-ba23-36f7432c9360" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141528Z:ff8c99e4-6c68-41e6-ba23-36f7432c9360" ], - "Date": [ "Wed, 29 Jun 2022 14:15:28 GMT" ] + "x-ms-correlation-request-id": [ "80a9a61e-8c0b-4652-8f06-ce089e272724" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103557Z:80a9a61e-8c0b-4652-8f06-ce089e272724" ], + "Date": [ "Mon, 23 Jan 2023 10:35:57 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "90" ], - "x-ms-client-request-id": [ "a95581d7-3397-4b28-8fb8-c3269f86db79" ], + "x-ms-unique-id": [ "47" ], + "x-ms-client-request-id": [ "1e940c21-74fc-4ab6-9765-f0034296b138" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1777,36 +1950,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "163" ], "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-resource-requests": [ "137" ], - "x-ms-correlation-request-id": [ "faeb136d-bfde-41f8-8927-abda500a5343" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141534Z:faeb136d-bfde-41f8-8927-abda500a5343" ], - "Date": [ "Wed, 29 Jun 2022 14:15:33 GMT" ] + "x-ms-correlation-request-id": [ "0eb1ad1f-c827-4113-8159-8c23db0ab182" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103603Z:0eb1ad1f-c827-4113-8159-8c23db0ab182" ], + "Date": [ "Mon, 23 Jan 2023 10:36:02 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "91" ], - "x-ms-client-request-id": [ "f16e6b87-8035-4ed7-a868-8bc3642ddec4" ], + "x-ms-unique-id": [ "48" ], + "x-ms-client-request-id": [ "b206929f-5189-4772-b25e-e4b77603f001" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1817,36 +1992,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "136" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "162" ], "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": [ "771c4ee7-9471-497f-a35a-9ee851c310db" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141539Z:771c4ee7-9471-497f-a35a-9ee851c310db" ], - "Date": [ "Wed, 29 Jun 2022 14:15:39 GMT" ] + "x-ms-correlation-request-id": [ "6e79c68f-4da4-4dea-8427-c952bef91cb2" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103609Z:6e79c68f-4da4-4dea-8427-c952bef91cb2" ], + "Date": [ "Mon, 23 Jan 2023 10:36:08 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "92" ], - "x-ms-client-request-id": [ "85eaf944-8371-46b5-b64f-464fca61fc59" ], + "x-ms-unique-id": [ "49" ], + "x-ms-client-request-id": [ "3e64d849-b545-43e0-8310-fb0213b35d45" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1857,36 +2034,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "135" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "161" ], "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": [ "86fe2d7c-6bd7-4e99-8c1a-be820f1071da" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141545Z:86fe2d7c-6bd7-4e99-8c1a-be820f1071da" ], - "Date": [ "Wed, 29 Jun 2022 14:15:44 GMT" ] + "x-ms-correlation-request-id": [ "97606c84-166b-47aa-8a4f-eec51924238c" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103614Z:97606c84-166b-47aa-8a4f-eec51924238c" ], + "Date": [ "Mon, 23 Jan 2023 10:36:14 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "93" ], - "x-ms-client-request-id": [ "02484c4f-3973-4107-a4fb-751bb0e78489" ], + "x-ms-unique-id": [ "50" ], + "x-ms-client-request-id": [ "9f640b73-c99d-46e3-b054-dd07f4a4ec9e" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1897,36 +2076,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "134" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "160" ], "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": [ "6659ed7f-7ecc-467c-8a8a-3d9705e8bc6f" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141550Z:6659ed7f-7ecc-467c-8a8a-3d9705e8bc6f" ], - "Date": [ "Wed, 29 Jun 2022 14:15:49 GMT" ] + "x-ms-correlation-request-id": [ "286da93d-da64-4c6d-99f2-fc9c20c3c618" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103620Z:286da93d-da64-4c6d-99f2-fc9c20c3c618" ], + "Date": [ "Mon, 23 Jan 2023 10:36:20 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "94" ], - "x-ms-client-request-id": [ "1d080bf3-889d-413d-80af-5e5a14553ac1" ], + "x-ms-unique-id": [ "51" ], + "x-ms-client-request-id": [ "689e22be-160a-4c42-903b-196884aed9ee" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1937,36 +2118,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "133" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "159" ], "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": [ "b097004d-33f9-4b27-bb92-e3b90f31244d" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141555Z:b097004d-33f9-4b27-bb92-e3b90f31244d" ], - "Date": [ "Wed, 29 Jun 2022 14:15:55 GMT" ] + "x-ms-correlation-request-id": [ "2913bf47-eeb6-4ba6-bf23-0e9435c04cf2" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103626Z:2913bf47-eeb6-4ba6-bf23-0e9435c04cf2" ], + "Date": [ "Mon, 23 Jan 2023 10:36:25 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "95" ], - "x-ms-client-request-id": [ "c5fb5b27-e210-4e0f-883f-74e4005adb98" ], + "x-ms-unique-id": [ "52" ], + "x-ms-client-request-id": [ "1d195fe1-dd3e-4aa8-90a5-d271ed41f7fb" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1977,36 +2160,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "132" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "158" ], "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": [ "6eeb9b90-0c5e-4f8d-b81c-0386f088a78a" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141601Z:6eeb9b90-0c5e-4f8d-b81c-0386f088a78a" ], - "Date": [ "Wed, 29 Jun 2022 14:16:00 GMT" ] + "x-ms-correlation-request-id": [ "ac19e424-3128-4ab0-ad91-2534a1cb6829" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103631Z:ac19e424-3128-4ab0-ad91-2534a1cb6829" ], + "Date": [ "Mon, 23 Jan 2023 10:36:31 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "96" ], - "x-ms-client-request-id": [ "2c2e4796-6a8c-408b-baae-0e9d6448947a" ], + "x-ms-unique-id": [ "53" ], + "x-ms-client-request-id": [ "db8452ae-5913-45cb-a07b-ee445ab8e324" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2017,36 +2202,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "131" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "157" ], "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": [ "6cfdd735-f01c-48b2-879e-e2a59237247b" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141606Z:6cfdd735-f01c-48b2-879e-e2a59237247b" ], - "Date": [ "Wed, 29 Jun 2022 14:16:05 GMT" ] + "x-ms-correlation-request-id": [ "f20568dd-203a-43ff-9743-b95f34ae6b47" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103637Z:f20568dd-203a-43ff-9743-b95f34ae6b47" ], + "Date": [ "Mon, 23 Jan 2023 10:36:37 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "97" ], - "x-ms-client-request-id": [ "b229bf60-314d-4cd3-aca9-1c159aa87d30" ], + "x-ms-unique-id": [ "54" ], + "x-ms-client-request-id": [ "5419a564-02cd-4cb8-ab54-666d5fc86005" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2057,36 +2244,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "130" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "156" ], "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": [ "e3945fc8-78de-46d4-95d9-203c42d45790" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141611Z:e3945fc8-78de-46d4-95d9-203c42d45790" ], - "Date": [ "Wed, 29 Jun 2022 14:16:11 GMT" ] + "x-ms-correlation-request-id": [ "7a4b2dc6-f2ba-4433-b4c9-29a5efaa33b4" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103643Z:7a4b2dc6-f2ba-4433-b4c9-29a5efaa33b4" ], + "Date": [ "Mon, 23 Jan 2023 10:36:43 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "98" ], - "x-ms-client-request-id": [ "28a1d873-35cb-4007-95ed-4e419ebd0cd5" ], + "x-ms-unique-id": [ "55" ], + "x-ms-client-request-id": [ "f26415f0-038b-49fd-99d3-148e25c21d4a" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2097,36 +2286,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "129" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "155" ], "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": [ "887f1a29-fb1f-4ee2-9696-694da90751f3" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141617Z:887f1a29-fb1f-4ee2-9696-694da90751f3" ], - "Date": [ "Wed, 29 Jun 2022 14:16:16 GMT" ] + "x-ms-correlation-request-id": [ "7be297f5-7f77-405a-bda5-ebe90e4e930e" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103649Z:7be297f5-7f77-405a-bda5-ebe90e4e930e" ], + "Date": [ "Mon, 23 Jan 2023 10:36:48 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "99" ], - "x-ms-client-request-id": [ "b88d9638-faf5-4446-b59e-9daf65503ea5" ], + "x-ms-unique-id": [ "56" ], + "x-ms-client-request-id": [ "0c2f4289-4a9d-4456-86cd-a3a70591eafc" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2137,36 +2328,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "128" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "154" ], "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": [ "d2f7525c-d3ad-4ac5-ae91-d5727d90ec9e" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141622Z:d2f7525c-d3ad-4ac5-ae91-d5727d90ec9e" ], - "Date": [ "Wed, 29 Jun 2022 14:16:21 GMT" ] + "x-ms-correlation-request-id": [ "8131c74b-a417-4974-b0ef-357f109c56bb" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103655Z:8131c74b-a417-4974-b0ef-357f109c56bb" ], + "Date": [ "Mon, 23 Jan 2023 10:36:54 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "100" ], - "x-ms-client-request-id": [ "fc3a764a-e9df-4fdb-909c-670ed844772f" ], + "x-ms-unique-id": [ "57" ], + "x-ms-client-request-id": [ "5d5a3f5e-8230-4e4c-9067-84b970709b79" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2177,36 +2370,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "127" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "153" ], "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": [ "650f93ae-2001-44a1-97c6-2b48a18d59dd" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141627Z:650f93ae-2001-44a1-97c6-2b48a18d59dd" ], - "Date": [ "Wed, 29 Jun 2022 14:16:27 GMT" ] + "x-ms-correlation-request-id": [ "c6679e77-842f-493d-bfc4-cd1f2365f51f" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103700Z:c6679e77-842f-493d-bfc4-cd1f2365f51f" ], + "Date": [ "Mon, 23 Jan 2023 10:37:00 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "101" ], - "x-ms-client-request-id": [ "369f3f82-e66f-4cd2-94ce-06762b7ee3f4" ], + "x-ms-unique-id": [ "58" ], + "x-ms-client-request-id": [ "5a2ca97b-08a4-42fe-a56a-2f800f9591e7" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2217,36 +2412,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "126" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "152" ], "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": [ "afae9c25-a91c-4e36-b6b0-0250cefef498" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141633Z:afae9c25-a91c-4e36-b6b0-0250cefef498" ], - "Date": [ "Wed, 29 Jun 2022 14:16:33 GMT" ] + "x-ms-correlation-request-id": [ "3904fae8-ff24-4695-ad4b-6e92f51fd33e" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103706Z:3904fae8-ff24-4695-ad4b-6e92f51fd33e" ], + "Date": [ "Mon, 23 Jan 2023 10:37:05 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "102" ], - "x-ms-client-request-id": [ "22334d30-ae6d-4375-af7e-12b776522a3c" ], + "x-ms-unique-id": [ "59" ], + "x-ms-client-request-id": [ "0091b78d-ee8f-420e-a523-20f1c1c23bbf" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2257,36 +2454,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "125" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "151" ], "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": [ "2c102ab3-e7cd-4b6c-8e71-0b12d3b70b0a" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141639Z:2c102ab3-e7cd-4b6c-8e71-0b12d3b70b0a" ], - "Date": [ "Wed, 29 Jun 2022 14:16:38 GMT" ] + "x-ms-correlation-request-id": [ "ec2dbb6a-8351-47f0-a832-33a065c9a290" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103712Z:ec2dbb6a-8351-47f0-a832-33a065c9a290" ], + "Date": [ "Mon, 23 Jan 2023 10:37:11 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "103" ], - "x-ms-client-request-id": [ "25d1f64f-7838-4828-9fa4-caf41744e1c1" ], + "x-ms-unique-id": [ "60" ], + "x-ms-client-request-id": [ "dd3c8cc6-ff51-4999-b546-52d636f1b9eb" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2297,36 +2496,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "124" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "150" ], "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": [ "5027796b-4417-42d7-9b95-56a0a4656747" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141645Z:5027796b-4417-42d7-9b95-56a0a4656747" ], - "Date": [ "Wed, 29 Jun 2022 14:16:44 GMT" ] + "x-ms-correlation-request-id": [ "29c8d958-26bc-4962-8375-26663f7241cb" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103718Z:29c8d958-26bc-4962-8375-26663f7241cb" ], + "Date": [ "Mon, 23 Jan 2023 10:37:17 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "104" ], - "x-ms-client-request-id": [ "53a88de3-e376-411c-b1d5-4b16ccf0dc0d" ], + "x-ms-unique-id": [ "61" ], + "x-ms-client-request-id": [ "4f894208-d806-4824-8361-c459d85d9f86" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2337,36 +2538,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "123" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "149" ], "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": [ "8fedc57c-0db3-4c58-a5b2-13c182e706c3" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141650Z:8fedc57c-0db3-4c58-a5b2-13c182e706c3" ], - "Date": [ "Wed, 29 Jun 2022 14:16:49 GMT" ] + "x-ms-correlation-request-id": [ "860f766d-98ff-48cb-bef4-1b8a9b1775dc" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103723Z:860f766d-98ff-48cb-bef4-1b8a9b1775dc" ], + "Date": [ "Mon, 23 Jan 2023 10:37:23 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "105" ], - "x-ms-client-request-id": [ "0f945cbc-42b5-407e-b19f-893b41004467" ], + "x-ms-unique-id": [ "62" ], + "x-ms-client-request-id": [ "5e794ac8-4dd2-47ff-8d5f-c3926741953e" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2377,36 +2580,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "122" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "148" ], "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": [ "72f872c1-0094-4604-9810-591f2675b68d" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141656Z:72f872c1-0094-4604-9810-591f2675b68d" ], - "Date": [ "Wed, 29 Jun 2022 14:16:55 GMT" ] + "x-ms-correlation-request-id": [ "d31413d7-6036-461c-b994-9325e7568482" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103729Z:d31413d7-6036-461c-b994-9325e7568482" ], + "Date": [ "Mon, 23 Jan 2023 10:37:29 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "106" ], - "x-ms-client-request-id": [ "2d9016cd-e8eb-4fb1-94a3-fd59c9d1b98a" ], + "x-ms-unique-id": [ "63" ], + "x-ms-client-request-id": [ "0370b2fc-8321-499d-8f43-b07162055ad9" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2417,36 +2622,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "121" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "147" ], "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": [ "9759374e-06ed-4f8b-b148-d4ac656755c3" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141701Z:9759374e-06ed-4f8b-b148-d4ac656755c3" ], - "Date": [ "Wed, 29 Jun 2022 14:17:01 GMT" ] + "x-ms-correlation-request-id": [ "391a1f76-14bd-45c5-b2de-ced09940de36" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103735Z:391a1f76-14bd-45c5-b2de-ced09940de36" ], + "Date": [ "Mon, 23 Jan 2023 10:37:35 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "107" ], - "x-ms-client-request-id": [ "81cc91e2-a7c0-458b-8549-53e8409cbf3c" ], + "x-ms-unique-id": [ "64" ], + "x-ms-client-request-id": [ "3b7627e5-febd-4c36-8e7c-eaf1340a4805" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2457,36 +2664,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "120" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "146" ], "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": [ "5173cc2a-9508-488b-89ce-68906b32a6b1" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141706Z:5173cc2a-9508-488b-89ce-68906b32a6b1" ], - "Date": [ "Wed, 29 Jun 2022 14:17:06 GMT" ] + "x-ms-correlation-request-id": [ "3da20926-13d2-452d-86d2-741b399188f0" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103740Z:3da20926-13d2-452d-86d2-741b399188f0" ], + "Date": [ "Mon, 23 Jan 2023 10:37:40 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "108" ], - "x-ms-client-request-id": [ "b7acd384-d6af-4a65-95db-061c07afe7bd" ], + "x-ms-unique-id": [ "65" ], + "x-ms-client-request-id": [ "5d7d8a91-408a-43f4-b2c1-9048795fd1ae" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2497,36 +2706,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "119" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "145" ], "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": [ "78081004-4ff0-4a7d-abdc-825393b6e701" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141712Z:78081004-4ff0-4a7d-abdc-825393b6e701" ], - "Date": [ "Wed, 29 Jun 2022 14:17:12 GMT" ] + "x-ms-correlation-request-id": [ "d1d10ed4-083a-4ab6-9c5b-b6c22c63aa98" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103746Z:d1d10ed4-083a-4ab6-9c5b-b6c22c63aa98" ], + "Date": [ "Mon, 23 Jan 2023 10:37:46 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "109" ], - "x-ms-client-request-id": [ "63276255-8af8-4fd0-8934-4b13577dd01c" ], + "x-ms-unique-id": [ "66" ], + "x-ms-client-request-id": [ "204ae375-fde6-436e-ad47-4b6dfbcb89b0" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2537,36 +2748,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "118" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "144" ], "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": [ "0242c115-6afe-45b8-a3bd-c1e7e4512d1d" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141717Z:0242c115-6afe-45b8-a3bd-c1e7e4512d1d" ], - "Date": [ "Wed, 29 Jun 2022 14:17:17 GMT" ] + "x-ms-correlation-request-id": [ "54d5c003-f321-4211-97cb-a13b02eae850" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103752Z:54d5c003-f321-4211-97cb-a13b02eae850" ], + "Date": [ "Mon, 23 Jan 2023 10:37:52 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "110" ], - "x-ms-client-request-id": [ "7ed337ea-b571-4e9a-b443-bb7f56805a9f" ], + "x-ms-unique-id": [ "67" ], + "x-ms-client-request-id": [ "ac31de9a-ad2f-4b79-aafd-48ca2136cc2a" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2577,36 +2790,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "117" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "143" ], "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": [ "0ff55c5d-71ca-47b0-816e-4702a304a00b" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141722Z:0ff55c5d-71ca-47b0-816e-4702a304a00b" ], - "Date": [ "Wed, 29 Jun 2022 14:17:22 GMT" ] + "x-ms-correlation-request-id": [ "f045d889-29c6-4388-ab9f-1a54f05f740b" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103758Z:f045d889-29c6-4388-ab9f-1a54f05f740b" ], + "Date": [ "Mon, 23 Jan 2023 10:37:57 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "111" ], - "x-ms-client-request-id": [ "366dea46-de53-4183-a713-5e20b7b2b573" ], + "x-ms-unique-id": [ "68" ], + "x-ms-client-request-id": [ "617c6e06-caf2-40aa-aa9c-0871b8986246" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2617,36 +2832,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "116" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "142" ], "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": [ "6cfae068-8a63-4e22-b35f-07c684ee1794" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141728Z:6cfae068-8a63-4e22-b35f-07c684ee1794" ], - "Date": [ "Wed, 29 Jun 2022 14:17:28 GMT" ] + "x-ms-correlation-request-id": [ "4d7fa6dd-53ce-4899-9635-07b891c7803e" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103803Z:4d7fa6dd-53ce-4899-9635-07b891c7803e" ], + "Date": [ "Mon, 23 Jan 2023 10:38:03 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "112" ], - "x-ms-client-request-id": [ "72c5821b-ebe1-4754-aa35-23a9a6d9efb7" ], + "x-ms-unique-id": [ "69" ], + "x-ms-client-request-id": [ "28841dec-a5a0-49a5-97a7-81ad54d81fe4" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2657,36 +2874,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "115" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "141" ], "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": [ "c88962e3-b7c1-4543-b583-295ad13afc76" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141733Z:c88962e3-b7c1-4543-b583-295ad13afc76" ], - "Date": [ "Wed, 29 Jun 2022 14:17:33 GMT" ] + "x-ms-correlation-request-id": [ "1acaf71e-ebf5-494c-b509-447d1b5caf17" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103809Z:1acaf71e-ebf5-494c-b509-447d1b5caf17" ], + "Date": [ "Mon, 23 Jan 2023 10:38:08 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "113" ], - "x-ms-client-request-id": [ "03294b47-d106-42ba-9b1f-9e7da0e0423f" ], + "x-ms-unique-id": [ "70" ], + "x-ms-client-request-id": [ "496d7429-75df-48c6-b2ec-0bf455bd4c6c" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2697,36 +2916,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "114" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "140" ], "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": [ "57de0e5a-c9a5-45a8-9bec-149882ce1b65" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141743Z:57de0e5a-c9a5-45a8-9bec-149882ce1b65" ], - "Date": [ "Wed, 29 Jun 2022 14:17:42 GMT" ] + "x-ms-correlation-request-id": [ "045d8378-d27a-454d-851c-908d2eac24fc" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103815Z:045d8378-d27a-454d-851c-908d2eac24fc" ], + "Date": [ "Mon, 23 Jan 2023 10:38:14 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "114" ], - "x-ms-client-request-id": [ "a020c6cd-8546-4010-9fff-9a56eb455a5b" ], + "x-ms-unique-id": [ "71" ], + "x-ms-client-request-id": [ "d9ee2861-65a3-47dc-bb13-7c462bb5a16e" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2737,36 +2958,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "113" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "139" ], "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": [ "beee5388-87fe-4342-b33a-6a78a7e27008" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141753Z:beee5388-87fe-4342-b33a-6a78a7e27008" ], - "Date": [ "Wed, 29 Jun 2022 14:17:52 GMT" ] + "x-ms-correlation-request-id": [ "baacd55a-4e23-4679-99de-27f23592f0b4" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103821Z:baacd55a-4e23-4679-99de-27f23592f0b4" ], + "Date": [ "Mon, 23 Jan 2023 10:38:20 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+72": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "115" ], - "x-ms-client-request-id": [ "93bf742f-52d1-4c9b-9eab-fef42ac2ce04" ], + "x-ms-unique-id": [ "72" ], + "x-ms-client-request-id": [ "fa8fbcdc-1620-4056-9366-fb9ecb4a790e" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2777,36 +3000,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "112" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "138" ], "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": [ "e7ad2bcd-81a9-423c-b503-1618bfb46552" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141758Z:e7ad2bcd-81a9-423c-b503-1618bfb46552" ], - "Date": [ "Wed, 29 Jun 2022 14:17:58 GMT" ] + "x-ms-correlation-request-id": [ "69d401da-c0cc-4fde-95d3-6e398f16b680" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103826Z:69d401da-c0cc-4fde-95d3-6e398f16b680" ], + "Date": [ "Mon, 23 Jan 2023 10:38:26 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+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/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+73": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "116" ], - "x-ms-client-request-id": [ "78f97116-e8a0-42ce-beb1-f28e8c8d7b76" ], + "x-ms-unique-id": [ "73" ], + "x-ms-client-request-id": [ "233755be-d944-4b7c-9b7b-9b2f4c5605f4" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2817,36 +3042,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "111" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "137" ], "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": [ "2290ede6-8b30-47e3-a465-826dc582c6fd" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141804Z:2290ede6-8b30-47e3-a465-826dc582c6fd" ], - "Date": [ "Wed, 29 Jun 2022 14:18:03 GMT" ] + "x-ms-correlation-request-id": [ "d6395ca9-0ba2-4241-be3b-93d03565ac99" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103832Z:d6395ca9-0ba2-4241-be3b-93d03565ac99" ], + "Date": [ "Mon, 23 Jan 2023 10:38:32 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+72": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+74": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "117" ], - "x-ms-client-request-id": [ "b5392573-5793-4626-a995-35a889f01507" ], + "x-ms-unique-id": [ "74" ], + "x-ms-client-request-id": [ "34c9832e-bb55-4522-a762-074ad429e271" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2857,36 +3084,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "110" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "136" ], "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": [ "523a068f-e4dc-4c8e-a9b8-a697bea65bb2" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141809Z:523a068f-e4dc-4c8e-a9b8-a697bea65bb2" ], - "Date": [ "Wed, 29 Jun 2022 14:18:09 GMT" ] + "x-ms-correlation-request-id": [ "07086b92-178d-4ad9-9e21-c35fc5afc648" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103838Z:07086b92-178d-4ad9-9e21-c35fc5afc648" ], + "Date": [ "Mon, 23 Jan 2023 10:38:37 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+73": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+75": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "118" ], - "x-ms-client-request-id": [ "e2175b0b-2dbe-4225-8d05-74dc15c47f2c" ], + "x-ms-unique-id": [ "75" ], + "x-ms-client-request-id": [ "228c8fa6-bbd7-4b11-9bfd-e02dbac21c3c" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2897,36 +3126,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "109" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "135" ], "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": [ "dd2cfe89-268b-47fb-b0c5-f6bed94b5d1c" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141816Z:dd2cfe89-268b-47fb-b0c5-f6bed94b5d1c" ], - "Date": [ "Wed, 29 Jun 2022 14:18:16 GMT" ] + "x-ms-correlation-request-id": [ "b012690d-98b2-42c8-b3e3-d3121e1cf0dd" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103843Z:b012690d-98b2-42c8-b3e3-d3121e1cf0dd" ], + "Date": [ "Mon, 23 Jan 2023 10:38:43 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+74": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+76": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "119" ], - "x-ms-client-request-id": [ "1d1c7717-532c-45fd-8cfe-451d2186f619" ], + "x-ms-unique-id": [ "76" ], + "x-ms-client-request-id": [ "983dbf40-2d4d-4654-9dfb-5fbc7ad55054" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2937,36 +3168,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "108" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "134" ], "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": [ "51f32049-d2ce-436a-9044-d0ef66d716e5" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141822Z:51f32049-d2ce-436a-9044-d0ef66d716e5" ], - "Date": [ "Wed, 29 Jun 2022 14:18:21 GMT" ] + "x-ms-correlation-request-id": [ "93b242a1-660a-4948-be1c-6066aa31e475" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103849Z:93b242a1-660a-4948-be1c-6066aa31e475" ], + "Date": [ "Mon, 23 Jan 2023 10:38:49 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+75": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+77": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "120" ], - "x-ms-client-request-id": [ "02484982-6673-4f07-8d84-6fb03049d40a" ], + "x-ms-unique-id": [ "77" ], + "x-ms-client-request-id": [ "381cc8c2-58f9-43a0-931c-0b35af7a0ae1" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -2977,36 +3210,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "107" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "133" ], "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": [ "c8995bf6-c447-4a56-96b6-5d9ccfc527fa" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141827Z:c8995bf6-c447-4a56-96b6-5d9ccfc527fa" ], - "Date": [ "Wed, 29 Jun 2022 14:18:26 GMT" ] + "x-ms-correlation-request-id": [ "715b1f30-d67d-413a-aad7-aa7a03ddbed7" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103855Z:715b1f30-d67d-413a-aad7-aa7a03ddbed7" ], + "Date": [ "Mon, 23 Jan 2023 10:38:54 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+76": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+78": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "121" ], - "x-ms-client-request-id": [ "4811dc98-6976-4d25-a47d-1c740f203371" ], + "x-ms-unique-id": [ "78" ], + "x-ms-client-request-id": [ "aa1be09f-376a-4ff5-942c-e3a16e963280" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3017,36 +3252,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "106" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "132" ], "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": [ "05a7d3fd-75fb-45f7-b031-474893af4620" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141832Z:05a7d3fd-75fb-45f7-b031-474893af4620" ], - "Date": [ "Wed, 29 Jun 2022 14:18:32 GMT" ] + "x-ms-correlation-request-id": [ "c97edaf0-4829-4814-bf72-5152f002cede" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103901Z:c97edaf0-4829-4814-bf72-5152f002cede" ], + "Date": [ "Mon, 23 Jan 2023 10:39:01 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+77": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+79": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "122" ], - "x-ms-client-request-id": [ "684613b3-2543-4c73-bea9-b6ca5ec84fba" ], + "x-ms-unique-id": [ "79" ], + "x-ms-client-request-id": [ "5273888e-a797-4b31-9e36-a00a39afccb6" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3057,36 +3294,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "105" ], "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": [ "de82ad87-4957-414d-9aa3-4968a9baffbc" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141838Z:de82ad87-4957-414d-9aa3-4968a9baffbc" ], - "Date": [ "Wed, 29 Jun 2022 14:18:37 GMT" ] + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "131" ], + "x-ms-correlation-request-id": [ "34cb7577-7ee3-4a42-812c-e61099bc9615" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103907Z:34cb7577-7ee3-4a42-812c-e61099bc9615" ], + "Date": [ "Mon, 23 Jan 2023 10:39:06 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+78": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+80": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "123" ], - "x-ms-client-request-id": [ "0b688b70-f33f-4fbc-9f08-c1aa831e13b9" ], + "x-ms-unique-id": [ "80" ], + "x-ms-client-request-id": [ "75bdf2bc-4bc7-4656-82c5-8c4b12d43a29" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3097,36 +3336,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "104" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "130" ], "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": [ "841ae96e-8067-49df-b15e-8fe3d8f865f1" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141843Z:841ae96e-8067-49df-b15e-8fe3d8f865f1" ], - "Date": [ "Wed, 29 Jun 2022 14:18:42 GMT" ] + "x-ms-correlation-request-id": [ "9ed3a025-740b-4ddf-ace3-383440ad4ff0" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103914Z:9ed3a025-740b-4ddf-ace3-383440ad4ff0" ], + "Date": [ "Mon, 23 Jan 2023 10:39:14 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+79": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+81": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "124" ], - "x-ms-client-request-id": [ "4a62f761-6dae-4607-a6a5-409267026a19" ], + "x-ms-unique-id": [ "81" ], + "x-ms-client-request-id": [ "57d07f8b-74f7-4aa5-a30a-9674ab8d19ae" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3137,36 +3378,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "103" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "129" ], "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": [ "ba566f54-9b4b-42db-9f10-ca53fdf8230b" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141848Z:ba566f54-9b4b-42db-9f10-ca53fdf8230b" ], - "Date": [ "Wed, 29 Jun 2022 14:18:48 GMT" ] + "x-ms-correlation-request-id": [ "0b4114e8-3474-427d-8fd7-7e349cb027a5" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103920Z:0b4114e8-3474-427d-8fd7-7e349cb027a5" ], + "Date": [ "Mon, 23 Jan 2023 10:39:19 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+80": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+82": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "125" ], - "x-ms-client-request-id": [ "5b2ee25b-ed68-4663-8e70-887b9aa8b073" ], + "x-ms-unique-id": [ "82" ], + "x-ms-client-request-id": [ "95d2bf68-0674-4abc-b6d2-cd9395e883cc" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3177,36 +3420,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "102" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "128" ], "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": [ "fc6acd62-5c34-485d-b4c8-a17493ea93b2" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141854Z:fc6acd62-5c34-485d-b4c8-a17493ea93b2" ], - "Date": [ "Wed, 29 Jun 2022 14:18:53 GMT" ] + "x-ms-correlation-request-id": [ "c9ef4a87-2580-4010-9a0e-7f5e594a2c6d" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103926Z:c9ef4a87-2580-4010-9a0e-7f5e594a2c6d" ], + "Date": [ "Mon, 23 Jan 2023 10:39:25 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+81": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+83": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "126" ], - "x-ms-client-request-id": [ "b3398486-2448-4d5c-ae55-cbdb546ad98f" ], + "x-ms-unique-id": [ "83" ], + "x-ms-client-request-id": [ "fb5c5217-7419-4619-836c-e2acce5c970b" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3217,36 +3462,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "101" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "127" ], "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": [ "24b25a3c-a379-41bd-ab6f-43f3905cabd9" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141859Z:24b25a3c-a379-41bd-ab6f-43f3905cabd9" ], - "Date": [ "Wed, 29 Jun 2022 14:18:59 GMT" ] + "x-ms-correlation-request-id": [ "aeb0d694-6159-4811-98e5-d07f0d14ded4" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103931Z:aeb0d694-6159-4811-98e5-d07f0d14ded4" ], + "Date": [ "Mon, 23 Jan 2023 10:39:31 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+82": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+84": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "127" ], - "x-ms-client-request-id": [ "29cbf7e9-785f-44a5-b2da-50ce8366dd13" ], + "x-ms-unique-id": [ "84" ], + "x-ms-client-request-id": [ "698eb92a-0fca-45d6-87db-f7d138db25a2" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3257,36 +3504,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "100" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "126" ], "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": [ "d4a2d799-23ad-4616-a675-9eb45bf45aee" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141905Z:d4a2d799-23ad-4616-a675-9eb45bf45aee" ], - "Date": [ "Wed, 29 Jun 2022 14:19:05 GMT" ] + "x-ms-correlation-request-id": [ "eb5efbdb-acbf-48f2-b4e0-bc6d325f581a" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103937Z:eb5efbdb-acbf-48f2-b4e0-bc6d325f581a" ], + "Date": [ "Mon, 23 Jan 2023 10:39:37 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+83": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+85": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "128" ], - "x-ms-client-request-id": [ "efa36143-23f7-4617-99e7-a5325feb90dc" ], + "x-ms-unique-id": [ "85" ], + "x-ms-client-request-id": [ "ab95c79c-ca4c-459b-b01f-d3d8a67de3a8" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3297,36 +3546,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "99" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "125" ], "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": [ "fd07394d-e6d3-43ee-bc1b-c4fd241db9ef" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141910Z:fd07394d-e6d3-43ee-bc1b-c4fd241db9ef" ], - "Date": [ "Wed, 29 Jun 2022 14:19:10 GMT" ] + "x-ms-correlation-request-id": [ "bf4b36ed-b938-4964-805e-69e57689ab08" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103943Z:bf4b36ed-b938-4964-805e-69e57689ab08" ], + "Date": [ "Mon, 23 Jan 2023 10:39:42 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+84": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+86": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "129" ], - "x-ms-client-request-id": [ "8913043f-506b-42e5-9c56-7c62fda39a6c" ], + "x-ms-unique-id": [ "86" ], + "x-ms-client-request-id": [ "e7c3b7c2-96aa-4c5c-aa61-7f4e1b731bda" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3337,36 +3588,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "98" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "124" ], "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": [ "baaf7e95-5f06-49f0-8635-c72eeb332480" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141916Z:baaf7e95-5f06-49f0-8635-c72eeb332480" ], - "Date": [ "Wed, 29 Jun 2022 14:19:16 GMT" ] + "x-ms-correlation-request-id": [ "a453e6b7-2015-4932-94b7-6e5acfe18f39" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103949Z:a453e6b7-2015-4932-94b7-6e5acfe18f39" ], + "Date": [ "Mon, 23 Jan 2023 10:39:48 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+85": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+87": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "130" ], - "x-ms-client-request-id": [ "f775ac5e-ada8-404d-8b5a-472817bc7fa1" ], + "x-ms-unique-id": [ "87" ], + "x-ms-client-request-id": [ "1b2dfc8e-cd8f-49fb-90c9-6ec0153ec063" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3377,36 +3630,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "97" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "123" ], "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": [ "36ca8049-f7d3-4ad7-b4a3-e303f907edff" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141921Z:36ca8049-f7d3-4ad7-b4a3-e303f907edff" ], - "Date": [ "Wed, 29 Jun 2022 14:19:21 GMT" ] + "x-ms-correlation-request-id": [ "ecafb834-013d-4f21-9d5a-0912e47cd970" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T103955Z:ecafb834-013d-4f21-9d5a-0912e47cd970" ], + "Date": [ "Mon, 23 Jan 2023 10:39:54 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+86": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+88": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "131" ], - "x-ms-client-request-id": [ "3f6555a9-af39-4e4b-ad8f-ed62c8c96b4c" ], + "x-ms-unique-id": [ "88" ], + "x-ms-client-request-id": [ "985a2d53-5164-4313-9f02-189e68d8c2f9" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3417,36 +3672,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "96" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "122" ], "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": [ "b4d80e2f-330d-4303-a21c-71040ef2329a" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141928Z:b4d80e2f-330d-4303-a21c-71040ef2329a" ], - "Date": [ "Wed, 29 Jun 2022 14:19:28 GMT" ] + "x-ms-correlation-request-id": [ "0a6577c2-3194-48db-a223-5e37585c8fc4" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T104000Z:0a6577c2-3194-48db-a223-5e37585c8fc4" ], + "Date": [ "Mon, 23 Jan 2023 10:39:59 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+87": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+89": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "132" ], - "x-ms-client-request-id": [ "6d11072c-e3a0-47e1-b742-cebe5d7a9534" ], + "x-ms-unique-id": [ "89" ], + "x-ms-client-request-id": [ "171e9f76-1488-43e8-b8a0-ad946b6f374c" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3457,36 +3714,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "95" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "121" ], "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": [ "c51b3141-a86c-4c41-9bab-73e1bd07bf05" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141933Z:c51b3141-a86c-4c41-9bab-73e1bd07bf05" ], - "Date": [ "Wed, 29 Jun 2022 14:19:33 GMT" ] + "x-ms-correlation-request-id": [ "c675d526-8f62-4102-b2aa-88fa9e580acc" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T104006Z:c675d526-8f62-4102-b2aa-88fa9e580acc" ], + "Date": [ "Mon, 23 Jan 2023 10:40:06 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+88": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+90": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "133" ], - "x-ms-client-request-id": [ "762e87b0-33af-4eea-94c9-11db6005702a" ], + "x-ms-unique-id": [ "90" ], + "x-ms-client-request-id": [ "2e0903ab-26ba-4354-a0da-5033c2ff35a7" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3497,36 +3756,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "94" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "120" ], "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": [ "f3422cad-2bee-4d2f-87b3-1e26d048f654" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141939Z:f3422cad-2bee-4d2f-87b3-1e26d048f654" ], - "Date": [ "Wed, 29 Jun 2022 14:19:39 GMT" ] + "x-ms-correlation-request-id": [ "ec0bbda1-3642-4270-ba87-a5fa7be694df" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T104012Z:ec0bbda1-3642-4270-ba87-a5fa7be694df" ], + "Date": [ "Mon, 23 Jan 2023 10:40:12 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+89": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+91": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "134" ], - "x-ms-client-request-id": [ "96b79bad-b8f0-4607-9896-f42552dc1757" ], + "x-ms-unique-id": [ "91" ], + "x-ms-client-request-id": [ "757d657f-f8cd-477a-9da1-9f6527c336f4" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3537,36 +3798,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "93" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "119" ], "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": [ "5adddabe-86b0-4246-8869-223bf8c9f294" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141945Z:5adddabe-86b0-4246-8869-223bf8c9f294" ], - "Date": [ "Wed, 29 Jun 2022 14:19:45 GMT" ] + "x-ms-correlation-request-id": [ "97e342f8-3b2c-4713-b0d0-32acfb408e22" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T104018Z:97e342f8-3b2c-4713-b0d0-32acfb408e22" ], + "Date": [ "Mon, 23 Jan 2023 10:40:17 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+90": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+92": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "135" ], - "x-ms-client-request-id": [ "e07899b4-a7bb-4d34-8df9-5025a24eff3d" ], + "x-ms-unique-id": [ "92" ], + "x-ms-client-request-id": [ "dac4c530-fc47-4c89-ad2e-9c10f465e315" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3577,36 +3840,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "92" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "118" ], "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": [ "ccb3fd97-2980-4c64-8d19-0d26ad6bc585" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141950Z:ccb3fd97-2980-4c64-8d19-0d26ad6bc585" ], - "Date": [ "Wed, 29 Jun 2022 14:19:50 GMT" ] + "x-ms-correlation-request-id": [ "672b1d73-12eb-4c0d-acf7-9139d8fbc2cb" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T104023Z:672b1d73-12eb-4c0d-acf7-9139d8fbc2cb" ], + "Date": [ "Mon, 23 Jan 2023 10:40:23 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+91": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+93": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "136" ], - "x-ms-client-request-id": [ "29652b35-2a58-449a-842b-b06ede5102eb" ], + "x-ms-unique-id": [ "93" ], + "x-ms-client-request-id": [ "4f16c56e-1c10-4f97-833d-acfe939ec213" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3617,36 +3882,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "91" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "117" ], "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": [ "fc455c05-7c54-45ef-8f21-c7cafd6c7dfe" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T141956Z:fc455c05-7c54-45ef-8f21-c7cafd6c7dfe" ], - "Date": [ "Wed, 29 Jun 2022 14:19:55 GMT" ] + "x-ms-correlation-request-id": [ "ffdf5ad6-72ba-4b39-884b-6d8d4e0b9d94" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T104029Z:ffdf5ad6-72ba-4b39-884b-6d8d4e0b9d94" ], + "Date": [ "Mon, 23 Jan 2023 10:40:29 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+92": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+94": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "137" ], - "x-ms-client-request-id": [ "837ed637-2b4e-49ca-88ed-d9f8a1917e49" ], + "x-ms-unique-id": [ "94" ], + "x-ms-client-request-id": [ "839e4949-859c-4f92-aa9d-d486b0e00bf2" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3657,36 +3924,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "90" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "116" ], "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": [ "cff78632-613c-4a21-af1b-20500b52b789" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142001Z:cff78632-613c-4a21-af1b-20500b52b789" ], - "Date": [ "Wed, 29 Jun 2022 14:20:01 GMT" ] + "x-ms-correlation-request-id": [ "99a53855-848b-496b-988f-f78fdfb3645c" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T104035Z:99a53855-848b-496b-988f-f78fdfb3645c" ], + "Date": [ "Mon, 23 Jan 2023 10:40:34 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+93": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+95": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "138" ], - "x-ms-client-request-id": [ "b1bb9a7d-8d2c-4f48-b28c-630c72cc6b11" ], + "x-ms-unique-id": [ "95" ], + "x-ms-client-request-id": [ "a1bb30d6-a9b6-4976-a230-e1811c539bc6" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3697,36 +3966,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "89" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "115" ], "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": [ "b34125dc-9e72-4c9b-a6b0-c79281e9d7ca" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142006Z:b34125dc-9e72-4c9b-a6b0-c79281e9d7ca" ], - "Date": [ "Wed, 29 Jun 2022 14:20:06 GMT" ] + "x-ms-correlation-request-id": [ "3681ee84-553f-4879-8130-0a2c2d3452ae" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T104041Z:3681ee84-553f-4879-8130-0a2c2d3452ae" ], + "Date": [ "Mon, 23 Jan 2023 10:40:40 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+94": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+96": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "139" ], - "x-ms-client-request-id": [ "19d1bfa3-8f1f-49ed-b514-646ad2615a57" ], + "x-ms-unique-id": [ "96" ], + "x-ms-client-request-id": [ "87a0b2d4-ed7e-40b3-9de9-8d0e6a36a3fe" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3737,36 +4008,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "88" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "114" ], "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": [ "0e75436f-8a5e-4ba8-b4b2-d0ac9b1463fa" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142012Z:0e75436f-8a5e-4ba8-b4b2-d0ac9b1463fa" ], - "Date": [ "Wed, 29 Jun 2022 14:20:11 GMT" ] + "x-ms-correlation-request-id": [ "ee3d9281-6f4f-4f96-aa02-fc07f0d68a4b" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T104046Z:ee3d9281-6f4f-4f96-aa02-fc07f0d68a4b" ], + "Date": [ "Mon, 23 Jan 2023 10:40:46 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+95": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+97": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "140" ], - "x-ms-client-request-id": [ "ee77dbb1-549a-45fb-903a-374328473ed8" ], + "x-ms-unique-id": [ "97" ], + "x-ms-client-request-id": [ "e65b6dd6-0c03-41b7-ba5a-8753d20c364f" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3777,36 +4050,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "113" ], "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-resource-requests": [ "87" ], - "x-ms-correlation-request-id": [ "2110ff31-0dd9-478e-bfd5-1f5ccb056a34" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142017Z:2110ff31-0dd9-478e-bfd5-1f5ccb056a34" ], - "Date": [ "Wed, 29 Jun 2022 14:20:17 GMT" ] + "x-ms-correlation-request-id": [ "a17ec9e4-45b5-434b-96b1-405f45e06391" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T104052Z:a17ec9e4-45b5-434b-96b1-405f45e06391" ], + "Date": [ "Mon, 23 Jan 2023 10:40:51 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2291" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A14%3A15.6000368Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A34%3A45.3991153Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.Compute/disks\",\"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\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "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/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01+96": { + "DiskBackupScenario+[NoContext]+EndtoEndTest+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01+98": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "141" ], - "x-ms-client-request-id": [ "6f34478e-55c9-4d8f-b144-64b2db982d0d" ], + "x-ms-unique-id": [ "98" ], + "x-ms-client-request-id": [ "d561a590-359a-46ce-bb46-43c4259987ef" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -3817,22 +4092,23 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "86" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "112" ], "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": [ "62fd9b86-c74b-4c6f-94de-06ef9d8047f7" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142023Z:62fd9b86-c74b-4c6f-94de-06ef9d8047f7" ], - "Date": [ "Wed, 29 Jun 2022 14:20:23 GMT" ] + "x-ms-correlation-request-id": [ "6a5a9ba6-4376-4f0f-b178-192b921912cb" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230123T104058Z:6a5a9ba6-4376-4f0f-b178-192b921912cb" ], + "Date": [ "Mon, 23 Jan 2023 10:40:57 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2324" ], + "Content-Length": [ "2442" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"18daf32a-29f1-4297-82a8-6c93c3ae28ab\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A20%3A22.8021722Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:14:15.1379376Z\",\"endTime\":\"2022-06-29T14:20:22.4338586Z\",\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT6M7.295921S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":\"51e7c02ea3854cb083c086196c5c2251\",\"recoveryPointTime\":\"2022-06-29T14:13:10.4222924Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredrzpqay21xi\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"Completed\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/912083a3-8b7d-4baf-ac75-18739a4b722d\",\"name\":\"912083a3-8b7d-4baf-ac75-18739a4b722d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"subscriptionId\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"backupInstanceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskDailyPolicy\",\"dataSourceId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2\",\"vaultName\":\"sarath-vault\",\"backupInstanceFriendlyName\":\"sarathdisk2\",\"policyName\":\"DiskDailyPolicy\",\"sourceResourceGroup\":\"sarath-rg\",\"dataSourceSetName\":null,\"dataSourceName\":\"sarathdisk2\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T10%3A40%3A52.9634169Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T10:34:45.0420711Z\",\"endTime\":\"2023-01-23T10:40:52.6925277Z\",\"dataSourceType\":\"Microsoft.Compute/disks\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT6M7.6504566S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":\"a412eca47ca64a7b9da621fba51559fa\",\"recoveryPointTime\":\"2023-01-23T10:33:50.1743369Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredvq5fnu0zbm\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"Completed\",\"taskProgress\":null,\"additionalDetails\":{\"DataTransferredInBytes\":\"0\",\"TaskId\":\"25c5c7fa-6bb3-497f-81bf-cd7fc88d8603\",\"DatasourceType\":\"Microsoft.Compute/disks\"}}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupJobs/bb250850-d917-4b79-8391-9d53eb57f6e9\",\"name\":\"bb250850-d917-4b79-8391-9d53eb57f6e9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/DataProtection/test/DiskBackupScenario.Tests.ps1 b/src/DataProtection/test/DiskBackupScenario.Tests.ps1 index a51265344ce2..009c84c51f95 100644 --- a/src/DataProtection/test/DiskBackupScenario.Tests.ps1 +++ b/src/DataProtection/test/DiskBackupScenario.Tests.ps1 @@ -24,8 +24,7 @@ Describe 'DiskBackupScenario' { $vault = Get-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName $rgName -VaultName $vaultName $defaultPolicy = Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDisk $policyId = "/subscriptions/" + $sub + "/resourceGroups/" + $rgName + "/providers/Microsoft.DataProtection/backupVaults/" + $vaultName + "/backupPolicies/" + $policyName - $backupInstance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDisk -DatasourceLocation centraluseuap -PolicyId $policyId -DatasourceId $diskId - $backupInstance.Property.PolicyInfo.PolicyParameter.DataStoreParametersList[0].ResourceGroupId = $snapshotRg + $backupInstance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDisk -DatasourceLocation centraluseuap -PolicyId $policyId -DatasourceId $diskId -SnapshotResourceGroupId $snapshotRg $instances = Get-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName $rgName -VaultName $vaultName $instance = $instances | where-Object {$_.Property.DataSourceInfo.ResourceId -eq $diskId} @@ -36,8 +35,11 @@ Describe 'DiskBackupScenario' { while($protectionStatus -ne "ProtectionConfigured") { Start-Sleep -Seconds 5 + $instance = Get-AzDataProtectionBackupInstance -SubscriptionId $sub -ResourceGroupName $rgName -VaultName $vaultName -Name $backupInstanceName $protectionStatus = $instance.Property.ProtectionStatus.Status + + # configure backup if not configured } $backupPolicyId = $instance.Property.PolicyInfo.PolicyId @@ -67,5 +69,4 @@ Describe 'DiskBackupScenario' { $jobstatus = $currentjob.Status } } - } diff --git a/src/DataProtection/test/Find-AzDataProtectionRestorableTimeRange.Recording.json b/src/DataProtection/test/Find-AzDataProtectionRestorableTimeRange.Recording.json index a642c6883a4f..a96729e96a65 100644 --- a/src/DataProtection/test/Find-AzDataProtectionRestorableTimeRange.Recording.json +++ b/src/DataProtection/test/Find-AzDataProtectionRestorableTimeRange.Recording.json @@ -1,16 +1,17 @@ { - "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=2022-05-01+1": { + "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=2022-12-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=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "142" ], - "x-ms-client-request-id": [ "882f16a0-8e01-4faa-a5ca-24a4ab172790" ], + "x-ms-unique-id": [ "227" ], + "x-ms-client-request-id": [ "ffa8b310-91b1-40ac-b1ce-dbdf66735b10" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -24,25 +25,27 @@ "x-ms-ratelimit-remaining-subscription-resource-requests": [ "1996" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Kestrel" ], - "x-ms-request-id": [ "c0a6c5e7-6a6c-49ec-8e73-cb473effabd4" ], - "x-ms-correlation-request-id": [ "c0a6c5e7-6a6c-49ec-8e73-cb473effabd4" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142025Z:c0a6c5e7-6a6c-49ec-8e73-cb473effabd4" ], + "x-ms-request-id": [ "7cc7638e-74fb-44c4-a4b1-ea511acbc6f5" ], + "x-ms-correlation-request-id": [ "7cc7638e-74fb-44c4-a4b1-ea511acbc6f5" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T131226Z:7cc7638e-74fb-44c4-a4b1-ea511acbc6f5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Date": [ "Wed, 29 Jun 2022 14:20:25 GMT" ] + "Date": [ "Sun, 22 Jan 2023 13:12:26 GMT" ] }, "ContentHeaders": { "Content-Length": [ "8140" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"friendlyName\":\"azdrill1_OsDisk_1_649995dd9b32479d98a035cebc8773f7\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ECYZONEDOWNDRILL/providers/Microsoft.Compute/disks/azdrill1_OsDisk_1_649995dd9b32479d98a035cebc8773f7\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ECYZONEDOWNDRILL/providers/Microsoft.Compute/disks/azdrill1_OsDisk_1_649995dd9b32479d98a035cebc8773f7\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"azdrill1_OsDisk_1_649995dd9b32479d98a035cebc8773f7\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"eastus2euap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/jkkl\",\"policyVersion\":\"\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/adigupt-rg\"}]}},\"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/azdrill1_OsDisk_1_649995dd9b32479d98a035-azdrill1_OsDisk_1_649995dd9b32479d98a035-7d220d9b-c6ad-4b50-b53b-8b5712a9c03d\",\"name\":\"azdrill1_OsDisk_1_649995dd9b32479d98a035-azdrill1_OsDisk_1_649995dd9b32479d98a035-7d220d9b-c6ad-4b50-b53b-8b5712a9c03d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"arpja-drl-zn1_OsDisk_1_70ef9961a22046bea3b17e07fcfc7509\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ECYZONEDOWNDRILL/providers/Microsoft.Compute/disks/arpja-drl-zn1_OsDisk_1_70ef9961a22046bea3b17e07fcfc7509\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ECYZONEDOWNDRILL/providers/Microsoft.Compute/disks/arpja-drl-zn1_OsDisk_1_70ef9961a22046bea3b17e07fcfc7509\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"arpja-drl-zn1_OsDisk_1_70ef9961a22046bea3b17e07fcfc7509\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"eastus2euap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/jkkl\",\"policyVersion\":\"\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/adigupt-rg\"}]}},\"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/arpja-drl-zn1_OsDisk_1_70ef9961a22046bea-arpja-drl-zn1_OsDisk_1_70ef9961a22046bea-7d220d9b-c6ad-4b50-b53b-8b5712a9c03f\",\"name\":\"arpja-drl-zn1_OsDisk_1_70ef9961a22046bea-arpja-drl-zn1_OsDisk_1_70ef9961a22046bea-7d220d9b-c6ad-4b50-b53b-8b5712a9c03f\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"arpja-drl-zn2_OsDisk_1_541077f4840843a8acef4922fa77155c\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ECYZONEDOWNDRILL/providers/Microsoft.Compute/disks/arpja-drl-zn2_OsDisk_1_541077f4840843a8acef4922fa77155c\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ECYZONEDOWNDRILL/providers/Microsoft.Compute/disks/arpja-drl-zn2_OsDisk_1_541077f4840843a8acef4922fa77155c\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"arpja-drl-zn2_OsDisk_1_541077f4840843a8acef4922fa77155c\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"eastus2euap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/jkkl\",\"policyVersion\":\"\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/adigupt-rg\"}]}},\"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/arpja-drl-zn2_OsDisk_1_541077f4840843a8a-arpja-drl-zn2_OsDisk_1_541077f4840843a8a-7d220d9b-c6ad-4b50-b53b-8b5712a9c03e\",\"name\":\"arpja-drl-zn2_OsDisk_1_541077f4840843a8a-arpja-drl-zn2_OsDisk_1_541077f4840843a8a-7d220d9b-c6ad-4b50-b53b-8b5712a9c03e\",\"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/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"name\":\"jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"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/policyName\"},\"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-82904d0f-2c40-4b4e-8780-d2ad2ab7e409\",\"name\":\"ecystorageaccount-ecystorageaccount-82904d0f-2c40-4b4e-8780-d2ad2ab7e409\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"}]}" + "Content": "{\"value\":[{\"properties\":{\"friendlyName\":\"azdrill1_OsDisk_1_649995dd9b32479d98a035cebc8773f7\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ECYZONEDOWNDRILL/providers/Microsoft.Compute/disks/azdrill1_OsDisk_1_649995dd9b32479d98a035cebc8773f7\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ECYZONEDOWNDRILL/providers/Microsoft.Compute/disks/azdrill1_OsDisk_1_649995dd9b32479d98a035cebc8773f7\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"azdrill1_OsDisk_1_649995dd9b32479d98a035cebc8773f7\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"eastus2euap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/jkkl\",\"policyVersion\":\"\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/adigupt-rg\"}]}},\"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/azdrill1_OsDisk_1_649995dd9b32479d98a035-azdrill1_OsDisk_1_649995dd9b32479d98a035-7d220d9b-c6ad-4b50-b53b-8b5712a9c03d\",\"name\":\"azdrill1_OsDisk_1_649995dd9b32479d98a035-azdrill1_OsDisk_1_649995dd9b32479d98a035-7d220d9b-c6ad-4b50-b53b-8b5712a9c03d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"arpja-drl-zn1_OsDisk_1_70ef9961a22046bea3b17e07fcfc7509\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ECYZONEDOWNDRILL/providers/Microsoft.Compute/disks/arpja-drl-zn1_OsDisk_1_70ef9961a22046bea3b17e07fcfc7509\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ECYZONEDOWNDRILL/providers/Microsoft.Compute/disks/arpja-drl-zn1_OsDisk_1_70ef9961a22046bea3b17e07fcfc7509\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"arpja-drl-zn1_OsDisk_1_70ef9961a22046bea3b17e07fcfc7509\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"eastus2euap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/jkkl\",\"policyVersion\":\"\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/adigupt-rg\"}]}},\"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/arpja-drl-zn1_OsDisk_1_70ef9961a22046bea-arpja-drl-zn1_OsDisk_1_70ef9961a22046bea-7d220d9b-c6ad-4b50-b53b-8b5712a9c03f\",\"name\":\"arpja-drl-zn1_OsDisk_1_70ef9961a22046bea-arpja-drl-zn1_OsDisk_1_70ef9961a22046bea-7d220d9b-c6ad-4b50-b53b-8b5712a9c03f\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"arpja-drl-zn2_OsDisk_1_541077f4840843a8acef4922fa77155c\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ECYZONEDOWNDRILL/providers/Microsoft.Compute/disks/arpja-drl-zn2_OsDisk_1_541077f4840843a8acef4922fa77155c\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ECYZONEDOWNDRILL/providers/Microsoft.Compute/disks/arpja-drl-zn2_OsDisk_1_541077f4840843a8acef4922fa77155c\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"arpja-drl-zn2_OsDisk_1_541077f4840843a8acef4922fa77155c\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"eastus2euap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/jkkl\",\"policyVersion\":\"\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/adigupt-rg\"}]}},\"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/arpja-drl-zn2_OsDisk_1_541077f4840843a8a-arpja-drl-zn2_OsDisk_1_541077f4840843a8a-7d220d9b-c6ad-4b50-b53b-8b5712a9c03e\",\"name\":\"arpja-drl-zn2_OsDisk_1_541077f4840843a8a-arpja-drl-zn2_OsDisk_1_541077f4840843a8a-7d220d9b-c6ad-4b50-b53b-8b5712a9c03e\",\"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/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"name\":\"jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"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/policyName\"},\"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-82904d0f-2c40-4b4e-8780-d2ad2ab7e409\",\"name\":\"ecystorageaccount-ecystorageaccount-82904d0f-2c40-4b4e-8780-d2ad2ab7e409\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"}]}", + "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=2022-05-01+2": { + "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=2022-12-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=2022-05-01", - "Content": "{\r\n \"sourceDataStoreType\": \"OperationalStore\",\r\n \"startTime\": \"2022-05-30T19:50:26.0000000Z\",\r\n \"endTime\": \"2022-06-29T19:50:26.0000000Z\"\r\n}", + "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=2022-12-01", + "Content": "{\r\n \"sourceDataStoreType\": \"OperationalStore\",\r\n \"startTime\": \"2022-12-23T18:42:28.0000000Z\",\r\n \"endTime\": \"2023-01-22T18:42:28.0000000Z\"\r\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { @@ -55,21 +58,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Kestrel" ], - "x-ms-request-id": [ "2bc2d426-9f56-446b-b97d-3be0ca47d286" ], - "x-ms-correlation-request-id": [ "2bc2d426-9f56-446b-b97d-3be0ca47d286" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142027Z:2bc2d426-9f56-446b-b97d-3be0ca47d286" ], + "x-ms-request-id": [ "9937e2b6-978c-4e93-87e8-ac26b1138672" ], + "x-ms-correlation-request-id": [ "9937e2b6-978c-4e93-87e8-ac26b1138672" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T131227Z:9937e2b6-978c-4e93-87e8-ac26b1138672" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Date": [ "Wed, 29 Jun 2022 14:20:27 GMT" ] + "Date": [ "Sun, 22 Jan 2023 13:12:27 GMT" ] }, "ContentHeaders": { "Content-Length": [ "389" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"restorableTimeRanges\":[{\"startTime\":\"2022-05-30T19:50:26.0000000Z\",\"endTime\":\"2022-06-29T14:20:27.9069583Z\",\"objectType\":\"RestorableTimeRange\"}],\"objectType\":\"AzureBackupFindRestorableTimeRangesResponse\"},\"id\":\"jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/findRestorableTimeRanges\"}" + "Content": "{\"properties\":{\"restorableTimeRanges\":[{\"startTime\":\"2022-12-23T18:42:28.0000000Z\",\"endTime\":\"2023-01-22T13:12:27.5305173Z\",\"objectType\":\"RestorableTimeRange\"}],\"objectType\":\"AzureBackupFindRestorableTimeRangesResponse\"},\"id\":\"jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/findRestorableTimeRanges\"}", + "isContentBase64": false } } } \ 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 ce53690192ce..515ae78d3384 100644 --- a/src/DataProtection/test/Get-AzDataProtectionBackupInstance.Recording.json +++ b/src/DataProtection/test/Get-AzDataProtectionBackupInstance.Recording.json @@ -1,16 +1,17 @@ { - "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=2022-05-01+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=2022-12-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=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "144" ], - "x-ms-client-request-id": [ "493521b5-159f-4d4a-b189-31c5a065cb0a" ], + "x-ms-unique-id": [ "229" ], + "x-ms-client-request-id": [ "0efe25e8-e1fe-4d48-a579-4f0aa922e811" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -27,30 +28,32 @@ "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "1995" ], - "x-ms-correlation-request-id": [ "fe6979e4-47fb-4791-80ac-2fad8d33f47c" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142028Z:fe6979e4-47fb-4791-80ac-2fad8d33f47c" ], - "Date": [ "Wed, 29 Jun 2022 14:20:28 GMT" ] + "x-ms-correlation-request-id": [ "e99d2517-8b5e-4bb5-912d-d765239d402a" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T131228Z:e99d2517-8b5e-4bb5-912d-d765239d402a" ], + "Date": [ "Sun, 22 Jan 2023 13:12:28 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "20876" ], + "Content-Length": [ "23559" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"friendlyName\":\"7k0ccypod01otds1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blob-Backup/providers/Microsoft.Storage/storageAccounts/7k0ccypod01otds1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blob-Backup/providers/Microsoft.Storage/storageAccounts/7k0ccypod01otds1\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"7k0ccypod01otds1\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobpolicy\",\"policyVersion\":\"\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"\"}]}},\"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/7k0ccypod01otds1-7k0ccypod01otds1-520ff77c-75eb-4cd4-a0d2-ad4ebb32d097\",\"name\":\"7k0ccypod01otds1-7k0ccypod01otds1-520ff77c-75eb-4cd4-a0d2-ad4ebb32d097\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"clibugbashsa\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ABC/providers/Microsoft.Storage/storageAccounts/clibugbashsa\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"clibugbashsa\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobclipolicy\"},\"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/clibugbashsa-clibugbashsa-9349e670-c432-11eb-aefe-b0a4601328c8\",\"name\":\"clibugbashsa-clibugbashsa-9349e670-c432-11eb-aefe-b0a4601328c8\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"randomsa\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ABC/providers/Microsoft.Storage/storageAccounts/randomsa\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"randomsa\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"randomlocation\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobclipolicy\"},\"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\":\"6ef868a7-ce1a-4273-9e9d-7623d3b3f052-Ibz\"}}},\"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\":\"6ef868a7-ce1a-4273-9e9d-7623d3b3f052-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/randomsa-randomsa-1445b05b-c439-11eb-b183-c8f750f92764\",\"name\":\"randomsa-randomsa-1445b05b-c439-11eb-b183-c8f750f92764\",\"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\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"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\":\"temp3\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp3\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp3\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"b17f01a6-bc95-11eb-b3aa-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"b17f01a6-bc95-11eb-b3aa-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp3-temp3-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp3-temp3-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp2\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp2\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp2\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5119fb3a-1e8d-4c31-a4aa-94ec18b97039-Ibz\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5119fb3a-1e8d-4c31-a4aa-94ec18b97039-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp2-temp2-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp2-temp2-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp5\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp5\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp5\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"059c9281-bca3-11eb-b183-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"059c9281-bca3-11eb-b183-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp5-temp5-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp5-temp5-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"clitest\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/clitest\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"clitest\",\"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/DiskPSPolicy2\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionStopped\"},\"currentProtectionState\":\"ProtectionStopped\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/clitest-clitest-3165cfe7-a932-11eb-9d24-9cfce85d4fae\",\"name\":\"clitest-clitest-3165cfe7-a932-11eb-9d24-9cfce85d4fae\",\"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/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"name\":\"sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"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/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"name\":\"sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"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\":\"ProtectionStopped\"},\"currentProtectionState\":\"ProtectionStopped\",\"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\":\"temp4\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp4\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp4\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5f08710a-bc96-11eb-863b-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5f08710a-bc96-11eb-863b-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp4-temp4-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp4-temp4-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"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\"},\"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\"}]}" + "Content": "{\"value\":[{\"properties\":{\"friendlyName\":\"c12ccypod01otds1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/abhinitRG/providers/Microsoft.Storage/storageAccounts/c12ccypod01otds1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/abhinitRG/providers/Microsoft.Storage/storageAccounts/c12ccypod01otds1\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"c12ccypod01otds1\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"dataSourceSetInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/abhinitRG/providers/Microsoft.Storage/storageAccounts/c12ccypod01otds1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/abhinitRG/providers/Microsoft.Storage/storageAccounts/c12ccypod01otds1\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"c12ccypod01otds1\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"DatasourceSet\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobpolicy\",\"policyVersion\":\"\",\"policyParameters\":{\"backupDatasourceParametersList\":[{\"objectType\":\"BlobBackupDatasourceParameters\",\"containersList\":[]}]}},\"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/c12ccypod01otds1-c12ccypod01otds1-cecd7ec5-9695-484f-b1ff-76347ce94064\",\"name\":\"c12ccypod01otds1-c12ccypod01otds1-cecd7ec5-9695-484f-b1ff-76347ce94064\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"7k0ccypod01otds1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blob-Backup/providers/Microsoft.Storage/storageAccounts/7k0ccypod01otds1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blob-Backup/providers/Microsoft.Storage/storageAccounts/7k0ccypod01otds1\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"7k0ccypod01otds1\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobpolicy\",\"policyVersion\":\"\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"\"}]}},\"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/7k0ccypod01otds1-7k0ccypod01otds1-520ff77c-75eb-4cd4-a0d2-ad4ebb32d097\",\"name\":\"7k0ccypod01otds1-7k0ccypod01otds1-520ff77c-75eb-4cd4-a0d2-ad4ebb32d097\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"clibugbashsa\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ABC/providers/Microsoft.Storage/storageAccounts/clibugbashsa\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"clibugbashsa\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobclipolicy\"},\"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/clibugbashsa-clibugbashsa-9349e670-c432-11eb-aefe-b0a4601328c8\",\"name\":\"clibugbashsa-clibugbashsa-9349e670-c432-11eb-aefe-b0a4601328c8\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"randomsa\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ABC/providers/Microsoft.Storage/storageAccounts/randomsa\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"randomsa\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"randomlocation\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobclipolicy\"},\"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\":\"6ef868a7-ce1a-4273-9e9d-7623d3b3f052-Ibz\"}}},\"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\":\"6ef868a7-ce1a-4273-9e9d-7623d3b3f052-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/randomsa-randomsa-1445b05b-c439-11eb-b183-c8f750f92764\",\"name\":\"randomsa-randomsa-1445b05b-c439-11eb-b183-c8f750f92764\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp3\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp3\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp3\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"b17f01a6-bc95-11eb-b3aa-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"b17f01a6-bc95-11eb-b3aa-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp3-temp3-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp3-temp3-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp2\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp2\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp2\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5119fb3a-1e8d-4c31-a4aa-94ec18b97039-Ibz\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5119fb3a-1e8d-4c31-a4aa-94ec18b97039-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp2-temp2-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp2-temp2-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp5\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp5\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp5\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"059c9281-bca3-11eb-b183-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"059c9281-bca3-11eb-b183-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp5-temp5-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp5-temp5-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"clitest\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/clitest\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"clitest\",\"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/DiskPSPolicy2\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionStopped\"},\"currentProtectionState\":\"ProtectionStopped\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/clitest-clitest-3165cfe7-a932-11eb-9d24-9cfce85d4fae\",\"name\":\"clitest-clitest-3165cfe7-a932-11eb-9d24-9cfce85d4fae\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"sarath-restored-disk-1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarath-restored-disk-1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarath-restored-disk-1\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarath-restored-disk-1\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"dataSourceSetInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarath-restored-disk-1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarath-restored-disk-1\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarath-restored-disk-1\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"DatasourceSet\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyVersion\":\"\",\"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/sarath-restored-disk-1-sarath-restored-disk-1-cecd7ec5-9695-484f-b1ff-76347ce94087\",\"name\":\"sarath-restored-disk-1-sarath-restored-disk-1-cecd7ec5-9695-484f-b1ff-76347ce94087\",\"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/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"name\":\"sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"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/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"name\":\"sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"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\":\"ProtectionStopped\"},\"currentProtectionState\":\"ProtectionStopped\",\"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\":\"temp4\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp4\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp4\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5f08710a-bc96-11eb-863b-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5f08710a-bc96-11eb-863b-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp4-temp4-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp4-temp4-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"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\"},\"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\"}]}", + "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=2022-05-01+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=2022-12-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=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "145" ], - "x-ms-client-request-id": [ "434f26d4-d6f8-49a9-ab98-0a613f352f2a" ], + "x-ms-unique-id": [ "230" ], + "x-ms-client-request-id": [ "70ca1398-3f8a-4687-97fd-ebbce8ca9b5c" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -67,30 +70,32 @@ "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "1994" ], - "x-ms-correlation-request-id": [ "c5f2a4b0-371a-4166-811c-9f07daeed2de" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142029Z:c5f2a4b0-371a-4166-811c-9f07daeed2de" ], - "Date": [ "Wed, 29 Jun 2022 14:20:28 GMT" ] + "x-ms-correlation-request-id": [ "28d39210-525e-429c-8a2c-dd482af13941" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T131229Z:28d39210-525e-429c-8a2c-dd482af13941" ], + "Date": [ "Sun, 22 Jan 2023 13:12:28 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "20876" ], + "Content-Length": [ "23559" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"friendlyName\":\"7k0ccypod01otds1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blob-Backup/providers/Microsoft.Storage/storageAccounts/7k0ccypod01otds1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blob-Backup/providers/Microsoft.Storage/storageAccounts/7k0ccypod01otds1\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"7k0ccypod01otds1\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobpolicy\",\"policyVersion\":\"\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"\"}]}},\"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/7k0ccypod01otds1-7k0ccypod01otds1-520ff77c-75eb-4cd4-a0d2-ad4ebb32d097\",\"name\":\"7k0ccypod01otds1-7k0ccypod01otds1-520ff77c-75eb-4cd4-a0d2-ad4ebb32d097\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"clibugbashsa\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ABC/providers/Microsoft.Storage/storageAccounts/clibugbashsa\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"clibugbashsa\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobclipolicy\"},\"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/clibugbashsa-clibugbashsa-9349e670-c432-11eb-aefe-b0a4601328c8\",\"name\":\"clibugbashsa-clibugbashsa-9349e670-c432-11eb-aefe-b0a4601328c8\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"randomsa\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ABC/providers/Microsoft.Storage/storageAccounts/randomsa\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"randomsa\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"randomlocation\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobclipolicy\"},\"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\":\"6ef868a7-ce1a-4273-9e9d-7623d3b3f052-Ibz\"}}},\"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\":\"6ef868a7-ce1a-4273-9e9d-7623d3b3f052-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/randomsa-randomsa-1445b05b-c439-11eb-b183-c8f750f92764\",\"name\":\"randomsa-randomsa-1445b05b-c439-11eb-b183-c8f750f92764\",\"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\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"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\":\"temp3\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp3\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp3\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"b17f01a6-bc95-11eb-b3aa-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"b17f01a6-bc95-11eb-b3aa-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp3-temp3-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp3-temp3-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp2\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp2\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp2\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5119fb3a-1e8d-4c31-a4aa-94ec18b97039-Ibz\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5119fb3a-1e8d-4c31-a4aa-94ec18b97039-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp2-temp2-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp2-temp2-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp5\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp5\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp5\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"059c9281-bca3-11eb-b183-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"059c9281-bca3-11eb-b183-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp5-temp5-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp5-temp5-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"clitest\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/clitest\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"clitest\",\"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/DiskPSPolicy2\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionStopped\"},\"currentProtectionState\":\"ProtectionStopped\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/clitest-clitest-3165cfe7-a932-11eb-9d24-9cfce85d4fae\",\"name\":\"clitest-clitest-3165cfe7-a932-11eb-9d24-9cfce85d4fae\",\"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/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"name\":\"sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"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/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"name\":\"sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"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\":\"ProtectionStopped\"},\"currentProtectionState\":\"ProtectionStopped\",\"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\":\"temp4\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp4\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp4\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5f08710a-bc96-11eb-863b-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5f08710a-bc96-11eb-863b-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp4-temp4-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp4-temp4-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"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\"},\"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\"}]}" + "Content": "{\"value\":[{\"properties\":{\"friendlyName\":\"c12ccypod01otds1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/abhinitRG/providers/Microsoft.Storage/storageAccounts/c12ccypod01otds1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/abhinitRG/providers/Microsoft.Storage/storageAccounts/c12ccypod01otds1\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"c12ccypod01otds1\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"dataSourceSetInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/abhinitRG/providers/Microsoft.Storage/storageAccounts/c12ccypod01otds1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/abhinitRG/providers/Microsoft.Storage/storageAccounts/c12ccypod01otds1\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"c12ccypod01otds1\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"DatasourceSet\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobpolicy\",\"policyVersion\":\"\",\"policyParameters\":{\"backupDatasourceParametersList\":[{\"objectType\":\"BlobBackupDatasourceParameters\",\"containersList\":[]}]}},\"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/c12ccypod01otds1-c12ccypod01otds1-cecd7ec5-9695-484f-b1ff-76347ce94064\",\"name\":\"c12ccypod01otds1-c12ccypod01otds1-cecd7ec5-9695-484f-b1ff-76347ce94064\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"7k0ccypod01otds1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blob-Backup/providers/Microsoft.Storage/storageAccounts/7k0ccypod01otds1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blob-Backup/providers/Microsoft.Storage/storageAccounts/7k0ccypod01otds1\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"7k0ccypod01otds1\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobpolicy\",\"policyVersion\":\"\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"\"}]}},\"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/7k0ccypod01otds1-7k0ccypod01otds1-520ff77c-75eb-4cd4-a0d2-ad4ebb32d097\",\"name\":\"7k0ccypod01otds1-7k0ccypod01otds1-520ff77c-75eb-4cd4-a0d2-ad4ebb32d097\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"clibugbashsa\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ABC/providers/Microsoft.Storage/storageAccounts/clibugbashsa\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"clibugbashsa\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobclipolicy\"},\"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/clibugbashsa-clibugbashsa-9349e670-c432-11eb-aefe-b0a4601328c8\",\"name\":\"clibugbashsa-clibugbashsa-9349e670-c432-11eb-aefe-b0a4601328c8\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"randomsa\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ABC/providers/Microsoft.Storage/storageAccounts/randomsa\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"randomsa\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"randomlocation\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobclipolicy\"},\"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\":\"6ef868a7-ce1a-4273-9e9d-7623d3b3f052-Ibz\"}}},\"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\":\"6ef868a7-ce1a-4273-9e9d-7623d3b3f052-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/randomsa-randomsa-1445b05b-c439-11eb-b183-c8f750f92764\",\"name\":\"randomsa-randomsa-1445b05b-c439-11eb-b183-c8f750f92764\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp3\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp3\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp3\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"b17f01a6-bc95-11eb-b3aa-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"b17f01a6-bc95-11eb-b3aa-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp3-temp3-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp3-temp3-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp2\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp2\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp2\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5119fb3a-1e8d-4c31-a4aa-94ec18b97039-Ibz\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5119fb3a-1e8d-4c31-a4aa-94ec18b97039-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp2-temp2-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp2-temp2-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp5\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp5\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp5\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"059c9281-bca3-11eb-b183-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"059c9281-bca3-11eb-b183-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp5-temp5-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp5-temp5-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"clitest\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/clitest\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"clitest\",\"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/DiskPSPolicy2\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionStopped\"},\"currentProtectionState\":\"ProtectionStopped\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/clitest-clitest-3165cfe7-a932-11eb-9d24-9cfce85d4fae\",\"name\":\"clitest-clitest-3165cfe7-a932-11eb-9d24-9cfce85d4fae\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"sarath-restored-disk-1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarath-restored-disk-1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarath-restored-disk-1\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarath-restored-disk-1\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"dataSourceSetInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarath-restored-disk-1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarath-restored-disk-1\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarath-restored-disk-1\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"DatasourceSet\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyVersion\":\"\",\"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/sarath-restored-disk-1-sarath-restored-disk-1-cecd7ec5-9695-484f-b1ff-76347ce94087\",\"name\":\"sarath-restored-disk-1-sarath-restored-disk-1-cecd7ec5-9695-484f-b1ff-76347ce94087\",\"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/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"name\":\"sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"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/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"name\":\"sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"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\":\"ProtectionStopped\"},\"currentProtectionState\":\"ProtectionStopped\",\"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\":\"temp4\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp4\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp4\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5f08710a-bc96-11eb-863b-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5f08710a-bc96-11eb-863b-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp4-temp4-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp4-temp4-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"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\"},\"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\"}]}", + "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/7k0ccypod01otds1-7k0ccypod01otds1-520ff77c-75eb-4cd4-a0d2-ad4ebb32d097?api-version=2022-05-01+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/c12ccypod01otds1-c12ccypod01otds1-cecd7ec5-9695-484f-b1ff-76347ce94064?api-version=2022-12-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/7k0ccypod01otds1-7k0ccypod01otds1-520ff77c-75eb-4cd4-a0d2-ad4ebb32d097?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/c12ccypod01otds1-c12ccypod01otds1-cecd7ec5-9695-484f-b1ff-76347ce94064?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "146" ], - "x-ms-client-request-id": [ "a8d865e2-d106-4067-884c-3d6cbbbdc563" ], + "x-ms-unique-id": [ "231" ], + "x-ms-client-request-id": [ "dd52dfd2-e42a-441b-9db6-c993f67c533b" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -107,16 +112,17 @@ "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "1993" ], - "x-ms-correlation-request-id": [ "15f78aaf-ced5-4981-9128-810b12f5b07b" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142029Z:15f78aaf-ced5-4981-9128-810b12f5b07b" ], - "Date": [ "Wed, 29 Jun 2022 14:20:28 GMT" ] + "x-ms-correlation-request-id": [ "303c0a4f-b713-4fb1-a678-a9cb97605614" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T131229Z:303c0a4f-b713-4fb1-a678-a9cb97605614" ], + "Date": [ "Sun, 22 Jan 2023 13:12:29 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1495" ], + "Content-Length": [ "2005" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"friendlyName\":\"7k0ccypod01otds1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blob-Backup/providers/Microsoft.Storage/storageAccounts/7k0ccypod01otds1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blob-Backup/providers/Microsoft.Storage/storageAccounts/7k0ccypod01otds1\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"7k0ccypod01otds1\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobpolicy\",\"policyVersion\":\"\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"\"}]}},\"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/7k0ccypod01otds1-7k0ccypod01otds1-520ff77c-75eb-4cd4-a0d2-ad4ebb32d097\",\"name\":\"7k0ccypod01otds1-7k0ccypod01otds1-520ff77c-75eb-4cd4-a0d2-ad4ebb32d097\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"}" + "Content": "{\"properties\":{\"friendlyName\":\"c12ccypod01otds1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/abhinitRG/providers/Microsoft.Storage/storageAccounts/c12ccypod01otds1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/abhinitRG/providers/Microsoft.Storage/storageAccounts/c12ccypod01otds1\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"c12ccypod01otds1\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"dataSourceSetInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/abhinitRG/providers/Microsoft.Storage/storageAccounts/c12ccypod01otds1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/abhinitRG/providers/Microsoft.Storage/storageAccounts/c12ccypod01otds1\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"c12ccypod01otds1\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"DatasourceSet\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobpolicy\",\"policyVersion\":\"\",\"policyParameters\":{\"backupDatasourceParametersList\":[{\"objectType\":\"BlobBackupDatasourceParameters\",\"containersList\":[]}]}},\"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/c12ccypod01otds1-c12ccypod01otds1-cecd7ec5-9695-484f-b1ff-76347ce94064\",\"name\":\"c12ccypod01otds1-c12ccypod01otds1-cecd7ec5-9695-484f-b1ff-76347ce94064\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/DataProtection/test/Get-AzDataProtectionBackupPolicy.Recording.json b/src/DataProtection/test/Get-AzDataProtectionBackupPolicy.Recording.json index 030da05c01de..e8cfb6d31102 100644 --- a/src/DataProtection/test/Get-AzDataProtectionBackupPolicy.Recording.json +++ b/src/DataProtection/test/Get-AzDataProtectionBackupPolicy.Recording.json @@ -1,16 +1,17 @@ { - "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=2022-05-01+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=2022-12-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=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "147" ], - "x-ms-client-request-id": [ "e0360c1a-8bd1-406a-8dcc-06e396eb2ddd" ], + "x-ms-unique-id": [ "232" ], + "x-ms-client-request-id": [ "5374f6a5-930b-4b9f-993d-f3bba28e2ac8" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -27,16 +28,17 @@ "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "1992" ], - "x-ms-correlation-request-id": [ "6f17dea1-50a0-4084-afc9-ce05aa886791" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142031Z:6f17dea1-50a0-4084-afc9-ce05aa886791" ], - "Date": [ "Wed, 29 Jun 2022 14:20:30 GMT" ] + "x-ms-correlation-request-id": [ "5f46014a-71cb-4223-86e2-e48265f53615" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T131231Z:5f46014a-71cb-4223-86e2-e48265f53615" ], + "Date": [ "Sun, 22 Jan 2023 13:12:31 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "20876" ], + "Content-Length": [ "23559" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"friendlyName\":\"7k0ccypod01otds1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blob-Backup/providers/Microsoft.Storage/storageAccounts/7k0ccypod01otds1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blob-Backup/providers/Microsoft.Storage/storageAccounts/7k0ccypod01otds1\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"7k0ccypod01otds1\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobpolicy\",\"policyVersion\":\"\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"\"}]}},\"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/7k0ccypod01otds1-7k0ccypod01otds1-520ff77c-75eb-4cd4-a0d2-ad4ebb32d097\",\"name\":\"7k0ccypod01otds1-7k0ccypod01otds1-520ff77c-75eb-4cd4-a0d2-ad4ebb32d097\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"clibugbashsa\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ABC/providers/Microsoft.Storage/storageAccounts/clibugbashsa\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"clibugbashsa\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobclipolicy\"},\"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/clibugbashsa-clibugbashsa-9349e670-c432-11eb-aefe-b0a4601328c8\",\"name\":\"clibugbashsa-clibugbashsa-9349e670-c432-11eb-aefe-b0a4601328c8\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"randomsa\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ABC/providers/Microsoft.Storage/storageAccounts/randomsa\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"randomsa\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"randomlocation\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobclipolicy\"},\"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\":\"6ef868a7-ce1a-4273-9e9d-7623d3b3f052-Ibz\"}}},\"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\":\"6ef868a7-ce1a-4273-9e9d-7623d3b3f052-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/randomsa-randomsa-1445b05b-c439-11eb-b183-c8f750f92764\",\"name\":\"randomsa-randomsa-1445b05b-c439-11eb-b183-c8f750f92764\",\"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\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"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\":\"temp3\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp3\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp3\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"b17f01a6-bc95-11eb-b3aa-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"b17f01a6-bc95-11eb-b3aa-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp3-temp3-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp3-temp3-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp2\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp2\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp2\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5119fb3a-1e8d-4c31-a4aa-94ec18b97039-Ibz\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5119fb3a-1e8d-4c31-a4aa-94ec18b97039-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp2-temp2-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp2-temp2-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp5\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp5\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp5\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"059c9281-bca3-11eb-b183-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"059c9281-bca3-11eb-b183-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp5-temp5-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp5-temp5-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"clitest\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/clitest\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"clitest\",\"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/DiskPSPolicy2\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionStopped\"},\"currentProtectionState\":\"ProtectionStopped\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/clitest-clitest-3165cfe7-a932-11eb-9d24-9cfce85d4fae\",\"name\":\"clitest-clitest-3165cfe7-a932-11eb-9d24-9cfce85d4fae\",\"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/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"name\":\"sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"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/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"name\":\"sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"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\":\"ProtectionStopped\"},\"currentProtectionState\":\"ProtectionStopped\",\"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\":\"temp4\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp4\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp4\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5f08710a-bc96-11eb-863b-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5f08710a-bc96-11eb-863b-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp4-temp4-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp4-temp4-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"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\"},\"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\"}]}" + "Content": "{\"value\":[{\"properties\":{\"friendlyName\":\"c12ccypod01otds1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/abhinitRG/providers/Microsoft.Storage/storageAccounts/c12ccypod01otds1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/abhinitRG/providers/Microsoft.Storage/storageAccounts/c12ccypod01otds1\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"c12ccypod01otds1\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"dataSourceSetInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/abhinitRG/providers/Microsoft.Storage/storageAccounts/c12ccypod01otds1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/abhinitRG/providers/Microsoft.Storage/storageAccounts/c12ccypod01otds1\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"c12ccypod01otds1\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"DatasourceSet\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobpolicy\",\"policyVersion\":\"\",\"policyParameters\":{\"backupDatasourceParametersList\":[{\"objectType\":\"BlobBackupDatasourceParameters\",\"containersList\":[]}]}},\"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/c12ccypod01otds1-c12ccypod01otds1-cecd7ec5-9695-484f-b1ff-76347ce94064\",\"name\":\"c12ccypod01otds1-c12ccypod01otds1-cecd7ec5-9695-484f-b1ff-76347ce94064\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"7k0ccypod01otds1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blob-Backup/providers/Microsoft.Storage/storageAccounts/7k0ccypod01otds1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blob-Backup/providers/Microsoft.Storage/storageAccounts/7k0ccypod01otds1\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"7k0ccypod01otds1\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobpolicy\",\"policyVersion\":\"\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"\"}]}},\"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/7k0ccypod01otds1-7k0ccypod01otds1-520ff77c-75eb-4cd4-a0d2-ad4ebb32d097\",\"name\":\"7k0ccypod01otds1-7k0ccypod01otds1-520ff77c-75eb-4cd4-a0d2-ad4ebb32d097\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"clibugbashsa\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ABC/providers/Microsoft.Storage/storageAccounts/clibugbashsa\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"clibugbashsa\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobclipolicy\"},\"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/clibugbashsa-clibugbashsa-9349e670-c432-11eb-aefe-b0a4601328c8\",\"name\":\"clibugbashsa-clibugbashsa-9349e670-c432-11eb-aefe-b0a4601328c8\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"randomsa\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ABC/providers/Microsoft.Storage/storageAccounts/randomsa\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"resourceName\":\"randomsa\",\"resourceType\":\"Microsoft.Storage/storageAccounts\",\"resourceLocation\":\"randomlocation\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/blobclipolicy\"},\"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\":\"6ef868a7-ce1a-4273-9e9d-7623d3b3f052-Ibz\"}}},\"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\":\"6ef868a7-ce1a-4273-9e9d-7623d3b3f052-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/randomsa-randomsa-1445b05b-c439-11eb-b183-c8f750f92764\",\"name\":\"randomsa-randomsa-1445b05b-c439-11eb-b183-c8f750f92764\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp3\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp3\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp3\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"b17f01a6-bc95-11eb-b3aa-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"b17f01a6-bc95-11eb-b3aa-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp3-temp3-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp3-temp3-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp2\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp2\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp2\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5119fb3a-1e8d-4c31-a4aa-94ec18b97039-Ibz\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5119fb3a-1e8d-4c31-a4aa-94ec18b97039-Ibz\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp2-temp2-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp2-temp2-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"temp5\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp5\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp5\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"059c9281-bca3-11eb-b183-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"059c9281-bca3-11eb-b183-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp5-temp5-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp5-temp5-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"clitest\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.Compute/disks/clitest\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"clitest\",\"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/DiskPSPolicy2\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg\"}]}},\"protectionStatus\":{\"status\":\"ProtectionStopped\"},\"currentProtectionState\":\"ProtectionStopped\",\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/clitest-clitest-3165cfe7-a932-11eb-9d24-9cfce85d4fae\",\"name\":\"clitest-clitest-3165cfe7-a932-11eb-9d24-9cfce85d4fae\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"sarath-restored-disk-1\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarath-restored-disk-1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarath-restored-disk-1\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarath-restored-disk-1\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"dataSourceSetInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarath-restored-disk-1\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarath-restored-disk-1\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"sarath-restored-disk-1\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"DatasourceSet\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupPolicies/DiskPolicy1\",\"policyVersion\":\"\",\"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/sarath-restored-disk-1-sarath-restored-disk-1-cecd7ec5-9695-484f-b1ff-76347ce94087\",\"name\":\"sarath-restored-disk-1-sarath-restored-disk-1-cecd7ec5-9695-484f-b1ff-76347ce94087\",\"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/sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"name\":\"sarathdisk-sarathdisk-3df6ac08-9496-4839-8fb5-8b78e594f166\",\"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/sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"name\":\"sarathdisk2-sarathdisk2-44a7a483-3240-421c-a8a2-4468c10a4158\",\"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\":\"ProtectionStopped\"},\"currentProtectionState\":\"ProtectionStopped\",\"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\":\"temp4\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/temp4\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"temp4\",\"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\":[{\"dataStoreType\":\"OperationalStore\",\"objectType\":null}]}},\"protectionStatus\":{\"status\":\"ProtectionError\",\"errorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5f08710a-bc96-11eb-863b-9cfce85d4fae\"}}},\"currentProtectionState\":\"ProtectionError\",\"protectionErrorDetails\":{\"message\":\"Microsoft Azure Backup encountered an internal error.\",\"recommendedAction\":[\"Wait for a few minutes and then try the operation again. If the issue persists, please contact Microsoft support.\"],\"code\":\"CloudInternalError\",\"target\":\"\",\"isRetryable\":false,\"isUserError\":false,\"properties\":{\"ActivityId\":\"5f08710a-bc96-11eb-863b-9cfce85d4fae\"}},\"provisioningState\":\"Succeeded\",\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault/backupInstances/temp4-temp4-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"name\":\"temp4-temp4-7d67c4b6-bc86-11eb-a650-9cfce85d4fad\",\"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\"},\"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\"}]}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/DataProtection/test/Get-AzDataProtectionBackupVault.Recording.json b/src/DataProtection/test/Get-AzDataProtectionBackupVault.Recording.json index 2e59af9989c6..8f6185117d0e 100644 --- a/src/DataProtection/test/Get-AzDataProtectionBackupVault.Recording.json +++ b/src/DataProtection/test/Get-AzDataProtectionBackupVault.Recording.json @@ -1,16 +1,17 @@ { - "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=2022-05-01+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=2022-12-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=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/sarath-vault?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "148" ], - "x-ms-client-request-id": [ "b55204e0-8890-4387-b734-d4c051f604e9" ], + "x-ms-unique-id": [ "233" ], + "x-ms-client-request-id": [ "be51e724-c26a-49d1-94fa-f495988fa636" ], "CommandName": [ "Get-AzDataProtectionBackupVault" ], "FullCommandName": [ "Get-AzDataProtectionBackupVault_Get2" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -26,17 +27,18 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "498" ], - "x-ms-correlation-request-id": [ "710b6b46-83d2-4449-99fb-9171ea82ed3d" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142031Z:710b6b46-83d2-4449-99fb-9171ea82ed3d" ], - "Date": [ "Wed, 29 Jun 2022 14:20:31 GMT" ] + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "497" ], + "x-ms-correlation-request-id": [ "fa3e8191-23f0-4b17-bad5-2e478af74b3b" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T131232Z:fa3e8191-23f0-4b17-bad5-2e478af74b3b" ], + "Date": [ "Sun, 22 Jan 2023 13:12:31 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "563" ], + "Content-Length": [ "639" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"location\":\"centraluseuap\",\"tags\":{\"A\":\"b\"},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"2ca1d5f7-38b3-4b61-aa45-8147d7e0edbc\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"LocallyRedundant\"}],\"isVaultProtectedByResourceGuard\":false},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.DataProtection/BackupVaults/sarath-vault\",\"name\":\"sarath-vault\",\"type\":\"Microsoft.DataProtection/backupVaults\"}" + "Content": "{\"location\":\"centraluseuap\",\"tags\":{\"A\":\"b\"},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"2ca1d5f7-38b3-4b61-aa45-8147d7e0edbc\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"LocallyRedundant\"}],\"isVaultProtectedByResourceGuard\":false,\"featureSettings\":{\"crossSubscriptionRestoreSettings\":{\"state\":\"Disabled\"}}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/sarath-rg/providers/Microsoft.DataProtection/BackupVaults/sarath-vault\",\"name\":\"sarath-vault\",\"type\":\"Microsoft.DataProtection/backupVaults\"}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/DataProtection/test/Initialize-AzDataProtectionRestoreRequest.Recording.json b/src/DataProtection/test/Initialize-AzDataProtectionRestoreRequest.Recording.json index 54991435b2d8..3ff993e52e27 100644 --- a/src/DataProtection/test/Initialize-AzDataProtectionRestoreRequest.Recording.json +++ b/src/DataProtection/test/Initialize-AzDataProtectionRestoreRequest.Recording.json @@ -1,16 +1,17 @@ { - "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=2022-05-01+1": { + "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=2022-12-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=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupInstances?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "149" ], - "x-ms-client-request-id": [ "514c738a-9324-489d-b75d-2d5bcab52e21" ], + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "528859e4-dbf3-4ed0-84e8-62b81513c0e8" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -21,28 +22,30 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "1991" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "1999" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Kestrel" ], - "x-ms-request-id": [ "c6d59e50-b6ab-4878-aa11-8a8d338a11f5" ], - "x-ms-correlation-request-id": [ "c6d59e50-b6ab-4878-aa11-8a8d338a11f5" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142045Z:c6d59e50-b6ab-4878-aa11-8a8d338a11f5" ], + "x-ms-request-id": [ "337b9e60-6955-4c53-9002-31e9fe0f6a92" ], + "x-ms-correlation-request-id": [ "337b9e60-6955-4c53-9002-31e9fe0f6a92" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T070647Z:337b9e60-6955-4c53-9002-31e9fe0f6a92" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Date": [ "Wed, 29 Jun 2022 14:20:44 GMT" ] + "Date": [ "Mon, 23 Jan 2023 07:06:46 GMT" ] }, "ContentHeaders": { "Content-Length": [ "8140" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"friendlyName\":\"azdrill1_OsDisk_1_649995dd9b32479d98a035cebc8773f7\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ECYZONEDOWNDRILL/providers/Microsoft.Compute/disks/azdrill1_OsDisk_1_649995dd9b32479d98a035cebc8773f7\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ECYZONEDOWNDRILL/providers/Microsoft.Compute/disks/azdrill1_OsDisk_1_649995dd9b32479d98a035cebc8773f7\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"azdrill1_OsDisk_1_649995dd9b32479d98a035cebc8773f7\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"eastus2euap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/jkkl\",\"policyVersion\":\"\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/adigupt-rg\"}]}},\"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/azdrill1_OsDisk_1_649995dd9b32479d98a035-azdrill1_OsDisk_1_649995dd9b32479d98a035-7d220d9b-c6ad-4b50-b53b-8b5712a9c03d\",\"name\":\"azdrill1_OsDisk_1_649995dd9b32479d98a035-azdrill1_OsDisk_1_649995dd9b32479d98a035-7d220d9b-c6ad-4b50-b53b-8b5712a9c03d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"arpja-drl-zn1_OsDisk_1_70ef9961a22046bea3b17e07fcfc7509\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ECYZONEDOWNDRILL/providers/Microsoft.Compute/disks/arpja-drl-zn1_OsDisk_1_70ef9961a22046bea3b17e07fcfc7509\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ECYZONEDOWNDRILL/providers/Microsoft.Compute/disks/arpja-drl-zn1_OsDisk_1_70ef9961a22046bea3b17e07fcfc7509\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"arpja-drl-zn1_OsDisk_1_70ef9961a22046bea3b17e07fcfc7509\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"eastus2euap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/jkkl\",\"policyVersion\":\"\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/adigupt-rg\"}]}},\"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/arpja-drl-zn1_OsDisk_1_70ef9961a22046bea-arpja-drl-zn1_OsDisk_1_70ef9961a22046bea-7d220d9b-c6ad-4b50-b53b-8b5712a9c03f\",\"name\":\"arpja-drl-zn1_OsDisk_1_70ef9961a22046bea-arpja-drl-zn1_OsDisk_1_70ef9961a22046bea-7d220d9b-c6ad-4b50-b53b-8b5712a9c03f\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"arpja-drl-zn2_OsDisk_1_541077f4840843a8acef4922fa77155c\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ECYZONEDOWNDRILL/providers/Microsoft.Compute/disks/arpja-drl-zn2_OsDisk_1_541077f4840843a8acef4922fa77155c\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ECYZONEDOWNDRILL/providers/Microsoft.Compute/disks/arpja-drl-zn2_OsDisk_1_541077f4840843a8acef4922fa77155c\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"arpja-drl-zn2_OsDisk_1_541077f4840843a8acef4922fa77155c\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"eastus2euap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/jkkl\",\"policyVersion\":\"\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/adigupt-rg\"}]}},\"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/arpja-drl-zn2_OsDisk_1_541077f4840843a8a-arpja-drl-zn2_OsDisk_1_541077f4840843a8a-7d220d9b-c6ad-4b50-b53b-8b5712a9c03e\",\"name\":\"arpja-drl-zn2_OsDisk_1_541077f4840843a8a-arpja-drl-zn2_OsDisk_1_541077f4840843a8a-7d220d9b-c6ad-4b50-b53b-8b5712a9c03e\",\"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/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"name\":\"jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"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/policyName\"},\"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-82904d0f-2c40-4b4e-8780-d2ad2ab7e409\",\"name\":\"ecystorageaccount-ecystorageaccount-82904d0f-2c40-4b4e-8780-d2ad2ab7e409\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"}]}" + "Content": "{\"value\":[{\"properties\":{\"friendlyName\":\"azdrill1_OsDisk_1_649995dd9b32479d98a035cebc8773f7\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ECYZONEDOWNDRILL/providers/Microsoft.Compute/disks/azdrill1_OsDisk_1_649995dd9b32479d98a035cebc8773f7\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ECYZONEDOWNDRILL/providers/Microsoft.Compute/disks/azdrill1_OsDisk_1_649995dd9b32479d98a035cebc8773f7\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"azdrill1_OsDisk_1_649995dd9b32479d98a035cebc8773f7\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"eastus2euap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/jkkl\",\"policyVersion\":\"\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/adigupt-rg\"}]}},\"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/azdrill1_OsDisk_1_649995dd9b32479d98a035-azdrill1_OsDisk_1_649995dd9b32479d98a035-7d220d9b-c6ad-4b50-b53b-8b5712a9c03d\",\"name\":\"azdrill1_OsDisk_1_649995dd9b32479d98a035-azdrill1_OsDisk_1_649995dd9b32479d98a035-7d220d9b-c6ad-4b50-b53b-8b5712a9c03d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"arpja-drl-zn1_OsDisk_1_70ef9961a22046bea3b17e07fcfc7509\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ECYZONEDOWNDRILL/providers/Microsoft.Compute/disks/arpja-drl-zn1_OsDisk_1_70ef9961a22046bea3b17e07fcfc7509\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ECYZONEDOWNDRILL/providers/Microsoft.Compute/disks/arpja-drl-zn1_OsDisk_1_70ef9961a22046bea3b17e07fcfc7509\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"arpja-drl-zn1_OsDisk_1_70ef9961a22046bea3b17e07fcfc7509\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"eastus2euap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/jkkl\",\"policyVersion\":\"\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/adigupt-rg\"}]}},\"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/arpja-drl-zn1_OsDisk_1_70ef9961a22046bea-arpja-drl-zn1_OsDisk_1_70ef9961a22046bea-7d220d9b-c6ad-4b50-b53b-8b5712a9c03f\",\"name\":\"arpja-drl-zn1_OsDisk_1_70ef9961a22046bea-arpja-drl-zn1_OsDisk_1_70ef9961a22046bea-7d220d9b-c6ad-4b50-b53b-8b5712a9c03f\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"},{\"properties\":{\"friendlyName\":\"arpja-drl-zn2_OsDisk_1_541077f4840843a8acef4922fa77155c\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ECYZONEDOWNDRILL/providers/Microsoft.Compute/disks/arpja-drl-zn2_OsDisk_1_541077f4840843a8acef4922fa77155c\",\"resourceUri\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/ECYZONEDOWNDRILL/providers/Microsoft.Compute/disks/arpja-drl-zn2_OsDisk_1_541077f4840843a8acef4922fa77155c\",\"datasourceType\":\"Microsoft.Compute/disks\",\"resourceName\":\"arpja-drl-zn2_OsDisk_1_541077f4840843a8acef4922fa77155c\",\"resourceType\":\"Microsoft.Compute/disks\",\"resourceLocation\":\"eastus2euap\",\"objectType\":\"Datasource\"},\"policyInfo\":{\"policyId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupPolicies/jkkl\",\"policyVersion\":\"\",\"policyParameters\":{\"dataStoreParametersList\":[{\"objectType\":\"AzureOperationalStoreParameters\",\"dataStoreType\":\"OperationalStore\",\"resourceGroupId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/adigupt-rg\"}]}},\"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/arpja-drl-zn2_OsDisk_1_541077f4840843a8a-arpja-drl-zn2_OsDisk_1_541077f4840843a8a-7d220d9b-c6ad-4b50-b53b-8b5712a9c03e\",\"name\":\"arpja-drl-zn2_OsDisk_1_541077f4840843a8a-arpja-drl-zn2_OsDisk_1_541077f4840843a8a-7d220d9b-c6ad-4b50-b53b-8b5712a9c03e\",\"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/jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"name\":\"jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"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/policyName\"},\"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-82904d0f-2c40-4b4e-8780-d2ad2ab7e409\",\"name\":\"ecystorageaccount-ecystorageaccount-82904d0f-2c40-4b4e-8780-d2ad2ab7e409\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"}]}", + "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=2022-05-01+2": { + "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=2022-12-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=2022-05-01", - "Content": "{\r\n \"sourceDataStoreType\": \"OperationalStore\",\r\n \"startTime\": \"2022-05-30T19:50:45.0000000Z\",\r\n \"endTime\": \"2022-06-29T19:50:45.0000000Z\"\r\n}", + "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=2022-12-01", + "Content": "{\r\n \"sourceDataStoreType\": \"OperationalStore\",\r\n \"startTime\": \"2022-12-24T12:36:47.0000000Z\",\r\n \"endTime\": \"2023-01-23T12:36:47.0000000Z\"\r\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { @@ -55,35 +58,37 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Kestrel" ], - "x-ms-request-id": [ "ee3ae7cc-428e-454d-a3e2-4943d0dc21d9" ], - "x-ms-correlation-request-id": [ "ee3ae7cc-428e-454d-a3e2-4943d0dc21d9" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142046Z:ee3ae7cc-428e-454d-a3e2-4943d0dc21d9" ], + "x-ms-request-id": [ "fcb2f85d-5034-4aab-b422-e075a9087423" ], + "x-ms-correlation-request-id": [ "fcb2f85d-5034-4aab-b422-e075a9087423" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T070648Z:fcb2f85d-5034-4aab-b422-e075a9087423" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Date": [ "Wed, 29 Jun 2022 14:20:45 GMT" ] + "Date": [ "Mon, 23 Jan 2023 07:06:48 GMT" ] }, "ContentHeaders": { "Content-Length": [ "389" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"restorableTimeRanges\":[{\"startTime\":\"2022-05-30T19:50:45.0000000Z\",\"endTime\":\"2022-06-29T14:20:46.1806847Z\",\"objectType\":\"RestorableTimeRange\"}],\"objectType\":\"AzureBackupFindRestorableTimeRangesResponse\"},\"id\":\"jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/findRestorableTimeRanges\"}" + "Content": "{\"properties\":{\"restorableTimeRanges\":[{\"startTime\":\"2022-12-24T12:36:47.0000000Z\",\"endTime\":\"2023-01-23T07:06:48.8290041Z\",\"objectType\":\"RestorableTimeRange\"}],\"objectType\":\"AzureBackupFindRestorableTimeRangesResponse\"},\"id\":\"jececyblobstorage-jececyblobstorage-828ee34c-9ffc-4365-9b13-609f89cb200b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/findRestorableTimeRanges\"}", + "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=2022-05-01+3": { + "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=2022-12-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=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "151" ], - "x-ms-client-request-id": [ "185249a6-8315-4527-ae1d-d9d624ed23fd" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "dfa2485f-cbfc-4bc1-addb-ea6359b4b88d" ], "CommandName": [ "Get-AzDataProtectionBackupVault" ], "FullCommandName": [ "Get-AzDataProtectionBackupVault_Get2" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -94,28 +99,30 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "497" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Kestrel" ], - "x-ms-request-id": [ "c5e4960c-ce68-4ebe-812b-e8c4694a7124" ], - "x-ms-correlation-request-id": [ "c5e4960c-ce68-4ebe-812b-e8c4694a7124" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142046Z:c5e4960c-ce68-4ebe-812b-e8c4694a7124" ], + "x-ms-request-id": [ "49c04cc9-5c32-45b3-8c20-0594cbedbaa8" ], + "x-ms-correlation-request-id": [ "49c04cc9-5c32-45b3-8c20-0594cbedbaa8" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T070649Z:49c04cc9-5c32-45b3-8c20-0594cbedbaa8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Date": [ "Wed, 29 Jun 2022 14:20:45 GMT" ] + "Date": [ "Mon, 23 Jan 2023 07:06:49 GMT" ] }, "ContentHeaders": { "Content-Length": [ "569" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"location\":\"eastus2euap\",\"tags\":{},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"d3026af2-1184-47e4-bed5-0a29b48d8fa3\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"LocallyRedundant\"}],\"isVaultProtectedByResourceGuard\":false},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/BackupVaults/jecECYBlobVault\",\"name\":\"jecECYBlobVault\",\"type\":\"Microsoft.DataProtection/backupVaults\"}" + "Content": "{\"location\":\"eastus2euap\",\"tags\":{},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"d3026af2-1184-47e4-bed5-0a29b48d8fa3\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"LocallyRedundant\"}],\"isVaultProtectedByResourceGuard\":false},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/BackupVaults/jecECYBlobVault\",\"name\":\"jecECYBlobVault\",\"type\":\"Microsoft.DataProtection/backupVaults\"}", + "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=2022-05-01+4": { + "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=2022-12-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=2022-05-01", - "Content": "{\r\n \"objectType\": \"AzureBackupRecoveryTimeBasedRestoreRequest\",\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 \"sourceDataStoreType\": \"OperationalStore\",\r\n \"recoveryPointTime\": \"2022-06-29T14:20:46.0000000Z\"\r\n}", + "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=2022-12-01", + "Content": "{\r\n \"objectType\": \"AzureBackupRecoveryTimeBasedRestoreRequest\",\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 \"sourceDataStoreType\": \"OperationalStore\",\r\n \"recoveryPointTime\": \"2023-01-23T07:06:48.0000000Z\"\r\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { @@ -128,38 +135,40 @@ "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/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzQyMWMzZDMxLWRiN2ItNGVmNi1iNzRjLWNkN2U1YzliNGY0NQ==?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/eastus2euap/operationResults/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2O2MyZGMzNjliLTViOTctNDY5My05ZGU1LWFjMmI4NDE1ZDJkYQ==?api-version=2022-12-01" ], "Retry-After": [ "30" ], "X-Content-Type-Options": [ "nosniff" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/operationStatus/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzQyMWMzZDMxLWRiN2ItNGVmNi1iNzRjLWNkN2U1YzliNGY0NQ==?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/operationStatus/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2O2MyZGMzNjliLTViOTctNDY5My05ZGU1LWFjMmI4NDE1ZDJkYQ==?api-version=2022-12-01" ], "Server": [ "Kestrel" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], - "x-ms-request-id": [ "44a72818-9bbd-4562-ba54-601dff850cd8" ], - "x-ms-correlation-request-id": [ "44a72818-9bbd-4562-ba54-601dff850cd8" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142046Z:44a72818-9bbd-4562-ba54-601dff850cd8" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "x-ms-request-id": [ "b864fa3b-4116-4f8e-8f60-09fbfd034a17" ], + "x-ms-correlation-request-id": [ "b864fa3b-4116-4f8e-8f60-09fbfd034a17" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T070650Z:b864fa3b-4116-4f8e-8f60-09fbfd034a17" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Date": [ "Wed, 29 Jun 2022 14:20:46 GMT" ] + "Date": [ "Mon, 23 Jan 2023 07:06:50 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "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/operationStatus/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzQyMWMzZDMxLWRiN2ItNGVmNi1iNzRjLWNkN2U1YzliNGY0NQ==?api-version=2022-05-01+5": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/operationStatus/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2O2MyZGMzNjliLTViOTctNDY5My05ZGU1LWFjMmI4NDE1ZDJkYQ==?api-version=2022-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/operationStatus/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzQyMWMzZDMxLWRiN2ItNGVmNi1iNzRjLWNkN2U1YzliNGY0NQ==?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/operationStatus/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2O2MyZGMzNjliLTViOTctNDY5My05ZGU1LWFjMmI4NDE1ZDJkYQ==?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "153" ], - "x-ms-client-request-id": [ "917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "0b3a5509-47af-40e1-9a82-f1e4e452f7f9" ], "CommandName": [ "Start-AzDataProtectionBackupInstanceRestore" ], "FullCommandName": [ "Start-AzDataProtectionBackupInstanceRestore_Trigger" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -169,36 +178,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "996" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "999" ], "X-Content-Type-Options": [ "nosniff" ], "Server": [ "Kestrel" ], - "x-ms-request-id": [ "8685b673-c982-49a9-82d4-619c02390233" ], - "x-ms-correlation-request-id": [ "8685b673-c982-49a9-82d4-619c02390233" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142117Z:8685b673-c982-49a9-82d4-619c02390233" ], + "x-ms-request-id": [ "461f239f-2a53-4874-99e5-802a532f55fa" ], + "x-ms-correlation-request-id": [ "461f239f-2a53-4874-99e5-802a532f55fa" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T070721Z:461f239f-2a53-4874-99e5-802a532f55fa" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Date": [ "Wed, 29 Jun 2022 14:21:16 GMT" ] + "Date": [ "Mon, 23 Jan 2023 07:07:20 GMT" ] }, "ContentHeaders": { "Content-Length": [ "745" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/operationStatus/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzQyMWMzZDMxLWRiN2ItNGVmNi1iNzRjLWNkN2U1YzliNGY0NQ==\",\"name\":\"Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzQyMWMzZDMxLWRiN2ItNGVmNi1iNzRjLWNkN2U1YzliNGY0NQ==\",\"status\":\"Succeeded\",\"startTime\":\"2022-06-29T14:20:46.8188977Z\",\"endTime\":\"2022-06-29T14:20:48Z\",\"properties\":{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/BackupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"objectType\":\"OperationJobExtendedInfo\"}}" + "Content": "{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/operationStatus/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2O2MyZGMzNjliLTViOTctNDY5My05ZGU1LWFjMmI4NDE1ZDJkYQ==\",\"name\":\"Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2O2MyZGMzNjliLTViOTctNDY5My05ZGU1LWFjMmI4NDE1ZDJkYQ==\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-23T07:06:50.5159291Z\",\"endTime\":\"2023-01-23T07:06:52Z\",\"properties\":{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/BackupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377\",\"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/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzQyMWMzZDMxLWRiN2ItNGVmNi1iNzRjLWNkN2U1YzliNGY0NQ==?api-version=2022-05-01+6": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/eastus2euap/operationResults/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2O2MyZGMzNjliLTViOTctNDY5My05ZGU1LWFjMmI4NDE1ZDJkYQ==?api-version=2022-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/eastus2euap/operationResults/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzQyMWMzZDMxLWRiN2ItNGVmNi1iNzRjLWNkN2U1YzliNGY0NQ==?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/eastus2euap/operationResults/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2O2MyZGMzNjliLTViOTctNDY5My05ZGU1LWFjMmI4NDE1ZDJkYQ==?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "154" ], - "x-ms-client-request-id": [ "917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "0b3a5509-47af-40e1-9a82-f1e4e452f7f9" ], "CommandName": [ "Start-AzDataProtectionBackupInstanceRestore" ], "FullCommandName": [ "Start-AzDataProtectionBackupInstanceRestore_Trigger" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -209,356 +220,38 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "30" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "196" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "199" ], "X-Content-Type-Options": [ "nosniff" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/eastus2euap/operationStatus/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2OzQyMWMzZDMxLWRiN2ItNGVmNi1iNzRjLWNkN2U1YzliNGY0NQ==?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/eastus2euap/operationStatus/Y2ZlZmJjZDktYzhkOC00M2Q2LWI0MjgtMmZlYzkzZmM1NGY2O2MyZGMzNjliLTViOTctNDY5My05ZGU1LWFjMmI4NDE1ZDJkYQ==?api-version=2022-12-01" ], "Server": [ "Kestrel" ], - "x-ms-request-id": [ "4eb53b6a-bcd8-4c58-b896-f1a220f180c5" ], - "x-ms-correlation-request-id": [ "4eb53b6a-bcd8-4c58-b896-f1a220f180c5" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142117Z:4eb53b6a-bcd8-4c58-b896-f1a220f180c5" ], + "x-ms-request-id": [ "bc8f0e8d-559e-465b-95b5-84e66dd56816" ], + "x-ms-correlation-request-id": [ "bc8f0e8d-559e-465b-95b5-84e66dd56816" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T070721Z:bc8f0e8d-559e-465b-95b5-84e66dd56816" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "Date": [ "Wed, 29 Jun 2022 14:21:16 GMT" ] + "Date": [ "Mon, 23 Jan 2023 07:07:20 GMT" ] }, "ContentHeaders": { "Content-Length": [ "249" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/BackupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"objectType\":\"OperationJobExtendedInfo\"}" - } - }, - "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "155" ], - "x-ms-client-request-id": [ "4a607f47-564d-4a1f-b811-b903cb007a9d" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Server": [ "Kestrel" ], - "X-Content-Type-Options": [ "nosniff" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "85" ], - "x-ms-request-id": [ "6ca37e02-d128-4ddf-82fe-ecadc819fd1a" ], - "x-ms-correlation-request-id": [ "6ca37e02-d128-4ddf-82fe-ecadc819fd1a" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142127Z:6ca37e02-d128-4ddf-82fe-ecadc819fd1a" ], - "Date": [ "Wed, 29 Jun 2022 14:21:26 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2021" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1\",\"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\",\"dataSourceName\":\"jececyblobstorage\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A20%3A47.5228968Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-29T14:20:47.0837877Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-29T14:20:46Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\"}]}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"name\":\"4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"jobId\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/BackupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377\",\"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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01+8": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "156" ], - "x-ms-client-request-id": [ "2a5c491b-7b77-41fd-b3a8-5bd3ca35055d" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "52d54112-4820-4626-b194-abdf4219f932" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Server": [ "Kestrel" ], - "X-Content-Type-Options": [ "nosniff" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "84" ], - "x-ms-request-id": [ "ea169bcf-3975-4ee7-a7ef-e2c91ba8b585" ], - "x-ms-correlation-request-id": [ "ea169bcf-3975-4ee7-a7ef-e2c91ba8b585" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142138Z:ea169bcf-3975-4ee7-a7ef-e2c91ba8b585" ], - "Date": [ "Wed, 29 Jun 2022 14:21:37 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2021" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1\",\"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\",\"dataSourceName\":\"jececyblobstorage\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A20%3A47.5228968Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-29T14:20:47.0837877Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-29T14:20:46Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\"}]}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"name\":\"4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" - } - }, - "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "157" ], - "x-ms-client-request-id": [ "247d4d41-6ac5-45d0-a3dd-ff24c73e4193" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Server": [ "Kestrel" ], - "X-Content-Type-Options": [ "nosniff" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "83" ], - "x-ms-request-id": [ "b67fc602-ba55-47a2-afb7-5fc97e936909" ], - "x-ms-correlation-request-id": [ "b67fc602-ba55-47a2-afb7-5fc97e936909" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142150Z:b67fc602-ba55-47a2-afb7-5fc97e936909" ], - "Date": [ "Wed, 29 Jun 2022 14:21:50 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2021" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1\",\"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\",\"dataSourceName\":\"jececyblobstorage\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A20%3A47.5228968Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-29T14:20:47.0837877Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-29T14:20:46Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\"}]}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"name\":\"4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" - } - }, - "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "158" ], - "x-ms-client-request-id": [ "63d4aa06-cbc3-4908-8697-65a4d08bca2b" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Server": [ "Kestrel" ], - "X-Content-Type-Options": [ "nosniff" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "82" ], - "x-ms-request-id": [ "853733e0-0958-4033-872d-2d093a28a68d" ], - "x-ms-correlation-request-id": [ "853733e0-0958-4033-872d-2d093a28a68d" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142201Z:853733e0-0958-4033-872d-2d093a28a68d" ], - "Date": [ "Wed, 29 Jun 2022 14:22:01 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2021" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1\",\"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\",\"dataSourceName\":\"jececyblobstorage\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A20%3A47.5228968Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-29T14:20:47.0837877Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-29T14:20:46Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\"}]}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"name\":\"4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" - } - }, - "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "159" ], - "x-ms-client-request-id": [ "01177c3c-fcb7-4f9a-a5ee-5b7cd8774f95" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Server": [ "Kestrel" ], - "X-Content-Type-Options": [ "nosniff" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "81" ], - "x-ms-request-id": [ "e8865292-3d13-4b4b-b059-3cdd47d48feb" ], - "x-ms-correlation-request-id": [ "e8865292-3d13-4b4b-b059-3cdd47d48feb" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142211Z:e8865292-3d13-4b4b-b059-3cdd47d48feb" ], - "Date": [ "Wed, 29 Jun 2022 14:22:11 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2021" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1\",\"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\",\"dataSourceName\":\"jececyblobstorage\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A20%3A47.5228968Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-29T14:20:47.0837877Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-29T14:20:46Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\"}]}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"name\":\"4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" - } - }, - "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "160" ], - "x-ms-client-request-id": [ "9e3e5f8a-b9dd-4d27-b78f-2a1a0f455743" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Server": [ "Kestrel" ], - "X-Content-Type-Options": [ "nosniff" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "80" ], - "x-ms-request-id": [ "a8fc8e70-2cb9-4587-b25a-64443d3569be" ], - "x-ms-correlation-request-id": [ "a8fc8e70-2cb9-4587-b25a-64443d3569be" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142221Z:a8fc8e70-2cb9-4587-b25a-64443d3569be" ], - "Date": [ "Wed, 29 Jun 2022 14:22:21 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2021" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1\",\"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\",\"dataSourceName\":\"jececyblobstorage\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A20%3A47.5228968Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-29T14:20:47.0837877Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-29T14:20:46Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\"}]}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"name\":\"4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" - } - }, - "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "161" ], - "x-ms-client-request-id": [ "ab72e973-2afd-4075-a013-587b4abd4f06" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Server": [ "Kestrel" ], - "X-Content-Type-Options": [ "nosniff" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "79" ], - "x-ms-request-id": [ "79a28469-c875-4999-a1f5-68c822542a9e" ], - "x-ms-correlation-request-id": [ "79a28469-c875-4999-a1f5-68c822542a9e" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142232Z:79a28469-c875-4999-a1f5-68c822542a9e" ], - "Date": [ "Wed, 29 Jun 2022 14:22:31 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2021" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1\",\"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\",\"dataSourceName\":\"jececyblobstorage\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A20%3A47.5228968Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-29T14:20:47.0837877Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-29T14:20:46Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\"}]}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"name\":\"4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" - } - }, - "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "162" ], - "x-ms-client-request-id": [ "18361f65-e5d6-4de8-a0ed-599b42475c7e" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "Server": [ "Kestrel" ], - "X-Content-Type-Options": [ "nosniff" ], - "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "78" ], - "x-ms-request-id": [ "6bc8f976-6834-4b91-b508-c70124b98ecc" ], - "x-ms-correlation-request-id": [ "6bc8f976-6834-4b91-b508-c70124b98ecc" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142242Z:6bc8f976-6834-4b91-b508-c70124b98ecc" ], - "Date": [ "Wed, 29 Jun 2022 14:22:41 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2021" ], - "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1\",\"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\",\"dataSourceName\":\"jececyblobstorage\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A20%3A47.5228968Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-29T14:20:47.0837877Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-29T14:20:46Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\"}]}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"name\":\"4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" - } - }, - "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "163" ], - "x-ms-client-request-id": [ "160b3bfb-190f-4d10-ab35-e824188eefd3" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -571,34 +264,35 @@ "Pragma": [ "no-cache" ], "Server": [ "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "199" ], + "x-ms-request-id": [ "75a25e4c-4087-4510-a56f-16f37fbe0620" ], + "x-ms-correlation-request-id": [ "75a25e4c-4087-4510-a56f-16f37fbe0620" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T070732Z:75a25e4c-4087-4510-a56f-16f37fbe0620" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "77" ], - "x-ms-request-id": [ "fa256b12-f03d-4ec2-9ece-369e4a226f42" ], - "x-ms-correlation-request-id": [ "fa256b12-f03d-4ec2-9ece-369e4a226f42" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142252Z:fa256b12-f03d-4ec2-9ece-369e4a226f42" ], - "Date": [ "Wed, 29 Jun 2022 14:22:52 GMT" ] + "Date": [ "Mon, 23 Jan 2023 07:07:32 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2021" ], + "Content-Length": [ "2380" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1\",\"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\",\"dataSourceName\":\"jececyblobstorage\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A20%3A47.5228968Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-29T14:20:47.0837877Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-29T14:20:46Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\"}]}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"name\":\"4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0b3a5509-47af-40e1-9a82-f1e4e452f7f9\",\"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\u00272023-01-23T07%3A06%3A51.2729309Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2023-01-23T07:06:50.8200285Z\",\"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\":\"2023-01-23T07:06:48Z\"},\"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/ee370010-696b-4e54-9160-ede937d2c377\",\"name\":\"ee370010-696b-4e54-9160-ede937d2c377\",\"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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01+16": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "164" ], - "x-ms-client-request-id": [ "b1167bd2-100b-4c91-a7e2-d98d67bf3b77" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "ccce30aa-1ee9-428f-b5c6-018290fe7afa" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -611,34 +305,35 @@ "Pragma": [ "no-cache" ], "Server": [ "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "198" ], + "x-ms-request-id": [ "07618f81-ebc9-4ff3-8c2a-6ea2383a7c91" ], + "x-ms-correlation-request-id": [ "07618f81-ebc9-4ff3-8c2a-6ea2383a7c91" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T070743Z:07618f81-ebc9-4ff3-8c2a-6ea2383a7c91" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "76" ], - "x-ms-request-id": [ "65a16514-b4a4-406a-8c75-56f58fc85379" ], - "x-ms-correlation-request-id": [ "65a16514-b4a4-406a-8c75-56f58fc85379" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142303Z:65a16514-b4a4-406a-8c75-56f58fc85379" ], - "Date": [ "Wed, 29 Jun 2022 14:23:02 GMT" ] + "Date": [ "Mon, 23 Jan 2023 07:07:43 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2021" ], + "Content-Length": [ "2380" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1\",\"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\",\"dataSourceName\":\"jececyblobstorage\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A20%3A47.5228968Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-29T14:20:47.0837877Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-29T14:20:46Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\"}]}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"name\":\"4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0b3a5509-47af-40e1-9a82-f1e4e452f7f9\",\"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\u00272023-01-23T07%3A06%3A51.2729309Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2023-01-23T07:06:50.8200285Z\",\"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\":\"2023-01-23T07:06:48Z\"},\"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/ee370010-696b-4e54-9160-ede937d2c377\",\"name\":\"ee370010-696b-4e54-9160-ede937d2c377\",\"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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01+17": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "165" ], - "x-ms-client-request-id": [ "e9100488-0533-4614-838b-870be695872c" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "d1168c32-980c-4779-b5a3-df6d8585d54b" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -651,34 +346,35 @@ "Pragma": [ "no-cache" ], "Server": [ "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "197" ], + "x-ms-request-id": [ "7cc885c3-6647-4a68-ba7b-fd74e1195470" ], + "x-ms-correlation-request-id": [ "7cc885c3-6647-4a68-ba7b-fd74e1195470" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T070753Z:7cc885c3-6647-4a68-ba7b-fd74e1195470" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "75" ], - "x-ms-request-id": [ "b705a46c-9047-48cf-b013-30d36869562f" ], - "x-ms-correlation-request-id": [ "b705a46c-9047-48cf-b013-30d36869562f" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142313Z:b705a46c-9047-48cf-b013-30d36869562f" ], - "Date": [ "Wed, 29 Jun 2022 14:23:12 GMT" ] + "Date": [ "Mon, 23 Jan 2023 07:07:53 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2021" ], + "Content-Length": [ "2380" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1\",\"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\",\"dataSourceName\":\"jececyblobstorage\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A20%3A47.5228968Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-29T14:20:47.0837877Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-29T14:20:46Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\"}]}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"name\":\"4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0b3a5509-47af-40e1-9a82-f1e4e452f7f9\",\"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\u00272023-01-23T07%3A06%3A51.2729309Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2023-01-23T07:06:50.8200285Z\",\"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\":\"2023-01-23T07:06:48Z\"},\"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/ee370010-696b-4e54-9160-ede937d2c377\",\"name\":\"ee370010-696b-4e54-9160-ede937d2c377\",\"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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01+18": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "166" ], - "x-ms-client-request-id": [ "92a5576f-1c68-4aba-94d6-50f5fb4815aa" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "08b6609f-453e-49f4-aafc-57713f0637fa" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -691,34 +387,35 @@ "Pragma": [ "no-cache" ], "Server": [ "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "196" ], + "x-ms-request-id": [ "bda6d2c8-893d-46fd-a2ad-2307b96dd504" ], + "x-ms-correlation-request-id": [ "bda6d2c8-893d-46fd-a2ad-2307b96dd504" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T070804Z:bda6d2c8-893d-46fd-a2ad-2307b96dd504" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "74" ], - "x-ms-request-id": [ "c4c5b5b8-7412-4c72-ac80-6e258febb8dd" ], - "x-ms-correlation-request-id": [ "c4c5b5b8-7412-4c72-ac80-6e258febb8dd" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142323Z:c4c5b5b8-7412-4c72-ac80-6e258febb8dd" ], - "Date": [ "Wed, 29 Jun 2022 14:23:23 GMT" ] + "Date": [ "Mon, 23 Jan 2023 07:08:04 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2021" ], + "Content-Length": [ "2380" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1\",\"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\",\"dataSourceName\":\"jececyblobstorage\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A20%3A47.5228968Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-29T14:20:47.0837877Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-29T14:20:46Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\"}]}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"name\":\"4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0b3a5509-47af-40e1-9a82-f1e4e452f7f9\",\"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\u00272023-01-23T07%3A06%3A51.2729309Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2023-01-23T07:06:50.8200285Z\",\"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\":\"2023-01-23T07:06:48Z\"},\"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/ee370010-696b-4e54-9160-ede937d2c377\",\"name\":\"ee370010-696b-4e54-9160-ede937d2c377\",\"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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01+19": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "167" ], - "x-ms-client-request-id": [ "c48bf8b1-a517-4f93-9023-4cf0a7e5ad35" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "badfb06b-ac5a-45f7-b0d6-0b6e23e70868" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -731,34 +428,35 @@ "Pragma": [ "no-cache" ], "Server": [ "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "195" ], + "x-ms-request-id": [ "85566ca8-ed7a-4afe-a6a4-b9f890822b52" ], + "x-ms-correlation-request-id": [ "85566ca8-ed7a-4afe-a6a4-b9f890822b52" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T070815Z:85566ca8-ed7a-4afe-a6a4-b9f890822b52" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "73" ], - "x-ms-request-id": [ "b0fa4e90-a3cf-496e-b7d4-2c7975f68739" ], - "x-ms-correlation-request-id": [ "b0fa4e90-a3cf-496e-b7d4-2c7975f68739" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142334Z:b0fa4e90-a3cf-496e-b7d4-2c7975f68739" ], - "Date": [ "Wed, 29 Jun 2022 14:23:34 GMT" ] + "Date": [ "Mon, 23 Jan 2023 07:08:14 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2021" ], + "Content-Length": [ "2380" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1\",\"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\",\"dataSourceName\":\"jececyblobstorage\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A20%3A47.5228968Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-29T14:20:47.0837877Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-29T14:20:46Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\"}]}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"name\":\"4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0b3a5509-47af-40e1-9a82-f1e4e452f7f9\",\"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\u00272023-01-23T07%3A06%3A51.2729309Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2023-01-23T07:06:50.8200285Z\",\"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\":\"2023-01-23T07:06:48Z\"},\"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/ee370010-696b-4e54-9160-ede937d2c377\",\"name\":\"ee370010-696b-4e54-9160-ede937d2c377\",\"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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01+20": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "168" ], - "x-ms-client-request-id": [ "8fd1da7e-ff72-4c39-852f-eff0ddb9ea74" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "608d780b-28bd-4a4b-a3ea-544026a83dcd" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -771,34 +469,35 @@ "Pragma": [ "no-cache" ], "Server": [ "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "194" ], + "x-ms-request-id": [ "9654e5cf-fe17-4be2-ad25-dbdca5c7760e" ], + "x-ms-correlation-request-id": [ "9654e5cf-fe17-4be2-ad25-dbdca5c7760e" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T070825Z:9654e5cf-fe17-4be2-ad25-dbdca5c7760e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "72" ], - "x-ms-request-id": [ "9083f158-6fdd-4818-8c3d-255395e81a9a" ], - "x-ms-correlation-request-id": [ "9083f158-6fdd-4818-8c3d-255395e81a9a" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142344Z:9083f158-6fdd-4818-8c3d-255395e81a9a" ], - "Date": [ "Wed, 29 Jun 2022 14:23:44 GMT" ] + "Date": [ "Mon, 23 Jan 2023 07:08:25 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2021" ], + "Content-Length": [ "2380" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1\",\"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\",\"dataSourceName\":\"jececyblobstorage\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A20%3A47.5228968Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-29T14:20:47.0837877Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-29T14:20:46Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\"}]}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"name\":\"4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0b3a5509-47af-40e1-9a82-f1e4e452f7f9\",\"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\u00272023-01-23T07%3A06%3A51.2729309Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2023-01-23T07:06:50.8200285Z\",\"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\":\"2023-01-23T07:06:48Z\"},\"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/ee370010-696b-4e54-9160-ede937d2c377\",\"name\":\"ee370010-696b-4e54-9160-ede937d2c377\",\"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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01+21": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "169" ], - "x-ms-client-request-id": [ "a84dcc89-2a45-4042-82b9-76e174a6c9b6" ], + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "1ade36cb-6f26-463c-bb85-1667c71b9b7d" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -811,34 +510,35 @@ "Pragma": [ "no-cache" ], "Server": [ "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "193" ], + "x-ms-request-id": [ "7423d049-234a-489b-be18-fa2d12a64700" ], + "x-ms-correlation-request-id": [ "7423d049-234a-489b-be18-fa2d12a64700" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T070836Z:7423d049-234a-489b-be18-fa2d12a64700" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "71" ], - "x-ms-request-id": [ "4efd2759-01e0-40d7-b077-e13ed653beb8" ], - "x-ms-correlation-request-id": [ "4efd2759-01e0-40d7-b077-e13ed653beb8" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142354Z:4efd2759-01e0-40d7-b077-e13ed653beb8" ], - "Date": [ "Wed, 29 Jun 2022 14:23:54 GMT" ] + "Date": [ "Mon, 23 Jan 2023 07:08:35 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2021" ], + "Content-Length": [ "2380" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1\",\"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\",\"dataSourceName\":\"jececyblobstorage\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A20%3A47.5228968Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-29T14:20:47.0837877Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-29T14:20:46Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\"}]}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"name\":\"4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0b3a5509-47af-40e1-9a82-f1e4e452f7f9\",\"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\u00272023-01-23T07%3A06%3A51.2729309Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2023-01-23T07:06:50.8200285Z\",\"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\":\"2023-01-23T07:06:48Z\"},\"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/ee370010-696b-4e54-9160-ede937d2c377\",\"name\":\"ee370010-696b-4e54-9160-ede937d2c377\",\"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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01+22": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "170" ], - "x-ms-client-request-id": [ "b96ab18e-f0c4-4587-b108-c8819ea4f365" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "eef9bb47-93a8-4b50-9d1b-0fe034ad25ca" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -851,34 +551,35 @@ "Pragma": [ "no-cache" ], "Server": [ "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "192" ], + "x-ms-request-id": [ "9837c0b7-146a-4499-ac58-4f042386a710" ], + "x-ms-correlation-request-id": [ "9837c0b7-146a-4499-ac58-4f042386a710" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T070847Z:9837c0b7-146a-4499-ac58-4f042386a710" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "70" ], - "x-ms-request-id": [ "e4c70df8-a0df-43d8-a3da-0890efbb5aae" ], - "x-ms-correlation-request-id": [ "e4c70df8-a0df-43d8-a3da-0890efbb5aae" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142405Z:e4c70df8-a0df-43d8-a3da-0890efbb5aae" ], - "Date": [ "Wed, 29 Jun 2022 14:24:04 GMT" ] + "Date": [ "Mon, 23 Jan 2023 07:08:47 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2021" ], + "Content-Length": [ "2380" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1\",\"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\",\"dataSourceName\":\"jececyblobstorage\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A20%3A47.5228968Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-29T14:20:47.0837877Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-29T14:20:46Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\"}]}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"name\":\"4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0b3a5509-47af-40e1-9a82-f1e4e452f7f9\",\"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\u00272023-01-23T07%3A06%3A51.2729309Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2023-01-23T07:06:50.8200285Z\",\"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\":\"2023-01-23T07:06:48Z\"},\"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/ee370010-696b-4e54-9160-ede937d2c377\",\"name\":\"ee370010-696b-4e54-9160-ede937d2c377\",\"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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01+23": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "171" ], - "x-ms-client-request-id": [ "e0423af5-2a22-4e20-aa7e-2c382fed685c" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "77d66cc3-9060-436b-a4a7-8b788e1f0376" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -891,34 +592,35 @@ "Pragma": [ "no-cache" ], "Server": [ "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "191" ], + "x-ms-request-id": [ "87290950-39aa-49dc-93cd-266f00fd2647" ], + "x-ms-correlation-request-id": [ "87290950-39aa-49dc-93cd-266f00fd2647" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T070858Z:87290950-39aa-49dc-93cd-266f00fd2647" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "69" ], - "x-ms-request-id": [ "c755c41e-6557-4868-b0ad-08f21be0fb9e" ], - "x-ms-correlation-request-id": [ "c755c41e-6557-4868-b0ad-08f21be0fb9e" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142415Z:c755c41e-6557-4868-b0ad-08f21be0fb9e" ], - "Date": [ "Wed, 29 Jun 2022 14:24:15 GMT" ] + "Date": [ "Mon, 23 Jan 2023 07:08:58 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2021" ], + "Content-Length": [ "2380" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1\",\"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\",\"dataSourceName\":\"jececyblobstorage\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A20%3A47.5228968Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-29T14:20:47.0837877Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-29T14:20:46Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\"}]}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"name\":\"4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0b3a5509-47af-40e1-9a82-f1e4e452f7f9\",\"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\u00272023-01-23T07%3A06%3A51.2729309Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2023-01-23T07:06:50.8200285Z\",\"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\":\"2023-01-23T07:06:48Z\"},\"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/ee370010-696b-4e54-9160-ede937d2c377\",\"name\":\"ee370010-696b-4e54-9160-ede937d2c377\",\"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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01+24": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "172" ], - "x-ms-client-request-id": [ "88ed9909-208d-44e2-8050-082d5539b9e0" ], + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "44d91c84-3914-4342-bbaa-95c7cbbe77a6" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -931,34 +633,35 @@ "Pragma": [ "no-cache" ], "Server": [ "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "190" ], + "x-ms-request-id": [ "ad5bab76-57cf-444d-b6e3-248787997f28" ], + "x-ms-correlation-request-id": [ "ad5bab76-57cf-444d-b6e3-248787997f28" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T070908Z:ad5bab76-57cf-444d-b6e3-248787997f28" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "68" ], - "x-ms-request-id": [ "d2b9e57c-51b6-40db-983e-bceed9f38d2b" ], - "x-ms-correlation-request-id": [ "d2b9e57c-51b6-40db-983e-bceed9f38d2b" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142425Z:d2b9e57c-51b6-40db-983e-bceed9f38d2b" ], - "Date": [ "Wed, 29 Jun 2022 14:24:25 GMT" ] + "Date": [ "Mon, 23 Jan 2023 07:09:08 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2021" ], + "Content-Length": [ "2380" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1\",\"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\",\"dataSourceName\":\"jececyblobstorage\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A20%3A47.5228968Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-29T14:20:47.0837877Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-29T14:20:46Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\"}]}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"name\":\"4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0b3a5509-47af-40e1-9a82-f1e4e452f7f9\",\"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\u00272023-01-23T07%3A06%3A51.2729309Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2023-01-23T07:06:50.8200285Z\",\"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\":\"2023-01-23T07:06:48Z\"},\"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/ee370010-696b-4e54-9160-ede937d2c377\",\"name\":\"ee370010-696b-4e54-9160-ede937d2c377\",\"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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01+25": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "173" ], - "x-ms-client-request-id": [ "357e777a-daab-4b62-8d26-465bbaf49465" ], + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "279bb04e-4376-45fb-acd4-8a8488573096" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -971,34 +674,35 @@ "Pragma": [ "no-cache" ], "Server": [ "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "189" ], + "x-ms-request-id": [ "0ae1b6f5-5638-49f7-80b3-0cbf2649a57d" ], + "x-ms-correlation-request-id": [ "0ae1b6f5-5638-49f7-80b3-0cbf2649a57d" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T070919Z:0ae1b6f5-5638-49f7-80b3-0cbf2649a57d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "67" ], - "x-ms-request-id": [ "135adc11-e0a8-44eb-9902-c5f7394b871c" ], - "x-ms-correlation-request-id": [ "135adc11-e0a8-44eb-9902-c5f7394b871c" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142436Z:135adc11-e0a8-44eb-9902-c5f7394b871c" ], - "Date": [ "Wed, 29 Jun 2022 14:24:35 GMT" ] + "Date": [ "Mon, 23 Jan 2023 07:09:19 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2021" ], + "Content-Length": [ "2380" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1\",\"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\",\"dataSourceName\":\"jececyblobstorage\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A20%3A47.5228968Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-29T14:20:47.0837877Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-29T14:20:46Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\"}]}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"name\":\"4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0b3a5509-47af-40e1-9a82-f1e4e452f7f9\",\"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\u00272023-01-23T07%3A06%3A51.2729309Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2023-01-23T07:06:50.8200285Z\",\"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\":\"2023-01-23T07:06:48Z\"},\"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/ee370010-696b-4e54-9160-ede937d2c377\",\"name\":\"ee370010-696b-4e54-9160-ede937d2c377\",\"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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01+26": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "174" ], - "x-ms-client-request-id": [ "47cad38a-87d6-4188-ae7a-26a341ad00ca" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "d2b22472-4fce-446f-91dd-e39c81bd306d" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1011,34 +715,35 @@ "Pragma": [ "no-cache" ], "Server": [ "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "188" ], + "x-ms-request-id": [ "77f2c9f4-5ab9-4a5d-8225-32c92930aea2" ], + "x-ms-correlation-request-id": [ "77f2c9f4-5ab9-4a5d-8225-32c92930aea2" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T070930Z:77f2c9f4-5ab9-4a5d-8225-32c92930aea2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "199" ], - "x-ms-request-id": [ "4ff5e880-8c94-4de2-970e-46435b3e5887" ], - "x-ms-correlation-request-id": [ "4ff5e880-8c94-4de2-970e-46435b3e5887" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142453Z:4ff5e880-8c94-4de2-970e-46435b3e5887" ], - "Date": [ "Wed, 29 Jun 2022 14:24:53 GMT" ] + "Date": [ "Mon, 23 Jan 2023 07:09:29 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2021" ], + "Content-Length": [ "2380" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1\",\"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\",\"dataSourceName\":\"jececyblobstorage\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A20%3A47.5228968Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-29T14:20:47.0837877Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-29T14:20:46Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\"}]}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"name\":\"4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0b3a5509-47af-40e1-9a82-f1e4e452f7f9\",\"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\u00272023-01-23T07%3A06%3A51.2729309Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2023-01-23T07:06:50.8200285Z\",\"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\":\"2023-01-23T07:06:48Z\"},\"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/ee370010-696b-4e54-9160-ede937d2c377\",\"name\":\"ee370010-696b-4e54-9160-ede937d2c377\",\"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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01+27": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "175" ], - "x-ms-client-request-id": [ "8d665e26-5852-47e8-9376-7f7c1daa8a95" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "5b0dabd8-98a5-4480-bb25-a79e4e67793d" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1051,34 +756,35 @@ "Pragma": [ "no-cache" ], "Server": [ "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "187" ], + "x-ms-request-id": [ "d2a3f40a-7309-477e-92f7-0f4e086bf187" ], + "x-ms-correlation-request-id": [ "d2a3f40a-7309-477e-92f7-0f4e086bf187" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T070940Z:d2a3f40a-7309-477e-92f7-0f4e086bf187" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "198" ], - "x-ms-request-id": [ "36a9421c-23d1-4efc-a347-8d60c224a690" ], - "x-ms-correlation-request-id": [ "36a9421c-23d1-4efc-a347-8d60c224a690" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142504Z:36a9421c-23d1-4efc-a347-8d60c224a690" ], - "Date": [ "Wed, 29 Jun 2022 14:25:03 GMT" ] + "Date": [ "Mon, 23 Jan 2023 07:09:40 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2021" ], + "Content-Length": [ "2380" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1\",\"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\",\"dataSourceName\":\"jececyblobstorage\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A20%3A47.5228968Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-29T14:20:47.0837877Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-29T14:20:46Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\"}]}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"name\":\"4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0b3a5509-47af-40e1-9a82-f1e4e452f7f9\",\"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\u00272023-01-23T07%3A06%3A51.2729309Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2023-01-23T07:06:50.8200285Z\",\"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\":\"2023-01-23T07:06:48Z\"},\"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/ee370010-696b-4e54-9160-ede937d2c377\",\"name\":\"ee370010-696b-4e54-9160-ede937d2c377\",\"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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01+28": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "176" ], - "x-ms-client-request-id": [ "84c3e2f7-15d5-4514-acb5-3ff8cc2ea7e2" ], + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "20af3cb6-a5db-4ecf-836f-c800d2384ef7" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1091,34 +797,35 @@ "Pragma": [ "no-cache" ], "Server": [ "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "186" ], + "x-ms-request-id": [ "4240b29e-09e0-48c5-823d-548a7cfd5d62" ], + "x-ms-correlation-request-id": [ "4240b29e-09e0-48c5-823d-548a7cfd5d62" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T070951Z:4240b29e-09e0-48c5-823d-548a7cfd5d62" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "197" ], - "x-ms-request-id": [ "a9a309f8-d5f6-4ca5-9ea6-f5d4ab6b54fc" ], - "x-ms-correlation-request-id": [ "a9a309f8-d5f6-4ca5-9ea6-f5d4ab6b54fc" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142514Z:a9a309f8-d5f6-4ca5-9ea6-f5d4ab6b54fc" ], - "Date": [ "Wed, 29 Jun 2022 14:25:14 GMT" ] + "Date": [ "Mon, 23 Jan 2023 07:09:50 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2021" ], + "Content-Length": [ "2380" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1\",\"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\",\"dataSourceName\":\"jececyblobstorage\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A20%3A47.5228968Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-29T14:20:47.0837877Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-29T14:20:46Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\"}]}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"name\":\"4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0b3a5509-47af-40e1-9a82-f1e4e452f7f9\",\"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\u00272023-01-23T07%3A06%3A51.2729309Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2023-01-23T07:06:50.8200285Z\",\"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\":\"2023-01-23T07:06:48Z\"},\"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/ee370010-696b-4e54-9160-ede937d2c377\",\"name\":\"ee370010-696b-4e54-9160-ede937d2c377\",\"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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01+29": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "177" ], - "x-ms-client-request-id": [ "a7de04b0-a6af-487f-b1c6-b55b732f5c08" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "22bf8068-9873-49b8-8c41-ce0f52d12766" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1131,34 +838,35 @@ "Pragma": [ "no-cache" ], "Server": [ "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "185" ], + "x-ms-request-id": [ "61b45395-6ff3-4a49-ac27-ae959732591b" ], + "x-ms-correlation-request-id": [ "61b45395-6ff3-4a49-ac27-ae959732591b" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T071002Z:61b45395-6ff3-4a49-ac27-ae959732591b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "196" ], - "x-ms-request-id": [ "c40fbce9-6420-4859-8f48-46f43c4450b9" ], - "x-ms-correlation-request-id": [ "c40fbce9-6420-4859-8f48-46f43c4450b9" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142525Z:c40fbce9-6420-4859-8f48-46f43c4450b9" ], - "Date": [ "Wed, 29 Jun 2022 14:25:24 GMT" ] + "Date": [ "Mon, 23 Jan 2023 07:10:02 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2021" ], + "Content-Length": [ "2380" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1\",\"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\",\"dataSourceName\":\"jececyblobstorage\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A20%3A47.5228968Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-29T14:20:47.0837877Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"InProgress\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-29T14:20:46Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\"}]}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"name\":\"4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0b3a5509-47af-40e1-9a82-f1e4e452f7f9\",\"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\u00272023-01-23T07%3A06%3A51.2729309Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2023-01-23T07:06:50.8200285Z\",\"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\":\"2023-01-23T07:06:48Z\"},\"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/ee370010-696b-4e54-9160-ede937d2c377\",\"name\":\"ee370010-696b-4e54-9160-ede937d2c377\",\"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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01+30": { + "Initialize-AzDataProtectionRestoreRequest+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-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/4c23e392-840c-4e87-a8e4-8bf912c2ac5a?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "178" ], - "x-ms-client-request-id": [ "12ce8c82-e43c-4548-9c5c-6037340deab5" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "8df6e4f2-1cbd-4a99-a338-c8dde2f71d53" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1171,20 +879,20 @@ "Pragma": [ "no-cache" ], "Server": [ "Kestrel" ], "X-Content-Type-Options": [ "nosniff" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "184" ], + "x-ms-request-id": [ "7e2fe851-d266-407b-a5dd-149ba531f38e" ], + "x-ms-correlation-request-id": [ "7e2fe851-d266-407b-a5dd-149ba531f38e" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T071013Z:7e2fe851-d266-407b-a5dd-149ba531f38e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "195" ], - "x-ms-request-id": [ "bf99b3b2-70b5-465e-8734-53f7c1fa64fc" ], - "x-ms-correlation-request-id": [ "bf99b3b2-70b5-465e-8734-53f7c1fa64fc" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142536Z:bf99b3b2-70b5-465e-8734-53f7c1fa64fc" ], - "Date": [ "Wed, 29 Jun 2022 14:25:35 GMT" ] + "Date": [ "Mon, 23 Jan 2023 07:10:13 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2070" ], + "Content-Length": [ "2555" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"917b9aee-eb1d-4fb8-aca9-d2fe349b9cd1\",\"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\",\"dataSourceName\":\"jececyblobstorage\",\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A25%3A32.815603Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2022-06-29T14:20:47.0837877Z\",\"endTime\":\"2022-06-29T14:25:32.5632343Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"Completed\",\"isUserTriggered\":true,\"supportedActions\":[\"\"],\"duration\":\"PT4M45.4794466S\",\"extendedInfo\":{\"sourceRecoverPoint\":{\"recoveryPointTime\":\"2022-06-29T14:20:46Z\"},\"recoveryDestination\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.Storage/storageAccounts/jececyblobstorage\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"Completed\"}]}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"name\":\"4c23e392-840c-4e87-a8e4-8bf912c2ac5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0b3a5509-47af-40e1-9a82-f1e4e452f7f9\",\"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\u00272023-01-23T07%3A10%3A07.7356481Z\u0027\\\"\",\"sourceSubscriptionID\":\"62b829ee-7936-40c9-a1c9-47a93f9f3965\",\"dataSourceLocation\":\"eastus2euap\",\"startTime\":\"2023-01-23T07:06:50.8200285Z\",\"endTime\":\"2023-01-23T07:10:07.2328527Z\",\"dataSourceType\":\"Microsoft.Storage/storageAccounts/blobServices\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT3M16.4128242S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":null,\"recoveryPointTime\":\"2023-01-23T07:06:48Z\"},\"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\":{\"DataTransferredInBytes\":\"0\",\"TaskId\":\"0b3a5509-47af-40e1-9a82-f1e4e452f7f9\",\"DatasourceType\":\"Microsoft.Storage/storageAccounts/blobServices\"}}],\"additionalDetails\":null}},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BlobBackup-BugBash/providers/Microsoft.DataProtection/backupVaults/jecECYBlobVault/backupJobs/ee370010-696b-4e54-9160-ede937d2c377\",\"name\":\"ee370010-696b-4e54-9160-ede937d2c377\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/DataProtection/test/New-AzDataProtectionBackupInstance.Recording.json b/src/DataProtection/test/New-AzDataProtectionBackupInstance.Recording.json index 6f6beae9af44..c58df0cc7c20 100644 --- a/src/DataProtection/test/New-AzDataProtectionBackupInstance.Recording.json +++ b/src/DataProtection/test/New-AzDataProtectionBackupInstance.Recording.json @@ -1,16 +1,17 @@ { - "New-AzDataProtectionBackupInstance+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault?api-version=2022-05-01+1": { + "New-AzDataProtectionBackupInstance+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault?api-version=2022-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "179" ], - "x-ms-client-request-id": [ "228521b4-3396-460a-a798-37d9fcd926f5" ], + "x-ms-unique-id": [ "241" ], + "x-ms-client-request-id": [ "0875d03d-c8db-4e11-93cf-9cbd33f79f20" ], "CommandName": [ "Get-AzDataProtectionBackupVault" ], "FullCommandName": [ "Get-AzDataProtectionBackupVault_Get2" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -26,31 +27,33 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], - "x-ms-correlation-request-id": [ "cd72abaa-7348-43d4-88f6-f0592e7b1587" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142538Z:cd72abaa-7348-43d4-88f6-f0592e7b1587" ], - "Date": [ "Wed, 29 Jun 2022 14:25:37 GMT" ] + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "497" ], + "x-ms-correlation-request-id": [ "38ad19bb-c44b-4f15-ba06-1b430831083f" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T131332Z:38ad19bb-c44b-4f15-ba06-1b430831083f" ], + "Date": [ "Sun, 22 Jan 2023 13:13:32 GMT" ] }, "ContentHeaders": { "Content-Length": [ "691" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"location\":\"centraluseuap\",\"tags\":{\"MABUsed\":\"Yes\",\"Owner\":\"hiaga\",\"Purpose\":\"testing\",\"DeleteBy\":\"01-2099\"},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"74ad0080-cf50-42ae-a83a-7c5f1126cae2\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"GeoRedundant\"},{\"datastoreType\":\"ArchiveStore\",\"type\":\"GeoRedundant\"}],\"isVaultProtectedByResourceGuard\":false},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault\",\"name\":\"oss-pstest-vault\",\"type\":\"Microsoft.DataProtection/backupVaults\"}" + "Content": "{\"location\":\"centraluseuap\",\"tags\":{\"MABUsed\":\"Yes\",\"Owner\":\"hiaga\",\"Purpose\":\"testing\",\"DeleteBy\":\"01-2099\"},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"74ad0080-cf50-42ae-a83a-7c5f1126cae2\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"GeoRedundant\"},{\"datastoreType\":\"ArchiveStore\",\"type\":\"GeoRedundant\"}],\"isVaultProtectedByResourceGuard\":false},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault\",\"name\":\"oss-pstest-vault\",\"type\":\"Microsoft.DataProtection/backupVaults\"}", + "isContentBase64": false } }, - "New-AzDataProtectionBackupInstance+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies?api-version=2022-05-01+2": { + "New-AzDataProtectionBackupInstance+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies?api-version=2022-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "180" ], - "x-ms-client-request-id": [ "bf105b9d-d55a-4885-a1c9-b9c954c02a01" ], + "x-ms-unique-id": [ "242" ], + "x-ms-client-request-id": [ "723bca0c-7b4e-44cf-98e6-6e51c74f23f5" ], "CommandName": [ "Get-AzDataProtectionBackupPolicy" ], "FullCommandName": [ "Get-AzDataProtectionBackupPolicy_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -66,31 +69,33 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "199" ], - "x-ms-correlation-request-id": [ "b1dae13d-e11f-44bb-b8a8-e92e5b4afa86" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142538Z:b1dae13d-e11f-44bb-b8a8-e92e5b4afa86" ], - "Date": [ "Wed, 29 Jun 2022 14:25:37 GMT" ] + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "198" ], + "x-ms-correlation-request-id": [ "2d5ddf38-95cb-42a8-9957-a8d8d6496713" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T131332Z:2d5ddf38-95cb-42a8-9957-a8d8d6496713" ], + "Date": [ "Sun, 22 Jan 2023 13:13:32 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2939" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-08-29T10:00:00+05:30/P1W\",\"R/2021-09-02T10:00:00+05:30/P1W\"],\"timeZone\":\"India Standard Time\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"name\":\"oss-pstest-policy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-09-19T05:30:00+00:00/P1W\"],\"timeZone\":\"UTC\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/newOssPol\",\"name\":\"newOssPol\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"}]}" + "Content": "{\"value\":[{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-08-29T10:00:00+05:30/P1W\",\"R/2021-09-02T10:00:00+05:30/P1W\"],\"timeZone\":\"India Standard Time\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"name\":\"oss-pstest-policy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-09-19T05:30:00+00:00/P1W\"],\"timeZone\":\"UTC\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/newOssPol\",\"name\":\"newOssPol\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"}]}", + "isContentBase64": false } }, - "New-AzDataProtectionBackupInstance+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances?api-version=2022-05-01+3": { + "New-AzDataProtectionBackupInstance+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances?api-version=2022-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "181" ], - "x-ms-client-request-id": [ "9e0c511f-4cfb-4e6c-a026-79ed9daf5a26" ], + "x-ms-unique-id": [ "243" ], + "x-ms-client-request-id": [ "64d7fc26-1899-4ed3-973a-39cd3a71310f" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -106,31 +111,33 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "1999" ], - "x-ms-correlation-request-id": [ "716d99e8-6b3b-451f-9dd0-dc4f32a95b11" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142538Z:716d99e8-6b3b-451f-9dd0-dc4f32a95b11" ], - "Date": [ "Wed, 29 Jun 2022 14:25:38 GMT" ] + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "1998" ], + "x-ms-correlation-request-id": [ "c0b272f4-d403-4ece-8c09-6b538f05f815" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T131332Z:c0b272f4-d403-4ece-8c09-6b538f05f815" ], + "Date": [ "Sun, 22 Jan 2023 13:13:32 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1860" ], + "Content-Length": [ "1942" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"friendlyName\":\"oss-pstest-server\\\\postgres\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"resourceName\":\"postgres\",\"resourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"dataSourceSetInfo\":{\"resourceID\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"resourceName\":\"oss-pstest-server\",\"resourceType\":\"Microsoft.DBforPostgreSQL/servers\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"DatasourceSet\"},\"policyInfo\":{\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\"},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"datasourceAuthCredentials\":{\"objectType\":\"SecretStoreBasedAuthCredentials\",\"secretStoreResource\":{\"uri\":\"https://oss-pstest-keyvault.vault.azure.net/secrets/oss-pstest-secret\",\"secretStoreType\":\"AzureKeyVault\",\"value\":null}},\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"name\":\"oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"}]}" + "Content": "{\"value\":[{\"tags\":{\"Owner\":\"hiaga\",\"MABUsed\":\"Yes\",\"DeleteBy\":\"06-2023\",\"Purpose\":\"Testing\"},\"properties\":{\"friendlyName\":\"oss-pstest-server\\\\postgres\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"resourceName\":\"postgres\",\"resourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"dataSourceSetInfo\":{\"resourceID\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"resourceName\":\"oss-pstest-server\",\"resourceType\":\"Microsoft.DBforPostgreSQL/servers\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"DatasourceSet\"},\"policyInfo\":{\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\"},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"datasourceAuthCredentials\":{\"objectType\":\"SecretStoreBasedAuthCredentials\",\"secretStoreResource\":{\"uri\":\"https://oss-pstest-keyvault.vault.azure.net/secrets/oss-pstest-secret\",\"secretStoreType\":\"AzureKeyVault\",\"value\":null}},\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"name\":\"oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"}]}", + "isContentBase64": false } }, - "New-AzDataProtectionBackupInstance+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances?api-version=2022-05-01+4": { + "New-AzDataProtectionBackupInstance+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances?api-version=2022-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "182" ], - "x-ms-client-request-id": [ "af74ee1e-875a-4036-b9ce-223fdd4547bc" ], + "x-ms-unique-id": [ "244" ], + "x-ms-client-request-id": [ "6dac13bf-efa2-4d65-be0b-25f40d774b46" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -146,17 +153,18 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "1998" ], - "x-ms-correlation-request-id": [ "8eae7da6-7c6d-48fe-90c4-bd076f01c7a7" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142539Z:8eae7da6-7c6d-48fe-90c4-bd076f01c7a7" ], - "Date": [ "Wed, 29 Jun 2022 14:25:38 GMT" ] + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "1997" ], + "x-ms-correlation-request-id": [ "0ebfabbf-3d1e-4660-ba82-5dfed99f23f2" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T131333Z:0ebfabbf-3d1e-4660-ba82-5dfed99f23f2" ], + "Date": [ "Sun, 22 Jan 2023 13:13:33 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1860" ], + "Content-Length": [ "1942" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"friendlyName\":\"oss-pstest-server\\\\postgres\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"resourceName\":\"postgres\",\"resourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"dataSourceSetInfo\":{\"resourceID\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"resourceName\":\"oss-pstest-server\",\"resourceType\":\"Microsoft.DBforPostgreSQL/servers\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"DatasourceSet\"},\"policyInfo\":{\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\"},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"datasourceAuthCredentials\":{\"objectType\":\"SecretStoreBasedAuthCredentials\",\"secretStoreResource\":{\"uri\":\"https://oss-pstest-keyvault.vault.azure.net/secrets/oss-pstest-secret\",\"secretStoreType\":\"AzureKeyVault\",\"value\":null}},\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"name\":\"oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"}]}" + "Content": "{\"value\":[{\"tags\":{\"Owner\":\"hiaga\",\"MABUsed\":\"Yes\",\"DeleteBy\":\"06-2023\",\"Purpose\":\"Testing\"},\"properties\":{\"friendlyName\":\"oss-pstest-server\\\\postgres\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"resourceName\":\"postgres\",\"resourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"dataSourceSetInfo\":{\"resourceID\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"resourceName\":\"oss-pstest-server\",\"resourceType\":\"Microsoft.DBforPostgreSQL/servers\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"DatasourceSet\"},\"policyInfo\":{\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\"},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"datasourceAuthCredentials\":{\"objectType\":\"SecretStoreBasedAuthCredentials\",\"secretStoreResource\":{\"uri\":\"https://oss-pstest-keyvault.vault.azure.net/secrets/oss-pstest-secret\",\"secretStoreType\":\"AzureKeyVault\",\"value\":null}},\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"name\":\"oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"}]}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/DataProtection/test/New-AzDataProtectionBackupPolicy.Recording.json b/src/DataProtection/test/New-AzDataProtectionBackupPolicy.Recording.json index 923eae2d15cd..c1c4b3cb0297 100644 --- a/src/DataProtection/test/New-AzDataProtectionBackupPolicy.Recording.json +++ b/src/DataProtection/test/New-AzDataProtectionBackupPolicy.Recording.json @@ -1,9 +1,10 @@ { - "New-AzDataProtectionBackupPolicy+[NoContext]+__AllParameterSets+$PUT+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy-archive?api-version=2022-05-01+1": { + "New-AzDataProtectionBackupPolicy+[NoContext]+__AllParameterSets+$PUT+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy-archive?api-version=2022-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy-archive?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy-archive?api-version=2022-12-01", "Content": "{\r\n \"properties\": {\r\n \"datasourceTypes\": [ \"Microsoft.DBforPostgreSQL/servers/databases\" ],\r\n \"objectType\": \"BackupPolicy\",\r\n \"policyRules\": [\r\n {\r\n \"name\": \"BackupWeekly\",\r\n \"objectType\": \"AzureBackupRule\",\r\n \"backupParameters\": {\r\n \"objectType\": \"AzureBackupParams\",\r\n \"backupType\": \"Full\"\r\n },\r\n \"dataStore\": {\r\n \"dataStoreType\": \"VaultStore\",\r\n \"objectType\": \"DataStoreInfoBase\"\r\n },\r\n \"trigger\": {\r\n \"objectType\": \"ScheduleBasedTriggerContext\",\r\n \"schedule\": {\r\n \"repeatingTimeIntervals\": [ \"R/2021-08-18T10:00:00+05:30/P1W\", \"R/2021-08-22T10:00:00+05:30/P1W\" ],\r\n \"timeZone\": \"India Standard Time\"\r\n },\r\n \"taggingCriteria\": [\r\n {\r\n \"tagInfo\": {\r\n \"tagName\": \"Default\"\r\n },\r\n \"isDefault\": true,\r\n \"taggingPriority\": 99\r\n },\r\n {\r\n \"tagInfo\": {\r\n \"tagName\": \"Monthly\"\r\n },\r\n \"criteria\": [\r\n {\r\n \"objectType\": \"ScheduleBasedBackupCriteria\",\r\n \"absoluteCriteria\": [ \"FirstOfMonth\" ]\r\n }\r\n ],\r\n \"isDefault\": false,\r\n \"taggingPriority\": 15\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"Default\",\r\n \"objectType\": \"AzureRetentionRule\",\r\n \"isDefault\": true,\r\n \"lifecycles\": [\r\n {\r\n \"deleteAfter\": {\r\n \"duration\": \"P3M\",\r\n \"objectType\": \"AbsoluteDeleteOption\"\r\n },\r\n \"sourceDataStore\": {\r\n \"dataStoreType\": \"VaultStore\",\r\n \"objectType\": \"DataStoreInfoBase\"\r\n },\r\n \"targetDataStoreCopySettings\": [\r\n {\r\n \"copyAfter\": {\r\n \"objectType\": \"CopyOnExpiryOption\"\r\n },\r\n \"dataStore\": {\r\n \"dataStoreType\": \"ArchiveStore\",\r\n \"objectType\": \"DataStoreInfoBase\"\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"deleteAfter\": {\r\n \"duration\": \"P6M\",\r\n \"objectType\": \"AbsoluteDeleteOption\"\r\n },\r\n \"sourceDataStore\": {\r\n \"dataStoreType\": \"ArchiveStore\",\r\n \"objectType\": \"DataStoreInfoBase\"\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Monthly\",\r\n \"objectType\": \"AzureRetentionRule\",\r\n \"isDefault\": false,\r\n \"lifecycles\": [\r\n {\r\n \"deleteAfter\": {\r\n \"duration\": \"P6M\",\r\n \"objectType\": \"AbsoluteDeleteOption\"\r\n },\r\n \"sourceDataStore\": {\r\n \"dataStoreType\": \"VaultStore\",\r\n \"objectType\": \"DataStoreInfoBase\"\r\n },\r\n \"targetDataStoreCopySettings\": [\r\n {\r\n \"copyAfter\": {\r\n \"objectType\": \"CopyOnExpiryOption\"\r\n },\r\n \"dataStore\": {\r\n \"dataStoreType\": \"ArchiveStore\",\r\n \"objectType\": \"DataStoreInfoBase\"\r\n }\r\n }\r\n ]\r\n },\r\n {\r\n \"deleteAfter\": {\r\n \"duration\": \"P12M\",\r\n \"objectType\": \"AbsoluteDeleteOption\"\r\n },\r\n \"sourceDataStore\": {\r\n \"dataStoreType\": \"ArchiveStore\",\r\n \"objectType\": \"DataStoreInfoBase\"\r\n }\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { @@ -22,30 +23,32 @@ "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "199" ], - "x-ms-correlation-request-id": [ "a22e0d0d-ad9b-4ba1-801f-19eaa7bfa617" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142540Z:a22e0d0d-ad9b-4ba1-801f-19eaa7bfa617" ], - "Date": [ "Wed, 29 Jun 2022 14:25:39 GMT" ] + "x-ms-correlation-request-id": [ "423775ea-3da9-4401-8f33-55ce0bb7ce68" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T131336Z:423775ea-3da9-4401-8f33-55ce0bb7ce68" ], + "Date": [ "Sun, 22 Jan 2023 13:13:36 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2217" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-08-18T10:00:00+05:30/P1W\",\"R/2021-08-22T10:00:00+05:30/P1W\"],\"timeZone\":\"India Standard Time\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true},{\"tagInfo\":{\"tagName\":\"Monthly\",\"id\":\"Monthly_\"},\"taggingPriority\":15,\"isDefault\":false,\"criteria\":[{\"absoluteCriteria\":[\"FirstOfMonth\"],\"objectType\":\"ScheduleBasedBackupCriteria\"}]}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P12M\"},\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Monthly\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy-archive\",\"name\":\"oss-pstest-policy-archive\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"}" + "Content": "{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-08-18T10:00:00+05:30/P1W\",\"R/2021-08-22T10:00:00+05:30/P1W\"],\"timeZone\":\"India Standard Time\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true},{\"tagInfo\":{\"tagName\":\"Monthly\",\"id\":\"Monthly_\"},\"taggingPriority\":15,\"isDefault\":false,\"criteria\":[{\"absoluteCriteria\":[\"FirstOfMonth\"],\"objectType\":\"ScheduleBasedBackupCriteria\"}]}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P12M\"},\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Monthly\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy-archive\",\"name\":\"oss-pstest-policy-archive\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"}", + "isContentBase64": false } }, - "New-AzDataProtectionBackupPolicy+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies?api-version=2022-05-01+2": { + "New-AzDataProtectionBackupPolicy+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies?api-version=2022-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "184" ], - "x-ms-client-request-id": [ "d8b79753-d178-4cc5-87a9-a5127fe512a0" ], + "x-ms-unique-id": [ "246" ], + "x-ms-client-request-id": [ "ee647569-2b48-415d-870a-65ade4bee225" ], "CommandName": [ "Get-AzDataProtectionBackupPolicy" ], "FullCommandName": [ "Get-AzDataProtectionBackupPolicy_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -61,31 +64,33 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "198" ], - "x-ms-correlation-request-id": [ "1381fdb2-9803-48e3-9578-9b9011c7b2cf" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142540Z:1381fdb2-9803-48e3-9578-9b9011c7b2cf" ], - "Date": [ "Wed, 29 Jun 2022 14:25:40 GMT" ] + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "197" ], + "x-ms-correlation-request-id": [ "fd8a1f0e-5398-44cb-8d42-d09430e6e598" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T131336Z:fd8a1f0e-5398-44cb-8d42-d09430e6e598" ], + "Date": [ "Sun, 22 Jan 2023 13:13:36 GMT" ] }, "ContentHeaders": { "Content-Length": [ "5157" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-08-29T10:00:00+05:30/P1W\",\"R/2021-09-02T10:00:00+05:30/P1W\"],\"timeZone\":\"India Standard Time\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"name\":\"oss-pstest-policy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-08-18T10:00:00+05:30/P1W\",\"R/2021-08-22T10:00:00+05:30/P1W\"],\"timeZone\":\"India Standard Time\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true},{\"tagInfo\":{\"tagName\":\"Monthly\",\"id\":\"Monthly_\"},\"taggingPriority\":15,\"isDefault\":false,\"criteria\":[{\"absoluteCriteria\":[\"FirstOfMonth\"],\"objectType\":\"ScheduleBasedBackupCriteria\"}]}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P12M\"},\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Monthly\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy-archive\",\"name\":\"oss-pstest-policy-archive\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-09-19T05:30:00+00:00/P1W\"],\"timeZone\":\"UTC\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/newOssPol\",\"name\":\"newOssPol\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"}]}" + "Content": "{\"value\":[{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-08-18T10:00:00+05:30/P1W\",\"R/2021-08-22T10:00:00+05:30/P1W\"],\"timeZone\":\"India Standard Time\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true},{\"tagInfo\":{\"tagName\":\"Monthly\",\"id\":\"Monthly_\"},\"taggingPriority\":15,\"isDefault\":false,\"criteria\":[{\"absoluteCriteria\":[\"FirstOfMonth\"],\"objectType\":\"ScheduleBasedBackupCriteria\"}]}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P12M\"},\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":false,\"name\":\"Monthly\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy-archive\",\"name\":\"oss-pstest-policy-archive\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-08-29T10:00:00+05:30/P1W\",\"R/2021-09-02T10:00:00+05:30/P1W\"],\"timeZone\":\"India Standard Time\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"name\":\"oss-pstest-policy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-09-19T05:30:00+00:00/P1W\"],\"timeZone\":\"UTC\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/newOssPol\",\"name\":\"newOssPol\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"}]}", + "isContentBase64": false } }, - "New-AzDataProtectionBackupPolicy+[NoContext]+__AllParameterSets+$DELETE+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy-archive?api-version=2022-05-01+3": { + "New-AzDataProtectionBackupPolicy+[NoContext]+__AllParameterSets+$DELETE+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy-archive?api-version=2022-12-01+3": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy-archive?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy-archive?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "185" ], - "x-ms-client-request-id": [ "be83b1ca-b4d0-45cb-beeb-27eceb55791b" ], + "x-ms-unique-id": [ "247" ], + "x-ms-client-request-id": [ "94612b92-a620-4d96-bf3c-fc7d7057dfc0" ], "CommandName": [ "Remove-AzDataProtectionBackupPolicy" ], "FullCommandName": [ "Remove-AzDataProtectionBackupPolicy_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -101,29 +106,31 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Powered-By": [ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "49" ], - "x-ms-correlation-request-id": [ "f7cf3475-4da0-488a-81c6-c2ca63fca8f1" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142541Z:f7cf3475-4da0-488a-81c6-c2ca63fca8f1" ], - "Date": [ "Wed, 29 Jun 2022 14:25:40 GMT" ] + "x-ms-correlation-request-id": [ "5c218cbd-6ec6-4fdc-80f6-9ecdbbd12efb" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T131337Z:5c218cbd-6ec6-4fdc-80f6-9ecdbbd12efb" ], + "Date": [ "Sun, 22 Jan 2023 13:13:37 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } }, - "New-AzDataProtectionBackupPolicy+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies?api-version=2022-05-01+4": { + "New-AzDataProtectionBackupPolicy+[NoContext]+__AllParameterSets+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies?api-version=2022-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "186" ], - "x-ms-client-request-id": [ "0fa57d7b-cea4-4dc1-98d6-00fc5c6ac0bb" ], + "x-ms-unique-id": [ "248" ], + "x-ms-client-request-id": [ "b8dea2dc-b4e7-43a3-a6ab-fb90d0ee52c3" ], "CommandName": [ "Get-AzDataProtectionBackupPolicy" ], "FullCommandName": [ "Get-AzDataProtectionBackupPolicy_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -139,17 +146,18 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "197" ], - "x-ms-correlation-request-id": [ "1d8d8050-79fb-47b6-83c6-6a5b8416fe62" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142541Z:1d8d8050-79fb-47b6-83c6-6a5b8416fe62" ], - "Date": [ "Wed, 29 Jun 2022 14:25:41 GMT" ] + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "196" ], + "x-ms-correlation-request-id": [ "dea42e36-c120-484a-b134-f24bc5672b7c" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T131338Z:dea42e36-c120-484a-b134-f24bc5672b7c" ], + "Date": [ "Sun, 22 Jan 2023 13:13:37 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2939" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-08-29T10:00:00+05:30/P1W\",\"R/2021-09-02T10:00:00+05:30/P1W\"],\"timeZone\":\"India Standard Time\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"name\":\"oss-pstest-policy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-09-19T05:30:00+00:00/P1W\"],\"timeZone\":\"UTC\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/newOssPol\",\"name\":\"newOssPol\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"}]}" + "Content": "{\"value\":[{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-08-29T10:00:00+05:30/P1W\",\"R/2021-09-02T10:00:00+05:30/P1W\"],\"timeZone\":\"India Standard Time\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"name\":\"oss-pstest-policy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-09-19T05:30:00+00:00/P1W\"],\"timeZone\":\"UTC\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/newOssPol\",\"name\":\"newOssPol\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"}]}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/DataProtection/test/New-AzDataProtectionBackupVault.Recording.json b/src/DataProtection/test/New-AzDataProtectionBackupVault.Recording.json index d3ca247b60f2..dfd84f03a5f2 100644 --- a/src/DataProtection/test/New-AzDataProtectionBackupVault.Recording.json +++ b/src/DataProtection/test/New-AzDataProtectionBackupVault.Recording.json @@ -1,9 +1,10 @@ { - "New-AzDataProtectionBackupVault+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault?api-version=2022-05-01+1": { + "New-AzDataProtectionBackupVault+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault?api-version=2022-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault?api-version=2022-05-01", - "Content": "{\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\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}", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault?api-version=2022-12-01", + "Content": "{\r\n \"location\": \"centraluseuap\",\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\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": { }, "ContentHeaders": { @@ -11,45 +12,254 @@ "Content-Length": [ "240" ] } }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-arm-resource-system-data": [ "{\"lastModifiedBy\":\"hiaga@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T12:21:13.9682583Z\"}" ], + "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-resource-requests": [ "99" ], + "x-ms-correlation-request-id": [ "93eb8146-6595-4a2b-b936-b342ca24ad35" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230130T122122Z:93eb8146-6595-4a2b-b936-b342ca24ad35" ], + "Date": [ "Mon, 30 Jan 2023 12:21:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "761" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"location\":\"centraluseuap\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"05c462e8-65b8-44f9-9932-5bd60badaefb\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"LocallyRedundant\"}],\"isVaultProtectedByResourceGuard\":false,\"securitySettings\":{\"softDeleteSettings\":{\"state\":\"On\",\"retentionDurationInDays\":14.0},\"immutabilitySettings\":{\"state\":\"Unlocked\"}},\"featureSettings\":{\"crossSubscriptionRestoreSettings\":{\"state\":\"Enabled\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault\",\"name\":\"new-pstest-vault\",\"type\":\"Microsoft.DataProtection/backupVaults\"}", + "isContentBase64": false + } + }, + "New-AzDataProtectionBackupVault+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault?api-version=2022-12-01+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "8625f178-f6f9-48da-9457-b26c9a897dfe" ], + "CommandName": [ "Az.DataProtection.Internal\\New-AzDataProtectionBackupVault" ], + "FullCommandName": [ "New-AzDataProtectionBackupVault_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ] + }, + "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-resource-requests": [ "499" ], + "x-ms-correlation-request-id": [ "47ef3f89-9568-4c3d-ae63-8086593e05f9" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230130T122152Z:47ef3f89-9568-4c3d-ae63-8086593e05f9" ], + "Date": [ "Mon, 30 Jan 2023 12:21:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "761" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"location\":\"centraluseuap\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"05c462e8-65b8-44f9-9932-5bd60badaefb\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"LocallyRedundant\"}],\"isVaultProtectedByResourceGuard\":false,\"securitySettings\":{\"softDeleteSettings\":{\"state\":\"On\",\"retentionDurationInDays\":14.0},\"immutabilitySettings\":{\"state\":\"Unlocked\"}},\"featureSettings\":{\"crossSubscriptionRestoreSettings\":{\"state\":\"Enabled\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault\",\"name\":\"new-pstest-vault\",\"type\":\"Microsoft.DataProtection/backupVaults\"}", + "isContentBase64": false + } + }, + "New-AzDataProtectionBackupVault+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault?api-version=2022-12-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "8625f178-f6f9-48da-9457-b26c9a897dfe" ], + "CommandName": [ "Az.DataProtection.Internal\\New-AzDataProtectionBackupVault" ], + "FullCommandName": [ "New-AzDataProtectionBackupVault_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ] + }, + "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-resource-requests": [ "498" ], + "x-ms-correlation-request-id": [ "7e62c7c9-dd12-41b1-918f-04ed2a7983dc" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230130T122153Z:7e62c7c9-dd12-41b1-918f-04ed2a7983dc" ], + "Date": [ "Mon, 30 Jan 2023 12:21:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "761" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"location\":\"centraluseuap\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"05c462e8-65b8-44f9-9932-5bd60badaefb\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"LocallyRedundant\"}],\"isVaultProtectedByResourceGuard\":false,\"securitySettings\":{\"softDeleteSettings\":{\"state\":\"On\",\"retentionDurationInDays\":14.0},\"immutabilitySettings\":{\"state\":\"Unlocked\"}},\"featureSettings\":{\"crossSubscriptionRestoreSettings\":{\"state\":\"Enabled\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault\",\"name\":\"new-pstest-vault\",\"type\":\"Microsoft.DataProtection/backupVaults\"}", + "isContentBase64": false + } + }, + "New-AzDataProtectionBackupVault+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault?api-version=2022-12-01+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "fb2beba8-4b6a-4b25-8601-1f6d95a72e10" ], + "CommandName": [ "Get-AzDataProtectionBackupVault" ], + "FullCommandName": [ "Get-AzDataProtectionBackupVault_Get2" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "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-resource-requests": [ "497" ], + "x-ms-correlation-request-id": [ "c99b7172-b023-4a0f-b2db-1306ce293b45" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230130T122154Z:c99b7172-b023-4a0f-b2db-1306ce293b45" ], + "Date": [ "Mon, 30 Jan 2023 12:21:53 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "761" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"location\":\"centraluseuap\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"05c462e8-65b8-44f9-9932-5bd60badaefb\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"LocallyRedundant\"}],\"isVaultProtectedByResourceGuard\":false,\"securitySettings\":{\"softDeleteSettings\":{\"state\":\"On\",\"retentionDurationInDays\":14.0},\"immutabilitySettings\":{\"state\":\"Unlocked\"}},\"featureSettings\":{\"crossSubscriptionRestoreSettings\":{\"state\":\"Enabled\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault\",\"name\":\"new-pstest-vault\",\"type\":\"Microsoft.DataProtection/backupVaults\"}", + "isContentBase64": false + } + }, + "New-AzDataProtectionBackupVault+[NoContext]+CreateExpanded+$DELETE+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault?api-version=2022-12-01+5": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault?api-version=2022-12-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "2016562e-bd4f-4bb1-a1b0-eadf40c07747" ], + "CommandName": [ "Remove-AzDataProtectionBackupVault" ], + "FullCommandName": [ "Remove-AzDataProtectionBackupVault_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/MDE0N2VmNDctNDQ3Ni00NWIyLWI5OWQtZGE2N2M0ZTMxOTY4O2FlYjdlM2IwLWIyODItNGMxZC1iMWQ0LWQxNTM1MDZjNmRlYg==?api-version=2022-12-01" ], + "Retry-After": [ "30" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/MDE0N2VmNDctNDQ3Ni00NWIyLWI5OWQtZGE2N2M0ZTMxOTY4O2FlYjdlM2IwLWIyODItNGMxZC1iMWQ0LWQxNTM1MDZjNmRlYg==?api-version=2022-12-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-resource-requests": [ "99" ], + "x-ms-correlation-request-id": [ "746a1c6f-6aa7-49e6-a9a0-d5d5a88ffd1d" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230130T122155Z:746a1c6f-6aa7-49e6-a9a0-d5d5a88ffd1d" ], + "Date": [ "Mon, 30 Jan 2023 12:21:54 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "New-AzDataProtectionBackupVault+[NoContext]+ImmutabilityCSRSoftDelete+$PUT+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault?api-version=2022-12-01+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault?api-version=2022-12-01", + "Content": "{\r\n \"location\": \"centraluseuap\",\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"properties\": {\r\n \"securitySettings\": {\r\n \"softDeleteSettings\": {\r\n \"state\": \"On\",\r\n \"retentionDurationInDays\": 100\r\n },\r\n \"immutabilitySettings\": {\r\n \"state\": \"Unlocked\"\r\n }\r\n },\r\n \"featureSettings\": {\r\n \"crossSubscriptionRestoreSettings\": {\r\n \"state\": \"Enabled\"\r\n }\r\n },\r\n \"storageSettings\": [\r\n {\r\n \"datastoreType\": \"VaultStore\",\r\n \"type\": \"LocallyRedundant\"\r\n }\r\n ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "567" ] + } + }, "Response": { "StatusCode": 201, "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "10" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault/operationStatus/ZDNkNDBlMGItMGNkZS00ZTRiLWJmZWMtODJjMDFjMWViZjdiO2Q4M2U4NTU2LWViOTktNGNlYS05YWY5LTc3NWIzMDQ2NDU4Mg==?api-version=2022-05-01" ], - "x-ms-arm-resource-system-data": [ "{\"createdBy\":\"t-rishitlnu@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-06-29T14:25:44.3593784Z\",\"lastModifiedBy\":\"t-rishitlnu@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-06-29T14:25:44.3593784Z\"}" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault/operationStatus/MGFiMzZiZTgtNGJjOC00NzUyLWI1NWMtNDdmODkwYjJkZDFjOzEzOGVmYmI0LTViYjYtNGY4OS1hMTI5LTBjM2ZmY2M3ODhkMw==?api-version=2022-12-01" ], + "x-ms-arm-resource-system-data": [ "{\"lastModifiedBy\":\"hiaga@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T12:21:55.7960348Z\"}" ], "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-resource-requests": [ "99" ], - "x-ms-correlation-request-id": [ "8d191def-bd4d-4040-8722-be8cb5ff0253" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142546Z:8d191def-bd4d-4040-8722-be8cb5ff0253" ], - "Date": [ "Wed, 29 Jun 2022 14:25:45 GMT" ] + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "98" ], + "x-ms-correlation-request-id": [ "4f7ebcf9-1d73-420a-990f-ec1e9a27acf4" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230130T122158Z:4f7ebcf9-1d73-420a-990f-ec1e9a27acf4" ], + "Date": [ "Mon, 30 Jan 2023 12:21:58 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "417" ], + "Content-Length": [ "765" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"location\":\"centraluseuap\",\"properties\":{\"provisioningState\":\"Provisioning\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"LocallyRedundant\"}],\"isVaultProtectedByResourceGuard\":false},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault\",\"name\":\"new-pstest-vault\",\"type\":\"Microsoft.DataProtection/backupVaults\"}" + "Content": "{\"location\":\"centraluseuap\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"05c462e8-65b8-44f9-9932-5bd60badaefb\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Provisioning\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"LocallyRedundant\"}],\"isVaultProtectedByResourceGuard\":false,\"securitySettings\":{\"softDeleteSettings\":{\"state\":\"On\",\"retentionDurationInDays\":100.0},\"immutabilitySettings\":{\"state\":\"Unlocked\"}},\"featureSettings\":{\"crossSubscriptionRestoreSettings\":{\"state\":\"Enabled\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault\",\"name\":\"new-pstest-vault\",\"type\":\"Microsoft.DataProtection/backupVaults\"}", + "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-pstest-vault/operationStatus/ZDNkNDBlMGItMGNkZS00ZTRiLWJmZWMtODJjMDFjMWViZjdiO2Q4M2U4NTU2LWViOTktNGNlYS05YWY5LTc3NWIzMDQ2NDU4Mg==?api-version=2022-05-01+2": { + "New-AzDataProtectionBackupVault+[NoContext]+ImmutabilityCSRSoftDelete+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault/operationStatus/MGFiMzZiZTgtNGJjOC00NzUyLWI1NWMtNDdmODkwYjJkZDFjOzEzOGVmYmI0LTViYjYtNGY4OS1hMTI5LTBjM2ZmY2M3ODhkMw==?api-version=2022-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault/operationStatus/ZDNkNDBlMGItMGNkZS00ZTRiLWJmZWMtODJjMDFjMWViZjdiO2Q4M2U4NTU2LWViOTktNGNlYS05YWY5LTc3NWIzMDQ2NDU4Mg==?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault/operationStatus/MGFiMzZiZTgtNGJjOC00NzUyLWI1NWMtNDdmODkwYjJkZDFjOzEzOGVmYmI0LTViYjYtNGY4OS1hMTI5LTBjM2ZmY2M3ODhkMw==?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "188" ], - "x-ms-client-request-id": [ "a420993a-3f48-4022-bce0-1f3dbae6d287" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "68ba5fc2-a282-4109-89df-5b7996d088f2" ], "CommandName": [ "Az.DataProtection.Internal\\New-AzDataProtectionBackupVault" ], "FullCommandName": [ "New-AzDataProtectionBackupVault_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -65,31 +275,33 @@ "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "999" ], - "x-ms-correlation-request-id": [ "b5287e6a-1bf3-4847-9a74-60267a56f6a6" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142556Z:b5287e6a-1bf3-4847-9a74-60267a56f6a6" ], - "Date": [ "Wed, 29 Jun 2022 14:25:55 GMT" ] + "x-ms-correlation-request-id": [ "96440594-7b6b-4a62-82db-5020a99fd42c" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230130T122209Z:96440594-7b6b-4a62-82db-5020a99fd42c" ], + "Date": [ "Mon, 30 Jan 2023 12:22:08 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "472" ], + "Content-Length": [ "474" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault/operationStatus/ZDNkNDBlMGItMGNkZS00ZTRiLWJmZWMtODJjMDFjMWViZjdiO2Q4M2U4NTU2LWViOTktNGNlYS05YWY5LTc3NWIzMDQ2NDU4Mg==\",\"name\":\"ZDNkNDBlMGItMGNkZS00ZTRiLWJmZWMtODJjMDFjMWViZjdiO2Q4M2U4NTU2LWViOTktNGNlYS05YWY5LTc3NWIzMDQ2NDU4Mg==\",\"status\":\"Succeeded\",\"startTime\":\"2022-06-29T14:25:45.89101Z\",\"endTime\":\"2022-06-29T14:25:47Z\"}" + "Content": "{\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault/operationStatus/MGFiMzZiZTgtNGJjOC00NzUyLWI1NWMtNDdmODkwYjJkZDFjOzEzOGVmYmI0LTViYjYtNGY4OS1hMTI5LTBjM2ZmY2M3ODhkMw==\",\"name\":\"MGFiMzZiZTgtNGJjOC00NzUyLWI1NWMtNDdmODkwYjJkZDFjOzEzOGVmYmI0LTViYjYtNGY4OS1hMTI5LTBjM2ZmY2M3ODhkMw==\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-30T12:21:56.7352167Z\",\"endTime\":\"2023-01-30T12:21:57Z\"}", + "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-pstest-vault?api-version=2022-05-01+3": { + "New-AzDataProtectionBackupVault+[NoContext]+ImmutabilityCSRSoftDelete+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault?api-version=2022-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "189" ], - "x-ms-client-request-id": [ "a420993a-3f48-4022-bce0-1f3dbae6d287" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "68ba5fc2-a282-4109-89df-5b7996d088f2" ], "CommandName": [ "Az.DataProtection.Internal\\New-AzDataProtectionBackupVault" ], "FullCommandName": [ "New-AzDataProtectionBackupVault_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -104,31 +316,33 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], - "x-ms-correlation-request-id": [ "b8a8c1b9-ee1b-4ef4-a0ed-96eb2ebcceb5" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142557Z:b8a8c1b9-ee1b-4ef4-a0ed-96eb2ebcceb5" ], - "Date": [ "Wed, 29 Jun 2022 14:25:56 GMT" ] + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "496" ], + "x-ms-correlation-request-id": [ "a69b4b75-3151-4a29-8b01-3e997e8247f1" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230130T122209Z:a69b4b75-3151-4a29-8b01-3e997e8247f1" ], + "Date": [ "Mon, 30 Jan 2023 12:22:08 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "554" ], + "Content-Length": [ "762" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"location\":\"centraluseuap\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"de76b0bb-fdc0-4941-aa34-57eb866a2b86\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"LocallyRedundant\"}],\"isVaultProtectedByResourceGuard\":false},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault\",\"name\":\"new-pstest-vault\",\"type\":\"Microsoft.DataProtection/backupVaults\"}" + "Content": "{\"location\":\"centraluseuap\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"05c462e8-65b8-44f9-9932-5bd60badaefb\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"LocallyRedundant\"}],\"isVaultProtectedByResourceGuard\":false,\"securitySettings\":{\"softDeleteSettings\":{\"state\":\"On\",\"retentionDurationInDays\":100.0},\"immutabilitySettings\":{\"state\":\"Unlocked\"}},\"featureSettings\":{\"crossSubscriptionRestoreSettings\":{\"state\":\"Enabled\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault\",\"name\":\"new-pstest-vault\",\"type\":\"Microsoft.DataProtection/backupVaults\"}", + "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-pstest-vault?api-version=2022-05-01+4": { + "New-AzDataProtectionBackupVault+[NoContext]+ImmutabilityCSRSoftDelete+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault?api-version=2022-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "190" ], - "x-ms-client-request-id": [ "7c215dd2-e9ef-46eb-9e75-358d638fef16" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "63160dc8-a850-429f-b7c2-027c258b7856" ], "CommandName": [ "Get-AzDataProtectionBackupVault" ], "FullCommandName": [ "Get-AzDataProtectionBackupVault_Get2" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -144,31 +358,71 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "498" ], - "x-ms-correlation-request-id": [ "fa2a9087-dff5-46ee-a11b-e3884f13ac6a" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142557Z:fa2a9087-dff5-46ee-a11b-e3884f13ac6a" ], - "Date": [ "Wed, 29 Jun 2022 14:25:56 GMT" ] + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "495" ], + "x-ms-correlation-request-id": [ "1b6184ce-5bfa-40fe-b882-8b865b60a729" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230130T122210Z:1b6184ce-5bfa-40fe-b882-8b865b60a729" ], + "Date": [ "Mon, 30 Jan 2023 12:22:09 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "554" ], + "Content-Length": [ "762" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"location\":\"centraluseuap\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"de76b0bb-fdc0-4941-aa34-57eb866a2b86\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"LocallyRedundant\"}],\"isVaultProtectedByResourceGuard\":false},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault\",\"name\":\"new-pstest-vault\",\"type\":\"Microsoft.DataProtection/backupVaults\"}" + "Content": "{\"location\":\"centraluseuap\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"05c462e8-65b8-44f9-9932-5bd60badaefb\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"LocallyRedundant\"}],\"isVaultProtectedByResourceGuard\":false,\"securitySettings\":{\"softDeleteSettings\":{\"state\":\"On\",\"retentionDurationInDays\":100.0},\"immutabilitySettings\":{\"state\":\"Unlocked\"}},\"featureSettings\":{\"crossSubscriptionRestoreSettings\":{\"state\":\"Enabled\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault\",\"name\":\"new-pstest-vault\",\"type\":\"Microsoft.DataProtection/backupVaults\"}", + "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-pstest-vault?api-version=2022-05-01+5": { + "New-AzDataProtectionBackupVault+[NoContext]+ImmutabilityCSRSoftDelete+$PATCH+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault?api-version=2022-12-01+5": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault?api-version=2022-12-01", + "Content": "{\r\n \"properties\": {\r\n \"securitySettings\": {\r\n \"softDeleteSettings\": {\r\n \"state\": \"Off\",\r\n \"retentionDurationInDays\": 99\r\n },\r\n \"immutabilitySettings\": {\r\n \"state\": \"Disabled\"\r\n }\r\n },\r\n \"featureSettings\": {\r\n \"crossSubscriptionRestoreSettings\": {\r\n \"state\": \"Disabled\"\r\n }\r\n }\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "355" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-arm-resource-system-data": [ "{\"lastModifiedBy\":\"hiaga@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-30T12:22:10.9208784Z\"}" ], + "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-resource-requests": [ "97" ], + "x-ms-correlation-request-id": [ "60002d09-5f65-438c-9ef8-525523cd9663" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230130T122211Z:60002d09-5f65-438c-9ef8-525523cd9663" ], + "Date": [ "Mon, 30 Jan 2023 12:22:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "763" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"location\":\"centraluseuap\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"05c462e8-65b8-44f9-9932-5bd60badaefb\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"LocallyRedundant\"}],\"isVaultProtectedByResourceGuard\":false,\"securitySettings\":{\"softDeleteSettings\":{\"state\":\"Off\",\"retentionDurationInDays\":99.0},\"immutabilitySettings\":{\"state\":\"Disabled\"}},\"featureSettings\":{\"crossSubscriptionRestoreSettings\":{\"state\":\"Disabled\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault\",\"name\":\"new-pstest-vault\",\"type\":\"Microsoft.DataProtection/backupVaults\"}", + "isContentBase64": false + } + }, + "New-AzDataProtectionBackupVault+[NoContext]+ImmutabilityCSRSoftDelete+$DELETE+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault?api-version=2022-12-01+6": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/backupVaults/new-pstest-vault?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "191" ], - "x-ms-client-request-id": [ "7aa019c4-5dea-4c0c-b113-277077ad622f" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "5a51c1ed-e8f8-42f0-b40e-5815bf772356" ], "CommandName": [ "Remove-AzDataProtectionBackupVault" ], "FullCommandName": [ "Remove-AzDataProtectionBackupVault_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -179,23 +433,24 @@ "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/ZDNkNDBlMGItMGNkZS00ZTRiLWJmZWMtODJjMDFjMWViZjdiOzFlZDMwNDIyLTMzZDUtNGU0MC1iY2RiLWM3YjliY2RiYjM0OQ==?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/MGFiMzZiZTgtNGJjOC00NzUyLWI1NWMtNDdmODkwYjJkZDFjOzU2NTQ0ZmNjLWJhM2YtNDg3Yy04ZDdkLTZmYTliZmI2NDBiZA==?api-version=2022-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZDNkNDBlMGItMGNkZS00ZTRiLWJmZWMtODJjMDFjMWViZjdiOzFlZDMwNDIyLTMzZDUtNGU0MC1iY2RiLWM3YjliY2RiYjM0OQ==?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/sarath-rg/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/MGFiMzZiZTgtNGJjOC00NzUyLWI1NWMtNDdmODkwYjJkZDFjOzU2NTQ0ZmNjLWJhM2YtNDg3Yy04ZDdkLTZmYTliZmI2NDBiZA==?api-version=2022-12-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-resource-requests": [ "99" ], - "x-ms-correlation-request-id": [ "b3114078-14ef-45ba-962f-a687b7ba5702" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142557Z:b3114078-14ef-45ba-962f-a687b7ba5702" ], - "Date": [ "Wed, 29 Jun 2022 14:25:56 GMT" ] + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "98" ], + "x-ms-correlation-request-id": [ "16bc3b46-0df8-4b07-a9fb-b75f4bc9f1a4" ], + "x-ms-routing-request-id": [ "WESTINDIA:20230130T122212Z:16bc3b46-0df8-4b07-a9fb-b75f4bc9f1a4" ], + "Date": [ "Mon, 30 Jan 2023 12:22:12 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/DataProtection/test/New-AzDataProtectionBackupVault.Tests.ps1 b/src/DataProtection/test/New-AzDataProtectionBackupVault.Tests.ps1 index 7311b98a202d..1f8f1132800e 100644 --- a/src/DataProtection/test/New-AzDataProtectionBackupVault.Tests.ps1 +++ b/src/DataProtection/test/New-AzDataProtectionBackupVault.Tests.ps1 @@ -21,6 +21,32 @@ Describe 'New-AzDataProtectionBackupVault' { Remove-AzDataProtectionBackupVault -SubscriptionId $env.SubscriptionId -ResourceGroupName $env.TestBackupVault.ResourceGroupName -VaultName $env.TestBackupVault.NewVaultName } + It 'ImmutabilityCSRSoftDelete' { + $storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -Type LocallyRedundant -DataStoreType VaultStore + + $vault = New-AzDataProtectionBackupVault -SubscriptionId $env.SubscriptionId -ResourceGroupName $env.TestBackupVault.ResourceGroupName -VaultName $env.TestBackupVault.NewVaultName -Location centraluseuap -StorageSetting $storagesetting -CrossSubscriptionRestoreState Enabled -ImmutabilityState Unlocked -SoftDeleteRetentionDurationInDay 100 -SoftDeleteState On + + $vault = Get-AzDataProtectionBackupVault -SubscriptionId $env.SubscriptionId -ResourceGroupName $env.TestBackupVault.ResourceGroupName -VaultName $env.TestBackupVault.NewVaultName + + $vault.Location | Should be "centraluseuap" + $vault.Name | Should be $env.TestBackupVault.NewVaultName + + $vault.CrossSubscriptionRestoreState | Should be "Enabled" + $vault.SoftDeleteRetentionDurationInDay | Should be 100 + $vault.SoftDeleteState | Should be "On" + $vault.ImmutabilityState | Should be "Unlocked" + + # update immutability, soft delete, CSR flag + $vault = Update-AzDataProtectionBackupVault -SubscriptionId $env.SubscriptionId -ResourceGroupName $env.TestBackupVault.ResourceGroupName -VaultName $env.TestBackupVault.NewVaultName -CrossSubscriptionRestoreState Disabled -ImmutabilityState Disabled -SoftDeleteRetentionDurationInDay 99 -SoftDeleteState Off + + $vault.CrossSubscriptionRestoreState | Should be "Disabled" + $vault.SoftDeleteRetentionDurationInDay | Should be 99 + $vault.SoftDeleteState | Should be "Off" + $vault.ImmutabilityState | Should be "Disabled" + + Remove-AzDataProtectionBackupVault -SubscriptionId $env.SubscriptionId -ResourceGroupName $env.TestBackupVault.ResourceGroupName -VaultName $env.TestBackupVault.NewVaultName + } + It 'Create' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } diff --git a/src/DataProtection/test/New-AzDataProtectionResourceGuard.Recording.json b/src/DataProtection/test/New-AzDataProtectionResourceGuard.Recording.json index b817608288a5..934f209dffc6 100644 --- a/src/DataProtection/test/New-AzDataProtectionResourceGuard.Recording.json +++ b/src/DataProtection/test/New-AzDataProtectionResourceGuard.Recording.json @@ -1,9 +1,10 @@ { - "New-AzDataProtectionResourceGuard+[NoContext]+PutExpanded+$PUT+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DataProtection/resourceGuards/pstest-resourceguard?api-version=2022-05-01+1": { + "New-AzDataProtectionResourceGuard+[NoContext]+PutExpanded+$PUT+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DataProtection/resourceGuards/pstest-resourceguard?api-version=2022-12-01+1": { "Request": { "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DataProtection/resourceGuards/pstest-resourceguard?api-version=2022-05-01", - "Content": "{\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"Owner\": \"hiaga\",\r\n \"Purpose\": \"testing\",\r\n \"DeleteBy\": \"01-2099\",\r\n \"MABUsed\": \"Yes\"\r\n }\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DataProtection/resourceGuards/pstest-resourceguard?api-version=2022-12-01", + "Content": "{\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {\r\n \"MABUsed\": \"Yes\",\r\n \"Purpose\": \"testing\",\r\n \"DeleteBy\": \"01-2099\",\r\n \"Owner\": \"hiaga\"\r\n }\r\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { @@ -22,30 +23,32 @@ "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "99" ], - "x-ms-correlation-request-id": [ "04023fb2-1bc9-47e4-87db-9bd3c4fe63ee" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142601Z:04023fb2-1bc9-47e4-87db-9bd3c4fe63ee" ], - "Date": [ "Wed, 29 Jun 2022 14:26:00 GMT" ] + "x-ms-correlation-request-id": [ "3a591d37-29cc-4088-8677-56edd3c2cd3a" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T131358Z:3a591d37-29cc-4088-8677-56edd3c2cd3a" ], + "Date": [ "Sun, 22 Jan 2023 13:13:58 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2005" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"location\":\"centraluseuap\",\"tags\":{\"Owner\":\"hiaga\",\"Purpose\":\"testing\",\"DeleteBy\":\"01-2099\",\"MABUsed\":\"Yes\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuardOperations\":[{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/delete\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/deleteProtectedItemRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/write\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/updateProtectedItemRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupPolicies/write\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/updateProtectionPolicyRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupResourceGuardProxies/delete\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/deleteResourceGuardProxyRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupSecurityPIN/action\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/getBackupSecurityPINRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupconfig/write\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/disableSoftDeleteRequests\"},{\"vaultCriticalOperation\":\"Microsoft.DataProtection/backupVaults/backupInstances/delete\",\"requestResourceType\":\"Microsoft.DataProtection/backupVaults/backupInstances/delete\"},{\"vaultCriticalOperation\":\"Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/delete\",\"requestResourceType\":\"Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/delete\"}],\"vaultCriticalOperationExclusionList\":[],\"allowAutoApprovals\":true},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DataProtection/resourceGuards/pstest-resourceguard\",\"name\":\"pstest-resourceguard\",\"type\":\"Microsoft.DataProtection/resourceGuards\"}" + "Content": "{\"location\":\"centraluseuap\",\"tags\":{\"MABUsed\":\"Yes\",\"Purpose\":\"testing\",\"DeleteBy\":\"01-2099\",\"Owner\":\"hiaga\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuardOperations\":[{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/delete\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/deleteProtectedItemRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/write\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/updateProtectedItemRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupPolicies/write\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/updateProtectionPolicyRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupResourceGuardProxies/delete\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/deleteResourceGuardProxyRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupSecurityPIN/action\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/getBackupSecurityPINRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupconfig/write\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/disableSoftDeleteRequests\"},{\"vaultCriticalOperation\":\"Microsoft.DataProtection/backupVaults/backupInstances/delete\",\"requestResourceType\":\"Microsoft.DataProtection/backupVaults/backupInstances/delete\"},{\"vaultCriticalOperation\":\"Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/delete\",\"requestResourceType\":\"Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/delete\"}],\"vaultCriticalOperationExclusionList\":[],\"allowAutoApprovals\":true},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DataProtection/resourceGuards/pstest-resourceguard\",\"name\":\"pstest-resourceguard\",\"type\":\"Microsoft.DataProtection/resourceGuards\"}", + "isContentBase64": false } }, - "New-AzDataProtectionResourceGuard+[NoContext]+PutExpanded+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DataProtection/resourceGuards/pstest-resourceguard?api-version=2022-05-01+2": { + "New-AzDataProtectionResourceGuard+[NoContext]+PutExpanded+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DataProtection/resourceGuards/pstest-resourceguard?api-version=2022-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DataProtection/resourceGuards/pstest-resourceguard?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DataProtection/resourceGuards/pstest-resourceguard?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "193" ], - "x-ms-client-request-id": [ "28cb9765-703e-459c-9560-5859d6c94cd9" ], + "x-ms-unique-id": [ "256" ], + "x-ms-client-request-id": [ "1d4f3a6d-bc0f-4c37-8e86-351d63469d4c" ], "CommandName": [ "Get-AzDataProtectionResourceGuard" ], "FullCommandName": [ "Get-AzDataProtectionResourceGuard_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -62,30 +65,32 @@ "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "999" ], - "x-ms-correlation-request-id": [ "f2976147-2b64-4a15-9a13-35b3174d61b3" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142602Z:f2976147-2b64-4a15-9a13-35b3174d61b3" ], - "Date": [ "Wed, 29 Jun 2022 14:26:01 GMT" ] + "x-ms-correlation-request-id": [ "c7f9b099-5c63-4532-9c19-969c0458b8e8" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T131359Z:c7f9b099-5c63-4532-9c19-969c0458b8e8" ], + "Date": [ "Sun, 22 Jan 2023 13:13:58 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2005" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"location\":\"centraluseuap\",\"tags\":{\"Owner\":\"hiaga\",\"Purpose\":\"testing\",\"DeleteBy\":\"01-2099\",\"MABUsed\":\"Yes\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuardOperations\":[{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/delete\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/deleteProtectedItemRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/write\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/updateProtectedItemRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupPolicies/write\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/updateProtectionPolicyRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupResourceGuardProxies/delete\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/deleteResourceGuardProxyRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupSecurityPIN/action\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/getBackupSecurityPINRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupconfig/write\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/disableSoftDeleteRequests\"},{\"vaultCriticalOperation\":\"Microsoft.DataProtection/backupVaults/backupInstances/delete\",\"requestResourceType\":\"Microsoft.DataProtection/backupVaults/backupInstances/delete\"},{\"vaultCriticalOperation\":\"Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/delete\",\"requestResourceType\":\"Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/delete\"}],\"vaultCriticalOperationExclusionList\":[],\"allowAutoApprovals\":true},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DataProtection/resourceGuards/pstest-resourceguard\",\"name\":\"pstest-resourceguard\",\"type\":\"Microsoft.DataProtection/resourceGuards\"}" + "Content": "{\"location\":\"centraluseuap\",\"tags\":{\"MABUsed\":\"Yes\",\"Purpose\":\"testing\",\"DeleteBy\":\"01-2099\",\"Owner\":\"hiaga\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuardOperations\":[{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/delete\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/deleteProtectedItemRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/write\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/updateProtectedItemRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupPolicies/write\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/updateProtectionPolicyRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupResourceGuardProxies/delete\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/deleteResourceGuardProxyRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupSecurityPIN/action\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/getBackupSecurityPINRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupconfig/write\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/disableSoftDeleteRequests\"},{\"vaultCriticalOperation\":\"Microsoft.DataProtection/backupVaults/backupInstances/delete\",\"requestResourceType\":\"Microsoft.DataProtection/backupVaults/backupInstances/delete\"},{\"vaultCriticalOperation\":\"Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/delete\",\"requestResourceType\":\"Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/delete\"}],\"vaultCriticalOperationExclusionList\":[],\"allowAutoApprovals\":true},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DataProtection/resourceGuards/pstest-resourceguard\",\"name\":\"pstest-resourceguard\",\"type\":\"Microsoft.DataProtection/resourceGuards\"}", + "isContentBase64": false } }, - "New-AzDataProtectionResourceGuard+[NoContext]+PutExpanded+$DELETE+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DataProtection/resourceGuards/pstest-resourceguard?api-version=2022-05-01+3": { + "New-AzDataProtectionResourceGuard+[NoContext]+PutExpanded+$DELETE+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DataProtection/resourceGuards/pstest-resourceguard?api-version=2022-12-01+3": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DataProtection/resourceGuards/pstest-resourceguard?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DataProtection/resourceGuards/pstest-resourceguard?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "194" ], - "x-ms-client-request-id": [ "5b4f7acc-d458-4d77-8941-801f4e1da403" ], + "x-ms-unique-id": [ "257" ], + "x-ms-client-request-id": [ "548ddfa0-9760-48e7-b9db-d54c465e898f" ], "CommandName": [ "Remove-AzDataProtectionResourceGuard" ], "FullCommandName": [ "Remove-AzDataProtectionResourceGuard_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -101,29 +106,31 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Powered-By": [ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "99" ], - "x-ms-correlation-request-id": [ "c3d1aacb-3124-4a94-b346-2dbe140a9ee3" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142603Z:c3d1aacb-3124-4a94-b346-2dbe140a9ee3" ], - "Date": [ "Wed, 29 Jun 2022 14:26:02 GMT" ] + "x-ms-correlation-request-id": [ "60a52cf6-95b1-488d-802f-911e7bd87c1a" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T131401Z:60a52cf6-95b1-488d-802f-911e7bd87c1a" ], + "Date": [ "Sun, 22 Jan 2023 13:14:01 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } }, - "New-AzDataProtectionResourceGuard+[NoContext]+PutExpanded+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DataProtection/resourceGuards?api-version=2022-05-01+4": { + "New-AzDataProtectionResourceGuard+[NoContext]+PutExpanded+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DataProtection/resourceGuards?api-version=2022-12-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DataProtection/resourceGuards?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DataProtection/resourceGuards?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "195" ], - "x-ms-client-request-id": [ "342ffef8-4a2a-4264-a81c-577b6d18a83b" ], + "x-ms-unique-id": [ "258" ], + "x-ms-client-request-id": [ "29dd3732-1ab8-401d-96fd-539f1121ca62" ], "CommandName": [ "Get-AzDataProtectionResourceGuard" ], "FullCommandName": [ "Get-AzDataProtectionResourceGuard_Get1" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -140,16 +147,17 @@ "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "998" ], - "x-ms-correlation-request-id": [ "17658ef3-f662-4612-92f3-47ca49330014" ], - "x-ms-routing-request-id": [ "WESTUS:20220629T142603Z:17658ef3-f662-4612-92f3-47ca49330014" ], - "Date": [ "Wed, 29 Jun 2022 14:26:02 GMT" ] + "x-ms-correlation-request-id": [ "65636643-c9ab-4509-ade8-77eee0c3de13" ], + "x-ms-routing-request-id": [ "EASTUS2EUAP:20230122T131401Z:65636643-c9ab-4509-ade8-77eee0c3de13" ], + "Date": [ "Sun, 22 Jan 2023 13:14:01 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1799" ], + "Content-Length": [ "1919" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"location\":\"centraluseuap\",\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuardOperations\":[{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/delete\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/deleteProtectedItemRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupPolicies/write\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/updateProtectionPolicyRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupResourceGuardProxies/delete\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/deleteResourceGuardProxyRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupSecurityPIN/action\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/getBackupSecurityPINRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupconfig/write\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/disableSoftDeleteRequests\"},{\"vaultCriticalOperation\":\"Microsoft.DataProtection/backupVaults/backupInstances/delete\",\"requestResourceType\":\"Microsoft.DataProtection/backupVaults/backupInstances/delete\"},{\"vaultCriticalOperation\":\"Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/delete\",\"requestResourceType\":\"Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/delete\"}],\"vaultCriticalOperationExclusionList\":[\"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/write\"],\"allowAutoApprovals\":true},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DataProtection/resourceGuards/test1-rGuard\",\"name\":\"test1-rGuard\",\"type\":\"Microsoft.DataProtection/resourceGuards\"}]}" + "Content": "{\"value\":[{\"location\":\"centraluseuap\",\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuardOperations\":[{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/delete\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/deleteProtectedItemRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/write\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/updateProtectedItemRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupPolicies/write\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/updateProtectionPolicyRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupResourceGuardProxies/delete\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/deleteResourceGuardProxyRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupSecurityPIN/action\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/getBackupSecurityPINRequests\"},{\"vaultCriticalOperation\":\"Microsoft.RecoveryServices/vaults/backupconfig/write\",\"requestResourceType\":\"Microsoft.DataProtection/resourceGuards/disableSoftDeleteRequests\"},{\"vaultCriticalOperation\":\"Microsoft.DataProtection/backupVaults/backupInstances/delete\",\"requestResourceType\":\"Microsoft.DataProtection/backupVaults/backupInstances/delete\"},{\"vaultCriticalOperation\":\"Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/delete\",\"requestResourceType\":\"Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/delete\"}],\"vaultCriticalOperationExclusionList\":[],\"allowAutoApprovals\":true},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DataProtection/resourceGuards/test1-rGuard\",\"name\":\"test1-rGuard\",\"type\":\"Microsoft.DataProtection/resourceGuards\"}]}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/DataProtection/test/New-AzDataProtectionSoftDeleteSettingObject.Tests.ps1 b/src/DataProtection/test/New-AzDataProtectionSoftDeleteSettingObject.Tests.ps1 new file mode 100644 index 000000000000..c452f7de56a2 --- /dev/null +++ b/src/DataProtection/test/New-AzDataProtectionSoftDeleteSettingObject.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzDataProtectionSoftDeleteSettingObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzDataProtectionSoftDeleteSettingObject.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 'New-AzDataProtectionSoftDeleteSettingObject' { + It '__AllParameterSets' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DataProtection/test/Set-AzDataProtectionMSIPermission.Recording.json b/src/DataProtection/test/Set-AzDataProtectionMSIPermission.Recording.json deleted file mode 100644 index 4d1ddd6d3382..000000000000 --- a/src/DataProtection/test/Set-AzDataProtectionMSIPermission.Recording.json +++ /dev/null @@ -1,576 +0,0 @@ -{ - "Set-AzDataProtectionMSIPermission+[NoContext]+DiskGrantPermission+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault?api-version=2022-05-01+1": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault?api-version=2022-05-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "1" ], - "x-ms-client-request-id": [ "82a24578-f354-40bb-9769-115d75b4a875" ], - "CommandName": [ "Get-AzDataProtectionBackupVault" ], - "FullCommandName": [ "Get-AzDataProtectionBackupVault_Get2" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], - "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-resource-requests": [ "497" ], - "x-ms-correlation-request-id": [ "8b0231b9-3d96-4603-bbba-f58e561f0e7a" ], - "x-ms-routing-request-id": [ "WESTINDIA:20220707T073610Z:8b0231b9-3d96-4603-bbba-f58e561f0e7a" ], - "Date": [ "Thu, 07 Jul 2022 07:36:09 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "540" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"location\":\"westus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"1ac60704-da7a-4eef-abec-393551807fe1\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"GeoRedundant\"}],\"isVaultProtectedByResourceGuard\":false},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/testBkpVaultRG/providers/Microsoft.DataProtection/BackupVaults/TestBkpVault\",\"name\":\"TestBkpVault\",\"type\":\"Microsoft.DataProtection/backupVaults\"}", - "isContentBase64": false - } - }, - "Set-AzDataProtectionMSIPermission+[NoContext]+DiskGrantPermission+$PUT+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/backupPolicies/diskBkpPolicy?api-version=2022-05-01+2": { - "Request": { - "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/backupPolicies/diskBkpPolicy?api-version=2022-05-01", - "Content": "{\r\n \"properties\": {\r\n \"datasourceTypes\": [ \"Microsoft.Compute/disks\" ],\r\n \"objectType\": \"BackupPolicy\",\r\n \"policyRules\": [\r\n {\r\n \"name\": \"BackupHourly\",\r\n \"objectType\": \"AzureBackupRule\",\r\n \"backupParameters\": {\r\n \"objectType\": \"AzureBackupParams\",\r\n \"backupType\": \"Incremental\"\r\n },\r\n \"dataStore\": {\r\n \"dataStoreType\": \"OperationalStore\",\r\n \"objectType\": \"DataStoreInfoBase\"\r\n },\r\n \"trigger\": {\r\n \"objectType\": \"ScheduleBasedTriggerContext\",\r\n \"schedule\": {\r\n \"repeatingTimeIntervals\": [ \"R/2020-04-05T13:00:00+00:00/PT4H\" ]\r\n },\r\n \"taggingCriteria\": [\r\n {\r\n \"tagInfo\": {\r\n \"tagName\": \"Default\"\r\n },\r\n \"isDefault\": true,\r\n \"taggingPriority\": 99\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"Default\",\r\n \"objectType\": \"AzureRetentionRule\",\r\n \"isDefault\": true,\r\n \"lifecycles\": [\r\n {\r\n \"deleteAfter\": {\r\n \"duration\": \"P7D\",\r\n \"objectType\": \"AbsoluteDeleteOption\"\r\n },\r\n \"sourceDataStore\": {\r\n \"dataStoreType\": \"OperationalStore\",\r\n \"objectType\": \"DataStoreInfoBase\"\r\n }\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", - "isContentBase64": false, - "Headers": { - }, - "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "1397" ] - } - }, - "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-resource-requests": [ "198" ], - "x-ms-correlation-request-id": [ "d543ea82-2dbc-47df-ac6d-b52ab6c6e0c7" ], - "x-ms-routing-request-id": [ "WESTINDIA:20220707T073610Z:d543ea82-2dbc-47df-ac6d-b52ab6c6e0c7" ], - "Date": [ "Thu, 07 Jul 2022 07:36:10 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "1070" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2020-04-05T13:00:00+00:00/PT4H\"]},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupHourly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/backupPolicies/diskBkpPolicy\",\"name\":\"diskBkpPolicy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"}", - "isContentBase64": false - } - }, - "Set-AzDataProtectionMSIPermission+[NoContext]+DiskGrantPermission+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/backupPolicies/diskBkpPolicy?api-version=2022-05-01+3": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/backupPolicies/diskBkpPolicy?api-version=2022-05-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "3" ], - "x-ms-client-request-id": [ "4163d006-4d65-41a8-addf-bc9a710bc4f5" ], - "CommandName": [ "Get-AzDataProtectionBackupPolicy" ], - "FullCommandName": [ "Get-AzDataProtectionBackupPolicy_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], - "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-resource-requests": [ "199" ], - "x-ms-correlation-request-id": [ "bf9f48af-7c2e-44f5-9572-0c042c4c8f40" ], - "x-ms-routing-request-id": [ "WESTINDIA:20220707T073611Z:bf9f48af-7c2e-44f5-9572-0c042c4c8f40" ], - "Date": [ "Thu, 07 Jul 2022 07:36:10 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "1070" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Incremental\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2020-04-05T13:00:00+00:00/PT4H\"]},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupHourly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P7D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Compute/disks\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/backupPolicies/diskBkpPolicy\",\"name\":\"diskBkpPolicy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"}", - "isContentBase64": false - } - }, - "Set-AzDataProtectionMSIPermission+[NoContext]+DiskGrantPermission+$POST+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/validateForBackup?api-version=2022-05-01+4": { - "Request": { - "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/validateForBackup?api-version=2022-05-01", - "Content": "{\r\n \"backupInstance\": {\r\n \"friendlyName\": \"Mydisk2\",\r\n \"dataSourceInfo\": {\r\n \"datasourceType\": \"Microsoft.Compute/disks\",\r\n \"objectType\": \"Datasource\",\r\n \"resourceID\": \"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Diskrg/providers/Microsoft.Compute/disks/Mydisk2\",\r\n \"resourceLocation\": \"westus\",\r\n \"resourceName\": \"Mydisk2\",\r\n \"resourceType\": \"Microsoft.Compute/disks\",\r\n \"resourceUri\": \"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Diskrg/providers/Microsoft.Compute/disks/Mydisk2\"\r\n },\r\n \"policyInfo\": {\r\n \"policyId\": \"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/backupPolicies/diskBkpPolicy\",\r\n \"policyParameters\": {\r\n \"dataStoreParametersList\": [\r\n {\r\n \"objectType\": \"AzureOperationalStoreParameters\",\r\n \"dataStoreType\": \"OperationalStore\",\r\n \"resourceGroupId\": \"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG\"\r\n }\r\n ]\r\n }\r\n },\r\n \"objectType\": \"BackupInstance\"\r\n }\r\n}", - "isContentBase64": false, - "Headers": { - }, - "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "1185" ] - } - }, - "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/westus/operationResults/MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzMxYTc1MTNhLTdmNmEtNDgxNi05ZjYwLWFmNzMyNGM3OGJlOQ==?api-version=2022-05-01" ], - "Retry-After": [ "10" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/operationStatus/MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzMxYTc1MTNhLTdmNmEtNDgxNi05ZjYwLWFmNzMyNGM3OGJlOQ==?api-version=2022-05-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": [ "1199" ], - "x-ms-correlation-request-id": [ "a2e56fa5-6546-4b55-bdd4-2c02b87615b3" ], - "x-ms-routing-request-id": [ "WESTINDIA:20220707T073612Z:a2e56fa5-6546-4b55-bdd4-2c02b87615b3" ], - "Date": [ "Thu, 07 Jul 2022 07:36:11 GMT" ] - }, - "ContentHeaders": { - "Expires": [ "-1" ], - "Content-Length": [ "0" ] - }, - "Content": null, - "isContentBase64": false - } - }, - "Set-AzDataProtectionMSIPermission+[NoContext]+DiskGrantPermission+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/operationStatus/MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzMxYTc1MTNhLTdmNmEtNDgxNi05ZjYwLWFmNzMyNGM3OGJlOQ==?api-version=2022-05-01+5": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/operationStatus/MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzMxYTc1MTNhLTdmNmEtNDgxNi05ZjYwLWFmNzMyNGM3OGJlOQ==?api-version=2022-05-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "5" ], - "x-ms-client-request-id": [ "ace6baef-089c-46e7-a0a2-300a305710cb" ], - "CommandName": [ "Test-AzDataProtectionBackupInstanceReadiness" ], - "FullCommandName": [ "Test-AzDataProtectionBackupInstanceReadiness_ValidateExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ] - }, - "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-resource-requests": [ "999" ], - "x-ms-correlation-request-id": [ "460afb6b-25c9-4af9-a337-6861b3992bf4" ], - "x-ms-routing-request-id": [ "WESTINDIA:20220707T073624Z:460afb6b-25c9-4af9-a337-6861b3992bf4" ], - "Date": [ "Thu, 07 Jul 2022 07:36:23 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "476" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/operationStatus/MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzMxYTc1MTNhLTdmNmEtNDgxNi05ZjYwLWFmNzMyNGM3OGJlOQ==\",\"name\":\"MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzMxYTc1MTNhLTdmNmEtNDgxNi05ZjYwLWFmNzMyNGM3OGJlOQ==\",\"status\":\"Inprogress\",\"startTime\":\"2022-07-07T07:36:12.3505254Z\",\"endTime\":\"0001-01-01T00:00:00Z\"}", - "isContentBase64": false - } - }, - "Set-AzDataProtectionMSIPermission+[NoContext]+DiskGrantPermission+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/operationStatus/MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzMxYTc1MTNhLTdmNmEtNDgxNi05ZjYwLWFmNzMyNGM3OGJlOQ==?api-version=2022-05-01+6": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/operationStatus/MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzMxYTc1MTNhLTdmNmEtNDgxNi05ZjYwLWFmNzMyNGM3OGJlOQ==?api-version=2022-05-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "6" ], - "x-ms-client-request-id": [ "ace6baef-089c-46e7-a0a2-300a305710cb" ], - "CommandName": [ "Test-AzDataProtectionBackupInstanceReadiness" ], - "FullCommandName": [ "Test-AzDataProtectionBackupInstanceReadiness_ValidateExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ] - }, - "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-resource-requests": [ "998" ], - "x-ms-correlation-request-id": [ "5dcef4d8-816a-4afe-9b56-8ac0024c2ee9" ], - "x-ms-routing-request-id": [ "WESTINDIA:20220707T073655Z:5dcef4d8-816a-4afe-9b56-8ac0024c2ee9" ], - "Date": [ "Thu, 07 Jul 2022 07:36:54 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "475" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/operationStatus/MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzMxYTc1MTNhLTdmNmEtNDgxNi05ZjYwLWFmNzMyNGM3OGJlOQ==\",\"name\":\"MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzMxYTc1MTNhLTdmNmEtNDgxNi05ZjYwLWFmNzMyNGM3OGJlOQ==\",\"status\":\"Succeeded\",\"startTime\":\"2022-07-07T07:36:12.3505254Z\",\"endTime\":\"2022-07-07T07:36:43Z\"}", - "isContentBase64": false - } - }, - "Set-AzDataProtectionMSIPermission+[NoContext]+DiskGrantPermission+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/westus/operationResults/MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzMxYTc1MTNhLTdmNmEtNDgxNi05ZjYwLWFmNzMyNGM3OGJlOQ==?api-version=2022-05-01+7": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/westus/operationResults/MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzMxYTc1MTNhLTdmNmEtNDgxNi05ZjYwLWFmNzMyNGM3OGJlOQ==?api-version=2022-05-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "7" ], - "x-ms-client-request-id": [ "ace6baef-089c-46e7-a0a2-300a305710cb" ], - "CommandName": [ "Test-AzDataProtectionBackupInstanceReadiness" ], - "FullCommandName": [ "Test-AzDataProtectionBackupInstanceReadiness_ValidateExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ] - }, - "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/westus/operationStatus/MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzMxYTc1MTNhLTdmNmEtNDgxNi05ZjYwLWFmNzMyNGM3OGJlOQ==?api-version=2022-05-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-resource-requests": [ "199" ], - "x-ms-correlation-request-id": [ "b4bf0238-4f62-407f-9c5e-38f584bc9755" ], - "x-ms-routing-request-id": [ "WESTINDIA:20220707T073655Z:b4bf0238-4f62-407f-9c5e-38f584bc9755" ], - "Date": [ "Thu, 07 Jul 2022 07:36:55 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "41" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"objectType\":\"OperationJobExtendedInfo\"}", - "isContentBase64": false - } - }, - "Set-AzDataProtectionMSIPermission+[NoContext]+BlobGrantPermission+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault?api-version=2022-05-01+1": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault?api-version=2022-05-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "8" ], - "x-ms-client-request-id": [ "4c17a2cb-bfcc-4580-9fe8-096a954149a9" ], - "CommandName": [ "Get-AzDataProtectionBackupVault" ], - "FullCommandName": [ "Get-AzDataProtectionBackupVault_Get2" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], - "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-resource-requests": [ "496" ], - "x-ms-correlation-request-id": [ "78bcf008-4554-41cb-9c0e-605b6adf75d9" ], - "x-ms-routing-request-id": [ "WESTINDIA:20220707T073659Z:78bcf008-4554-41cb-9c0e-605b6adf75d9" ], - "Date": [ "Thu, 07 Jul 2022 07:36:58 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "540" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"location\":\"westus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"1ac60704-da7a-4eef-abec-393551807fe1\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"GeoRedundant\"}],\"isVaultProtectedByResourceGuard\":false},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/testBkpVaultRG/providers/Microsoft.DataProtection/BackupVaults/TestBkpVault\",\"name\":\"TestBkpVault\",\"type\":\"Microsoft.DataProtection/backupVaults\"}", - "isContentBase64": false - } - }, - "Set-AzDataProtectionMSIPermission+[NoContext]+BlobGrantPermission+$PUT+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/backupPolicies/blobBkpPolicy?api-version=2022-05-01+2": { - "Request": { - "Method": "PUT", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/backupPolicies/blobBkpPolicy?api-version=2022-05-01", - "Content": "{\r\n \"properties\": {\r\n \"datasourceTypes\": [ \"Microsoft.Storage/storageAccounts/blobServices\" ],\r\n \"objectType\": \"BackupPolicy\",\r\n \"policyRules\": [\r\n {\r\n \"name\": \"Default\",\r\n \"objectType\": \"AzureRetentionRule\",\r\n \"isDefault\": true,\r\n \"lifecycles\": [\r\n {\r\n \"deleteAfter\": {\r\n \"duration\": \"P30D\",\r\n \"objectType\": \"AbsoluteDeleteOption\"\r\n },\r\n \"sourceDataStore\": {\r\n \"dataStoreType\": \"OperationalStore\",\r\n \"objectType\": \"DataStoreInfoBase\"\r\n }\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", - "isContentBase64": false, - "Headers": { - }, - "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "634" ] - } - }, - "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-resource-requests": [ "197" ], - "x-ms-correlation-request-id": [ "d2cdac43-fa9c-4bd7-aa73-41d769e4088f" ], - "x-ms-routing-request-id": [ "WESTINDIA:20220707T073659Z:d2cdac43-fa9c-4bd7-aa73-41d769e4088f" ], - "Date": [ "Thu, 07 Jul 2022 07:36:59 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "638" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"policyRules\":[{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P30D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Storage/storageAccounts/blobServices\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/backupPolicies/blobBkpPolicy\",\"name\":\"blobBkpPolicy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"}", - "isContentBase64": false - } - }, - "Set-AzDataProtectionMSIPermission+[NoContext]+BlobGrantPermission+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/backupPolicies/blobBkpPolicy?api-version=2022-05-01+3": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/backupPolicies/blobBkpPolicy?api-version=2022-05-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "x-ms-unique-id": [ "10" ], - "x-ms-client-request-id": [ "9965e26a-ea26-4913-bdd9-09c556fa7a63" ], - "CommandName": [ "Get-AzDataProtectionBackupPolicy" ], - "FullCommandName": [ "Get-AzDataProtectionBackupPolicy_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], - "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-resource-requests": [ "198" ], - "x-ms-correlation-request-id": [ "28d4a3fe-cc68-4530-8c69-132f834f1cf9" ], - "x-ms-routing-request-id": [ "WESTINDIA:20220707T073700Z:28d4a3fe-cc68-4530-8c69-132f834f1cf9" ], - "Date": [ "Thu, 07 Jul 2022 07:37:00 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "638" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"policyRules\":[{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P30D\"},\"sourceDataStore\":{\"dataStoreType\":\"OperationalStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.Storage/storageAccounts/blobServices\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/backupPolicies/blobBkpPolicy\",\"name\":\"blobBkpPolicy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"}", - "isContentBase64": false - } - }, - "Set-AzDataProtectionMSIPermission+[NoContext]+BlobGrantPermission+$POST+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/validateForBackup?api-version=2022-05-01+4": { - "Request": { - "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/validateForBackup?api-version=2022-05-01", - "Content": "{\r\n \"backupInstance\": {\r\n \"friendlyName\": \"testblobacc4\",\r\n \"dataSourceInfo\": {\r\n \"datasourceType\": \"Microsoft.Storage/storageAccounts/blobServices\",\r\n \"objectType\": \"Datasource\",\r\n \"resourceID\": \"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blobrg/providers/Microsoft.Storage/storageAccounts/testblobacc4\",\r\n \"resourceLocation\": \"westus\",\r\n \"resourceName\": \"testblobacc4\",\r\n \"resourceType\": \"Microsoft.Storage/storageAccounts\",\r\n \"resourceUri\": \"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blobrg/providers/Microsoft.Storage/storageAccounts/testblobacc4\"\r\n },\r\n \"policyInfo\": {\r\n \"policyId\": \"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/backupPolicies/blobBkpPolicy\"\r\n },\r\n \"objectType\": \"BackupInstance\"\r\n }\r\n}", - "isContentBase64": false, - "Headers": { - }, - "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "916" ] - } - }, - "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/westus/operationResults/MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzM5OTc0ODI2LTYxMWYtNDRhNi1iMGYxLTkwNjM0ZDFlMDE3ZA==?api-version=2022-05-01" ], - "Retry-After": [ "10" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/operationStatus/MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzM5OTc0ODI2LTYxMWYtNDRhNi1iMGYxLTkwNjM0ZDFlMDE3ZA==?api-version=2022-05-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": [ "1198" ], - "x-ms-correlation-request-id": [ "4519f149-b56b-462f-8713-08d684835fa1" ], - "x-ms-routing-request-id": [ "WESTINDIA:20220707T073701Z:4519f149-b56b-462f-8713-08d684835fa1" ], - "Date": [ "Thu, 07 Jul 2022 07:37:00 GMT" ] - }, - "ContentHeaders": { - "Expires": [ "-1" ], - "Content-Length": [ "0" ] - }, - "Content": null, - "isContentBase64": false - } - }, - "Set-AzDataProtectionMSIPermission+[NoContext]+BlobGrantPermission+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/operationStatus/MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzM5OTc0ODI2LTYxMWYtNDRhNi1iMGYxLTkwNjM0ZDFlMDE3ZA==?api-version=2022-05-01+5": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/operationStatus/MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzM5OTc0ODI2LTYxMWYtNDRhNi1iMGYxLTkwNjM0ZDFlMDE3ZA==?api-version=2022-05-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "12" ], - "x-ms-client-request-id": [ "bee413c1-7150-4905-a868-38bd31f2410f" ], - "CommandName": [ "Test-AzDataProtectionBackupInstanceReadiness" ], - "FullCommandName": [ "Test-AzDataProtectionBackupInstanceReadiness_ValidateExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ] - }, - "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-resource-requests": [ "997" ], - "x-ms-correlation-request-id": [ "3615b531-82af-48d1-8ef8-683d23a13e59" ], - "x-ms-routing-request-id": [ "WESTINDIA:20220707T073711Z:3615b531-82af-48d1-8ef8-683d23a13e59" ], - "Date": [ "Thu, 07 Jul 2022 07:37:11 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "476" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/operationStatus/MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzM5OTc0ODI2LTYxMWYtNDRhNi1iMGYxLTkwNjM0ZDFlMDE3ZA==\",\"name\":\"MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzM5OTc0ODI2LTYxMWYtNDRhNi1iMGYxLTkwNjM0ZDFlMDE3ZA==\",\"status\":\"Inprogress\",\"startTime\":\"2022-07-07T07:37:01.0761403Z\",\"endTime\":\"0001-01-01T00:00:00Z\"}", - "isContentBase64": false - } - }, - "Set-AzDataProtectionMSIPermission+[NoContext]+BlobGrantPermission+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/operationStatus/MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzM5OTc0ODI2LTYxMWYtNDRhNi1iMGYxLTkwNjM0ZDFlMDE3ZA==?api-version=2022-05-01+6": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/operationStatus/MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzM5OTc0ODI2LTYxMWYtNDRhNi1iMGYxLTkwNjM0ZDFlMDE3ZA==?api-version=2022-05-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "13" ], - "x-ms-client-request-id": [ "bee413c1-7150-4905-a868-38bd31f2410f" ], - "CommandName": [ "Test-AzDataProtectionBackupInstanceReadiness" ], - "FullCommandName": [ "Test-AzDataProtectionBackupInstanceReadiness_ValidateExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ] - }, - "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-resource-requests": [ "996" ], - "x-ms-correlation-request-id": [ "5d5f2e7c-dc46-4544-a251-ec604897e70b" ], - "x-ms-routing-request-id": [ "WESTINDIA:20220707T073742Z:5d5f2e7c-dc46-4544-a251-ec604897e70b" ], - "Date": [ "Thu, 07 Jul 2022 07:37:42 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "475" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"id\":\"/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG/providers/Microsoft.DataProtection/backupVaults/TestBkpVault/operationStatus/MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzM5OTc0ODI2LTYxMWYtNDRhNi1iMGYxLTkwNjM0ZDFlMDE3ZA==\",\"name\":\"MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzM5OTc0ODI2LTYxMWYtNDRhNi1iMGYxLTkwNjM0ZDFlMDE3ZA==\",\"status\":\"Succeeded\",\"startTime\":\"2022-07-07T07:37:01.0761403Z\",\"endTime\":\"2022-07-07T07:37:19Z\"}", - "isContentBase64": false - } - }, - "Set-AzDataProtectionMSIPermission+[NoContext]+BlobGrantPermission+$GET+https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/westus/operationResults/MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzM5OTc0ODI2LTYxMWYtNDRhNi1iMGYxLTkwNjM0ZDFlMDE3ZA==?api-version=2022-05-01+7": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/providers/Microsoft.DataProtection/locations/westus/operationResults/MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzM5OTc0ODI2LTYxMWYtNDRhNi1iMGYxLTkwNjM0ZDFlMDE3ZA==?api-version=2022-05-01", - "Content": null, - "isContentBase64": false, - "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "14" ], - "x-ms-client-request-id": [ "bee413c1-7150-4905-a868-38bd31f2410f" ], - "CommandName": [ "Test-AzDataProtectionBackupInstanceReadiness" ], - "FullCommandName": [ "Test-AzDataProtectionBackupInstanceReadiness_ValidateExpanded" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ] - }, - "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/westus/operationStatus/MGZhNjZjMjAtNDAxNS00N2NkLWFjMTktNjZlZGZkZjYyNzRkOzM5OTc0ODI2LTYxMWYtNDRhNi1iMGYxLTkwNjM0ZDFlMDE3ZA==?api-version=2022-05-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-resource-requests": [ "198" ], - "x-ms-correlation-request-id": [ "9146a8af-204f-423f-8126-5b292d80280c" ], - "x-ms-routing-request-id": [ "WESTINDIA:20220707T073742Z:9146a8af-204f-423f-8126-5b292d80280c" ], - "Date": [ "Thu, 07 Jul 2022 07:37:42 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "41" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"objectType\":\"OperationJobExtendedInfo\"}", - "isContentBase64": false - } - } -} \ No newline at end of file diff --git a/src/DataProtection/test/Start-AzDataProtectionBackupInstanceRestore.Recording.json b/src/DataProtection/test/Start-AzDataProtectionBackupInstanceRestore.Recording.json index 7a911d6d88f1..945dac0b4ab6 100644 --- a/src/DataProtection/test/Start-AzDataProtectionBackupInstanceRestore.Recording.json +++ b/src/DataProtection/test/Start-AzDataProtectionBackupInstanceRestore.Recording.json @@ -1,16 +1,17 @@ { - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault?api-version=2022-05-01+1": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault?api-version=2022-12-01+1": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "235" ], - "x-ms-client-request-id": [ "974df16d-c383-477b-94a8-73da1237874c" ], + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "8b459048-b831-40f0-bb3d-d02250c4a37b" ], "CommandName": [ "Get-AzDataProtectionBackupVault" ], "FullCommandName": [ "Get-AzDataProtectionBackupVault_Get2" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -27,30 +28,32 @@ "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], - "x-ms-correlation-request-id": [ "c98770ef-9b99-4b7e-b691-1a1eafc96965" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T143750Z:c98770ef-9b99-4b7e-b691-1a1eafc96965" ], - "Date": [ "Wed, 29 Jun 2022 14:37:50 GMT" ] + "x-ms-correlation-request-id": [ "27887c39-d8f8-4a79-8bda-eddfcc1de892" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093359Z:27887c39-d8f8-4a79-8bda-eddfcc1de892" ], + "Date": [ "Mon, 23 Jan 2023 09:33:58 GMT" ] }, "ContentHeaders": { "Content-Length": [ "691" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"location\":\"centraluseuap\",\"tags\":{\"MABUsed\":\"Yes\",\"Owner\":\"hiaga\",\"Purpose\":\"testing\",\"DeleteBy\":\"01-2099\"},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"74ad0080-cf50-42ae-a83a-7c5f1126cae2\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"GeoRedundant\"},{\"datastoreType\":\"ArchiveStore\",\"type\":\"GeoRedundant\"}],\"isVaultProtectedByResourceGuard\":false},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault\",\"name\":\"oss-pstest-vault\",\"type\":\"Microsoft.DataProtection/backupVaults\"}" + "Content": "{\"location\":\"centraluseuap\",\"tags\":{\"MABUsed\":\"Yes\",\"Owner\":\"hiaga\",\"Purpose\":\"testing\",\"DeleteBy\":\"01-2099\"},\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"74ad0080-cf50-42ae-a83a-7c5f1126cae2\",\"tenantId\":\"72f988bf-86f1-41af-91ab-2d7cd011db47\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"storageSettings\":[{\"datastoreType\":\"VaultStore\",\"type\":\"GeoRedundant\"},{\"datastoreType\":\"ArchiveStore\",\"type\":\"GeoRedundant\"}],\"isVaultProtectedByResourceGuard\":false},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault\",\"name\":\"oss-pstest-vault\",\"type\":\"Microsoft.DataProtection/backupVaults\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances?api-version=2022-05-01+2": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances?api-version=2022-12-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "236" ], - "x-ms-client-request-id": [ "84fc5d49-9f0b-41ba-9c28-d4e5c8471b13" ], + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "411a6665-05be-4a79-914d-08dc109fc967" ], "CommandName": [ "Get-AzDataProtectionBackupInstance" ], "FullCommandName": [ "Get-AzDataProtectionBackupInstance_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -67,30 +70,32 @@ "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "1999" ], - "x-ms-correlation-request-id": [ "c7ee0111-2a80-4ea0-bc24-08dcc8fbcb53" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T143751Z:c7ee0111-2a80-4ea0-bc24-08dcc8fbcb53" ], - "Date": [ "Wed, 29 Jun 2022 14:37:50 GMT" ] + "x-ms-correlation-request-id": [ "56152bc7-6205-4d44-a5c2-1a80ce400a39" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093359Z:56152bc7-6205-4d44-a5c2-1a80ce400a39" ], + "Date": [ "Mon, 23 Jan 2023 09:33:59 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1860" ], + "Content-Length": [ "1942" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"friendlyName\":\"oss-pstest-server\\\\postgres\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"resourceName\":\"postgres\",\"resourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"dataSourceSetInfo\":{\"resourceID\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"resourceName\":\"oss-pstest-server\",\"resourceType\":\"Microsoft.DBforPostgreSQL/servers\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"DatasourceSet\"},\"policyInfo\":{\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\"},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"datasourceAuthCredentials\":{\"objectType\":\"SecretStoreBasedAuthCredentials\",\"secretStoreResource\":{\"uri\":\"https://oss-pstest-keyvault.vault.azure.net/secrets/oss-pstest-secret\",\"secretStoreType\":\"AzureKeyVault\",\"value\":null}},\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"name\":\"oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"}]}" + "Content": "{\"value\":[{\"tags\":{\"Owner\":\"hiaga\",\"MABUsed\":\"Yes\",\"DeleteBy\":\"06-2023\",\"Purpose\":\"Testing\"},\"properties\":{\"friendlyName\":\"oss-pstest-server\\\\postgres\",\"dataSourceInfo\":{\"resourceID\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"resourceName\":\"postgres\",\"resourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"Datasource\"},\"dataSourceSetInfo\":{\"resourceID\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server\",\"resourceUri\":\"\",\"datasourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"resourceName\":\"oss-pstest-server\",\"resourceType\":\"Microsoft.DBforPostgreSQL/servers\",\"resourceLocation\":\"centraluseuap\",\"objectType\":\"DatasourceSet\"},\"policyInfo\":{\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\"},\"protectionStatus\":{\"status\":\"ProtectionConfigured\"},\"currentProtectionState\":\"ProtectionConfigured\",\"provisioningState\":\"Succeeded\",\"datasourceAuthCredentials\":{\"objectType\":\"SecretStoreBasedAuthCredentials\",\"secretStoreResource\":{\"uri\":\"https://oss-pstest-keyvault.vault.azure.net/secrets/oss-pstest-secret\",\"secretStoreType\":\"AzureKeyVault\",\"value\":null}},\"objectType\":\"BackupInstance\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"name\":\"oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances\"}]}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies?api-version=2022-05-01+3": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies?api-version=2022-12-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "237" ], - "x-ms-client-request-id": [ "d99b90ba-7a5d-4842-a717-9d6da51b014e" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "c0bcb750-b125-4c87-a8bf-8bf09db44033" ], "CommandName": [ "Get-AzDataProtectionBackupPolicy" ], "FullCommandName": [ "Get-AzDataProtectionBackupPolicy_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -107,23 +112,25 @@ "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "199" ], - "x-ms-correlation-request-id": [ "72c3cc57-fe6c-45bb-b445-fef6c8eb6edf" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T143751Z:72c3cc57-fe6c-45bb-b445-fef6c8eb6edf" ], - "Date": [ "Wed, 29 Jun 2022 14:37:51 GMT" ] + "x-ms-correlation-request-id": [ "380d4e91-b05e-4355-894e-427eb048a1a7" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093400Z:380d4e91-b05e-4355-894e-427eb048a1a7" ], + "Date": [ "Mon, 23 Jan 2023 09:33:59 GMT" ] }, "ContentHeaders": { "Content-Length": [ "2939" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-08-29T10:00:00+05:30/P1W\",\"R/2021-09-02T10:00:00+05:30/P1W\"],\"timeZone\":\"India Standard Time\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"name\":\"oss-pstest-policy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-09-19T05:30:00+00:00/P1W\"],\"timeZone\":\"UTC\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/newOssPol\",\"name\":\"newOssPol\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"}]}" + "Content": "{\"value\":[{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-08-29T10:00:00+05:30/P1W\",\"R/2021-09-02T10:00:00+05:30/P1W\"],\"timeZone\":\"India Standard Time\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"name\":\"oss-pstest-policy\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"},{\"properties\":{\"policyRules\":[{\"backupParameters\":{\"backupType\":\"Full\",\"objectType\":\"AzureBackupParams\"},\"trigger\":{\"schedule\":{\"repeatingTimeIntervals\":[\"R/2021-09-19T05:30:00+00:00/P1W\"],\"timeZone\":\"UTC\"},\"taggingCriteria\":[{\"tagInfo\":{\"tagName\":\"Default\",\"id\":\"Default_\"},\"taggingPriority\":99,\"isDefault\":true}],\"objectType\":\"ScheduleBasedTriggerContext\"},\"dataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"},\"name\":\"BackupWeekly\",\"objectType\":\"AzureBackupRule\"},{\"lifecycles\":[{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P3M\"},\"targetDataStoreCopySettings\":[{\"dataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"},\"copyAfter\":{\"objectType\":\"CopyOnExpiryOption\"}}],\"sourceDataStore\":{\"dataStoreType\":\"VaultStore\",\"objectType\":\"DataStoreInfoBase\"}},{\"deleteAfter\":{\"objectType\":\"AbsoluteDeleteOption\",\"duration\":\"P6M\"},\"targetDataStoreCopySettings\":[],\"sourceDataStore\":{\"dataStoreType\":\"ArchiveStore\",\"objectType\":\"DataStoreInfoBase\"}}],\"isDefault\":true,\"name\":\"Default\",\"objectType\":\"AzureRetentionRule\"}],\"datasourceTypes\":[\"Microsoft.DBforPostgreSQL/servers/databases\"],\"objectType\":\"BackupPolicy\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/newOssPol\",\"name\":\"newOssPol\",\"type\":\"Microsoft.DataProtection/backupVaults/backupPolicies\"}]}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$POST+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/backup?api-version=2022-05-01+4": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$POST+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/backup?api-version=2022-12-01+4": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/backup?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/backup?api-version=2022-12-01", "Content": "{\r\n \"backupRuleOptions\": {\r\n \"triggerOption\": {\r\n \"retentionTagOverride\": \"Default\"\r\n },\r\n \"ruleName\": \"BackupWeekly\"\r\n }\r\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { @@ -136,38 +143,40 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzBhNTE2Y2ZjLWMzMzEtNDdkZC1hNWNiLTU3ODI0ODM5MGZlNA==?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzg0YmMxNjZkLTcyYTYtNDgzNS1hMzIyLWViMzhlZDZiZDAxOQ==?api-version=2022-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzBhNTE2Y2ZjLWMzMzEtNDdkZC1hNWNiLTU3ODI0ODM5MGZlNA==?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzg0YmMxNjZkLTcyYTYtNDgzNS1hMzIyLWViMzhlZDZiZDAxOQ==?api-version=2022-12-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": [ "1199" ], - "x-ms-correlation-request-id": [ "e2ab6123-8368-4407-9dec-575e9348d033" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T143752Z:e2ab6123-8368-4407-9dec-575e9348d033" ], - "Date": [ "Wed, 29 Jun 2022 14:37:51 GMT" ] + "x-ms-correlation-request-id": [ "70e2e1e0-6f50-422f-a1a6-25767389f148" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093401Z:70e2e1e0-6f50-422f-a1a6-25767389f148" ], + "Date": [ "Mon, 23 Jan 2023 09:34:01 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzBhNTE2Y2ZjLWMzMzEtNDdkZC1hNWNiLTU3ODI0ODM5MGZlNA==?api-version=2022-05-01+5": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzg0YmMxNjZkLTcyYTYtNDgzNS1hMzIyLWViMzhlZDZiZDAxOQ==?api-version=2022-12-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzBhNTE2Y2ZjLWMzMzEtNDdkZC1hNWNiLTU3ODI0ODM5MGZlNA==?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzg0YmMxNjZkLTcyYTYtNDgzNS1hMzIyLWViMzhlZDZiZDAxOQ==?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "239" ], - "x-ms-client-request-id": [ "b973eec2-5138-4c9b-abfa-b3741017b3ed" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "23414d99-ba5b-4a74-9f88-68e32e8be66c" ], "CommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc" ], "FullCommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc_BackupExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -183,31 +192,33 @@ "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "999" ], - "x-ms-correlation-request-id": [ "aedcaef0-4fac-4e1f-84b6-0bf722337c3c" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T143822Z:aedcaef0-4fac-4e1f-84b6-0bf722337c3c" ], - "Date": [ "Wed, 29 Jun 2022 14:38:21 GMT" ] + "x-ms-correlation-request-id": [ "7827aab7-9c54-42b0-9210-b05ce5ec0d61" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093432Z:7827aab7-9c54-42b0-9210-b05ce5ec0d61" ], + "Date": [ "Mon, 23 Jan 2023 09:34:32 GMT" ] }, "ContentHeaders": { "Content-Length": [ "737" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzBhNTE2Y2ZjLWMzMzEtNDdkZC1hNWNiLTU3ODI0ODM5MGZlNA==\",\"name\":\"ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzBhNTE2Y2ZjLWMzMzEtNDdkZC1hNWNiLTU3ODI0ODM5MGZlNA==\",\"status\":\"Succeeded\",\"startTime\":\"2022-06-29T14:37:51.9430336Z\",\"endTime\":\"2022-06-29T14:37:55Z\",\"properties\":{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/1dc3f97c-a7b0-4e77-b6ad-7e40af5be857\",\"objectType\":\"OperationJobExtendedInfo\"}}" + "Content": "{\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzg0YmMxNjZkLTcyYTYtNDgzNS1hMzIyLWViMzhlZDZiZDAxOQ==\",\"name\":\"ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzg0YmMxNjZkLTcyYTYtNDgzNS1hMzIyLWViMzhlZDZiZDAxOQ==\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-23T09:34:01.4837184Z\",\"endTime\":\"2023-01-23T09:34:03Z\",\"properties\":{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/1836d818-4a48-419b-aedd-21f20cbd4f3c\",\"objectType\":\"OperationJobExtendedInfo\"}}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzBhNTE2Y2ZjLWMzMzEtNDdkZC1hNWNiLTU3ODI0ODM5MGZlNA==?api-version=2022-05-01+6": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzg0YmMxNjZkLTcyYTYtNDgzNS1hMzIyLWViMzhlZDZiZDAxOQ==?api-version=2022-12-01+6": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzBhNTE2Y2ZjLWMzMzEtNDdkZC1hNWNiLTU3ODI0ODM5MGZlNA==?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzg0YmMxNjZkLTcyYTYtNDgzNS1hMzIyLWViMzhlZDZiZDAxOQ==?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "240" ], - "x-ms-client-request-id": [ "b973eec2-5138-4c9b-abfa-b3741017b3ed" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "23414d99-ba5b-4a74-9f88-68e32e8be66c" ], "CommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc" ], "FullCommandName": [ "Backup-AzDataProtectionBackupInstanceAdhoc_BackupExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -218,37 +229,39 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzBhNTE2Y2ZjLWMzMzEtNDdkZC1hNWNiLTU3ODI0ODM5MGZlNA==?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzg0YmMxNjZkLTcyYTYtNDgzNS1hMzIyLWViMzhlZDZiZDAxOQ==?api-version=2022-12-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-resource-requests": [ "199" ], - "x-ms-correlation-request-id": [ "1f65fbbe-c92a-4673-bcd9-48a6c4c19ac2" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T143822Z:1f65fbbe-c92a-4673-bcd9-48a6c4c19ac2" ], - "Date": [ "Wed, 29 Jun 2022 14:38:21 GMT" ] + "x-ms-correlation-request-id": [ "3f988342-fe36-45ca-a38e-bbc60382da84" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093432Z:3f988342-fe36-45ca-a38e-bbc60382da84" ], + "Date": [ "Mon, 23 Jan 2023 09:34:32 GMT" ] }, "ContentHeaders": { "Content-Length": [ "245" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/1dc3f97c-a7b0-4e77-b6ad-7e40af5be857\",\"objectType\":\"OperationJobExtendedInfo\"}" + "Content": "{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/1836d818-4a48-419b-aedd-21f20cbd4f3c\",\"objectType\":\"OperationJobExtendedInfo\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1dc3f97c-a7b0-4e77-b6ad-7e40af5be857?api-version=2022-05-01+7": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1836d818-4a48-419b-aedd-21f20cbd4f3c?api-version=2022-12-01+7": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1dc3f97c-a7b0-4e77-b6ad-7e40af5be857?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1836d818-4a48-419b-aedd-21f20cbd4f3c?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "241" ], - "x-ms-client-request-id": [ "8fc5a149-b691-4fd2-b9cc-fc80fb555599" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "9f8e4788-6508-4960-bb2e-908affec1e1b" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -265,30 +278,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "f5069085-e3c1-4a3e-9ad4-a35c00e3667d" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T143832Z:f5069085-e3c1-4a3e-9ad4-a35c00e3667d" ], - "Date": [ "Wed, 29 Jun 2022 14:38:32 GMT" ] + "x-ms-correlation-request-id": [ "9c1ed52d-0177-4675-8b97-f746f04f9692" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093443Z:9c1ed52d-0177-4675-8b97-f746f04f9692" ], + "Date": [ "Mon, 23 Jan 2023 09:34:43 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2171" ], + "Content-Length": [ "2170" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b973eec2-5138-4c9b-abfa-b3741017b3ed\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A37%3A52.8091316Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:37:52.3258365Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1dc3f97c-a7b0-4e77-b6ad-7e40af5be857\",\"name\":\"1dc3f97c-a7b0-4e77-b6ad-7e40af5be857\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"23414d99-ba5b-4a74-9f88-68e32e8be66c\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T09%3A34%3A02.2218792Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T09:34:01.907731Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1836d818-4a48-419b-aedd-21f20cbd4f3c\",\"name\":\"1836d818-4a48-419b-aedd-21f20cbd4f3c\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1dc3f97c-a7b0-4e77-b6ad-7e40af5be857?api-version=2022-05-01+8": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1836d818-4a48-419b-aedd-21f20cbd4f3c?api-version=2022-12-01+8": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1dc3f97c-a7b0-4e77-b6ad-7e40af5be857?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1836d818-4a48-419b-aedd-21f20cbd4f3c?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "242" ], - "x-ms-client-request-id": [ "48952a54-3911-4dde-9178-0d2591614167" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "99b73f82-173b-4cb7-8a4d-7e0d42dbb711" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -305,30 +320,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "be505100-ce06-49b3-92e4-1eff27737220" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T143843Z:be505100-ce06-49b3-92e4-1eff27737220" ], - "Date": [ "Wed, 29 Jun 2022 14:38:42 GMT" ] + "x-ms-correlation-request-id": [ "1f2fdbdd-e50c-422b-ab5c-ffe800acf171" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093454Z:1f2fdbdd-e50c-422b-ab5c-ffe800acf171" ], + "Date": [ "Mon, 23 Jan 2023 09:34:54 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2171" ], + "Content-Length": [ "2170" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b973eec2-5138-4c9b-abfa-b3741017b3ed\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A37%3A52.8091316Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:37:52.3258365Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1dc3f97c-a7b0-4e77-b6ad-7e40af5be857\",\"name\":\"1dc3f97c-a7b0-4e77-b6ad-7e40af5be857\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"23414d99-ba5b-4a74-9f88-68e32e8be66c\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T09%3A34%3A02.2218792Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T09:34:01.907731Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1836d818-4a48-419b-aedd-21f20cbd4f3c\",\"name\":\"1836d818-4a48-419b-aedd-21f20cbd4f3c\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1dc3f97c-a7b0-4e77-b6ad-7e40af5be857?api-version=2022-05-01+9": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1836d818-4a48-419b-aedd-21f20cbd4f3c?api-version=2022-12-01+9": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1dc3f97c-a7b0-4e77-b6ad-7e40af5be857?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1836d818-4a48-419b-aedd-21f20cbd4f3c?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "243" ], - "x-ms-client-request-id": [ "bb98e80b-786d-469f-9ca6-b1d94b73a425" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "d2825094-9780-4aba-9eb1-8d1c87532dbe" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -345,30 +362,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "1eaa5425-8309-4846-b122-67fca2f3c7e2" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T143853Z:1eaa5425-8309-4846-b122-67fca2f3c7e2" ], - "Date": [ "Wed, 29 Jun 2022 14:38:52 GMT" ] + "x-ms-correlation-request-id": [ "0a01877b-aa2b-4392-a491-67509d42f284" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093505Z:0a01877b-aa2b-4392-a491-67509d42f284" ], + "Date": [ "Mon, 23 Jan 2023 09:35:04 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2171" ], + "Content-Length": [ "2170" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b973eec2-5138-4c9b-abfa-b3741017b3ed\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A37%3A52.8091316Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:37:52.3258365Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1dc3f97c-a7b0-4e77-b6ad-7e40af5be857\",\"name\":\"1dc3f97c-a7b0-4e77-b6ad-7e40af5be857\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"23414d99-ba5b-4a74-9f88-68e32e8be66c\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T09%3A34%3A02.2218792Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T09:34:01.907731Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1836d818-4a48-419b-aedd-21f20cbd4f3c\",\"name\":\"1836d818-4a48-419b-aedd-21f20cbd4f3c\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1dc3f97c-a7b0-4e77-b6ad-7e40af5be857?api-version=2022-05-01+10": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1836d818-4a48-419b-aedd-21f20cbd4f3c?api-version=2022-12-01+10": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1dc3f97c-a7b0-4e77-b6ad-7e40af5be857?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1836d818-4a48-419b-aedd-21f20cbd4f3c?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "244" ], - "x-ms-client-request-id": [ "6765fa54-f520-45dc-b628-86b86cd6ac4e" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "fa111a6a-4f2e-4823-8463-bc9db4018c6b" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -385,30 +404,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "b1e94f32-6df9-4fc1-8224-f7bccba45ed3" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T143903Z:b1e94f32-6df9-4fc1-8224-f7bccba45ed3" ], - "Date": [ "Wed, 29 Jun 2022 14:39:03 GMT" ] + "x-ms-correlation-request-id": [ "aa40c45e-0982-4758-959c-531a1eb5281a" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093516Z:aa40c45e-0982-4758-959c-531a1eb5281a" ], + "Date": [ "Mon, 23 Jan 2023 09:35:15 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2171" ], + "Content-Length": [ "2170" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b973eec2-5138-4c9b-abfa-b3741017b3ed\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A37%3A52.8091316Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:37:52.3258365Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1dc3f97c-a7b0-4e77-b6ad-7e40af5be857\",\"name\":\"1dc3f97c-a7b0-4e77-b6ad-7e40af5be857\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"23414d99-ba5b-4a74-9f88-68e32e8be66c\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T09%3A34%3A02.2218792Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T09:34:01.907731Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1836d818-4a48-419b-aedd-21f20cbd4f3c\",\"name\":\"1836d818-4a48-419b-aedd-21f20cbd4f3c\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1dc3f97c-a7b0-4e77-b6ad-7e40af5be857?api-version=2022-05-01+11": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1836d818-4a48-419b-aedd-21f20cbd4f3c?api-version=2022-12-01+11": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1dc3f97c-a7b0-4e77-b6ad-7e40af5be857?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1836d818-4a48-419b-aedd-21f20cbd4f3c?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "245" ], - "x-ms-client-request-id": [ "8d53da85-0ac2-4d2e-9258-4615e996144d" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "77709358-1509-4e34-8b2c-eb7199baee85" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -425,30 +446,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "e2c867b3-363d-4bfe-b05d-32aa895f91d0" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T143913Z:e2c867b3-363d-4bfe-b05d-32aa895f91d0" ], - "Date": [ "Wed, 29 Jun 2022 14:39:13 GMT" ] + "x-ms-correlation-request-id": [ "464f0218-2d8a-4ae9-8756-36ada96c4ace" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093526Z:464f0218-2d8a-4ae9-8756-36ada96c4ace" ], + "Date": [ "Mon, 23 Jan 2023 09:35:26 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2171" ], + "Content-Length": [ "2170" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b973eec2-5138-4c9b-abfa-b3741017b3ed\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A37%3A52.8091316Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:37:52.3258365Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1dc3f97c-a7b0-4e77-b6ad-7e40af5be857\",\"name\":\"1dc3f97c-a7b0-4e77-b6ad-7e40af5be857\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"23414d99-ba5b-4a74-9f88-68e32e8be66c\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T09%3A34%3A02.2218792Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T09:34:01.907731Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1836d818-4a48-419b-aedd-21f20cbd4f3c\",\"name\":\"1836d818-4a48-419b-aedd-21f20cbd4f3c\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1dc3f97c-a7b0-4e77-b6ad-7e40af5be857?api-version=2022-05-01+12": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1836d818-4a48-419b-aedd-21f20cbd4f3c?api-version=2022-12-01+12": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1dc3f97c-a7b0-4e77-b6ad-7e40af5be857?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1836d818-4a48-419b-aedd-21f20cbd4f3c?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "246" ], - "x-ms-client-request-id": [ "e13b3a17-9ae5-4e42-9756-d6d748c16eeb" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "f82e8667-599a-4e94-96af-1bf1e6f0e9fb" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -465,30 +488,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "3532b498-51e3-44c8-a502-bc16d2d3a620" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T143924Z:3532b498-51e3-44c8-a502-bc16d2d3a620" ], - "Date": [ "Wed, 29 Jun 2022 14:39:23 GMT" ] + "x-ms-correlation-request-id": [ "fd61bcc5-949d-44be-88e0-55982c4ec6cc" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093537Z:fd61bcc5-949d-44be-88e0-55982c4ec6cc" ], + "Date": [ "Mon, 23 Jan 2023 09:35:36 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2171" ], + "Content-Length": [ "2170" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b973eec2-5138-4c9b-abfa-b3741017b3ed\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A37%3A52.8091316Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:37:52.3258365Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1dc3f97c-a7b0-4e77-b6ad-7e40af5be857\",\"name\":\"1dc3f97c-a7b0-4e77-b6ad-7e40af5be857\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"23414d99-ba5b-4a74-9f88-68e32e8be66c\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T09%3A34%3A02.2218792Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T09:34:01.907731Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"InProgress\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT0S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1836d818-4a48-419b-aedd-21f20cbd4f3c\",\"name\":\"1836d818-4a48-419b-aedd-21f20cbd4f3c\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1dc3f97c-a7b0-4e77-b6ad-7e40af5be857?api-version=2022-05-01+13": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1836d818-4a48-419b-aedd-21f20cbd4f3c?api-version=2022-12-01+13": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1dc3f97c-a7b0-4e77-b6ad-7e40af5be857?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1836d818-4a48-419b-aedd-21f20cbd4f3c?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "247" ], - "x-ms-client-request-id": [ "697c5430-954e-4b5e-bcac-228fed27d44d" ], + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "d379bc2d-372c-4fad-8a64-706f1daa9f45" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -505,30 +530,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "520c2ad5-6009-4179-a7ff-fdcefe921f27" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T143934Z:520c2ad5-6009-4179-a7ff-fdcefe921f27" ], - "Date": [ "Wed, 29 Jun 2022 14:39:34 GMT" ] + "x-ms-correlation-request-id": [ "41622bd1-529e-4d9d-9517-734f73835bda" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093548Z:41622bd1-529e-4d9d-9517-734f73835bda" ], + "Date": [ "Mon, 23 Jan 2023 09:35:47 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2299" ], + "Content-Length": [ "2449" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"b973eec2-5138-4c9b-abfa-b3741017b3ed\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A39%3A29.2623465Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:37:52.3258365Z\",\"endTime\":\"2022-06-29T14:39:29.0722058Z\",\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT1M36.7463693S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":{\"recoveryPointID\":\"ae0e63098be746af818ca0c7415264ae\",\"recoveryPointTime\":\"0001-01-01T00:00:00Z\"},\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"Completed\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1dc3f97c-a7b0-4e77-b6ad-7e40af5be857\",\"name\":\"1dc3f97c-a7b0-4e77-b6ad-7e40af5be857\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"23414d99-ba5b-4a74-9f88-68e32e8be66c\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T09%3A35%3A39.836996Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T09:34:01.907731Z\",\"endTime\":\"2023-01-23T09:35:39.4767841Z\",\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Backup\",\"operation\":\"Backup\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT1M37.5690531S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":2063.0,\"targetRecoverPoint\":{\"recoveryPointID\":\"732ee7d4dd5442a69849d2ffae74663b\",\"recoveryPointTime\":\"0001-01-01T00:00:00Z\"},\"sourceRecoverPoint\":null,\"recoveryDestination\":null,\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Backup\",\"taskStatus\":\"Completed\",\"taskProgress\":null,\"additionalDetails\":{\"OriginalDatasourceSizeInBytes\":\"8802975\",\"TaskId\":\"23414d99-ba5b-4a74-9f88-68e32e8be66c\",\"DatasourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\"}}],\"additionalDetails\":{\"RetentionTag\":\"Default\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/1836d818-4a48-419b-aedd-21f20cbd4f3c\",\"name\":\"1836d818-4a48-419b-aedd-21f20cbd4f3c\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints?api-version=2022-05-01+14": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints?api-version=2022-12-01+14": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "248" ], - "x-ms-client-request-id": [ "5f375b42-30b9-4142-82ac-5be165541513" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "82d52561-9556-4861-b83d-1b1234a1cdc3" ], "CommandName": [ "Az.DataProtection.internal\\Get-AzDataProtectionRecoveryPoint" ], "FullCommandName": [ "Get-AzDataProtectionRecoveryPoint_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -545,28 +572,30 @@ "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "99" ], - "x-ms-correlation-request-id": [ "08b71880-61d9-40ee-907d-5c6ec5fb23c1" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T143940Z:08b71880-61d9-40ee-907d-5c6ec5fb23c1" ], - "Date": [ "Wed, 29 Jun 2022 14:39:40 GMT" ] + "x-ms-correlation-request-id": [ "52ed306a-e08d-4fd1-9d04-c68c208e124d" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093554Z:52ed306a-e08d-4fd1-9d04-c68c208e124d" ], + "Date": [ "Mon, 23 Jan 2023 09:35:53 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "54386" ], + "Content-Length": [ "24445" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"ae0e63098be746af818ca0c7415264ae\",\"recoveryPointTime\":\"2022-06-29T14:38:33.0162385Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"8f8abc7cadfa4cb0ad8ae3896c066204\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-29T14:38:33.0162385Z\",\"expiryTime\":null,\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/ae0e63098be746af818ca0c7415264ae\",\"name\":\"ae0e63098be746af818ca0c7415264ae\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"72c35f6a76e34881b1f1966665133d88\",\"recoveryPointTime\":\"2022-06-29T14:10:02.2316611Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"a6234f201102485bb756a04ccaaff43c\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-29T14:10:02.2316611Z\",\"expiryTime\":\"2022-09-29T14:10:02.2316611Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/72c35f6a76e34881b1f1966665133d88\",\"name\":\"72c35f6a76e34881b1f1966665133d88\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"2a450026ae4c4d29b1b2e29b62e49cf8\",\"recoveryPointTime\":\"2022-06-26T22:02:41.2035301Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"5abff274b9a04fef9a96748dfadc0d04\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-26T22:02:41.2035301Z\",\"expiryTime\":\"2022-09-26T22:02:41.2035301Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/2a450026ae4c4d29b1b2e29b62e49cf8\",\"name\":\"2a450026ae4c4d29b1b2e29b62e49cf8\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"6b2a744eb5404917aa56fa5e86fc0946\",\"recoveryPointTime\":\"2022-06-26T04:31:43.2724975Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"3021924245e1482e9acf3cdb8bebb0e7\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-26T04:31:43.2724975Z\",\"expiryTime\":\"2022-09-26T04:31:43.2724975Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/6b2a744eb5404917aa56fa5e86fc0946\",\"name\":\"6b2a744eb5404917aa56fa5e86fc0946\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"53fe8dcd32114473878737ef851d3d1c\",\"recoveryPointTime\":\"2022-06-23T04:30:47.4303511Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"466b9bbc96d9454981469f9575132136\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-23T04:30:47.4303511Z\",\"expiryTime\":\"2022-09-23T04:30:47.4303511Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/53fe8dcd32114473878737ef851d3d1c\",\"name\":\"53fe8dcd32114473878737ef851d3d1c\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"c22a53d4e7af47b689859350230fb9b7\",\"recoveryPointTime\":\"2022-06-19T22:01:32.9048507Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"4480c7e990ce44e5b06a1d4aef9712df\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-19T22:01:32.9048507Z\",\"expiryTime\":\"2022-09-19T22:01:32.9048507Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/c22a53d4e7af47b689859350230fb9b7\",\"name\":\"c22a53d4e7af47b689859350230fb9b7\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"adcfbb5c9a5644739d07c8472cc9d7f6\",\"recoveryPointTime\":\"2022-06-19T04:30:47.3763108Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"2d557408d1fb4b0a85db6d244da9c3ef\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-19T04:30:47.3763108Z\",\"expiryTime\":\"2022-09-19T04:30:47.3763108Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/adcfbb5c9a5644739d07c8472cc9d7f6\",\"name\":\"adcfbb5c9a5644739d07c8472cc9d7f6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"acb85843988447a0af611604f3c5d371\",\"recoveryPointTime\":\"2022-06-16T04:31:53.3880280Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"72fd67bb71824f2faea628de8f2002ba\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-16T04:31:53.3880280Z\",\"expiryTime\":\"2022-09-16T04:31:53.3880280Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/acb85843988447a0af611604f3c5d371\",\"name\":\"acb85843988447a0af611604f3c5d371\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"cb82ebe5dd18459e9b9d81cde1531606\",\"recoveryPointTime\":\"2022-06-12T22:03:19.4685536Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"a38fdffdeade41caa5a858760f2185a6\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-12T22:03:19.4685536Z\",\"expiryTime\":\"2022-09-12T22:03:19.4685536Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/cb82ebe5dd18459e9b9d81cde1531606\",\"name\":\"cb82ebe5dd18459e9b9d81cde1531606\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"6fc6aed3f46146fe9b07f5da2222a2ab\",\"recoveryPointTime\":\"2022-06-12T04:30:42.8654201Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"b0ab050f84e54de89ef1af574501c1b5\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-12T04:30:42.8654201Z\",\"expiryTime\":\"2022-09-12T04:30:42.8654201Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/6fc6aed3f46146fe9b07f5da2222a2ab\",\"name\":\"6fc6aed3f46146fe9b07f5da2222a2ab\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"90a7ed8ec5cc432498ed28f5bd211427\",\"recoveryPointTime\":\"2022-06-09T16:04:32.5193361Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"f25490cf8dec434da664f51fa6df891a\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-09T16:04:32.5193361Z\",\"expiryTime\":\"2022-09-09T16:04:32.5193361Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/90a7ed8ec5cc432498ed28f5bd211427\",\"name\":\"90a7ed8ec5cc432498ed28f5bd211427\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"a1d381321aee412480e8e9965514385f\",\"recoveryPointTime\":\"2022-06-09T15:47:34.8584535Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"c18fbb3bc8a0430e885be5bfd09f93d0\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-09T15:47:34.8584535Z\",\"expiryTime\":\"2022-09-09T15:47:34.8584535Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/a1d381321aee412480e8e9965514385f\",\"name\":\"a1d381321aee412480e8e9965514385f\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"d4e9765d2cfe4f19a8cbc4d8c78e74cf\",\"recoveryPointTime\":\"2022-06-09T10:47:41.6494549Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"d0e3d3317fdf4503a12926e4cdbe04e4\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-09T10:47:41.6494549Z\",\"expiryTime\":\"2022-09-09T10:47:41.6494549Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/d4e9765d2cfe4f19a8cbc4d8c78e74cf\",\"name\":\"d4e9765d2cfe4f19a8cbc4d8c78e74cf\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"b3a19d83c8b547a88336ab5a259daefc\",\"recoveryPointTime\":\"2022-06-09T08:45:44.2710153Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"503696aa91244910ae7c6c8fdb2c888d\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-09T08:45:44.2710153Z\",\"expiryTime\":\"2022-09-09T08:45:44.2710153Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/b3a19d83c8b547a88336ab5a259daefc\",\"name\":\"b3a19d83c8b547a88336ab5a259daefc\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"2ca8fe3284b545d79b47485985e521ca\",\"recoveryPointTime\":\"2022-06-09T08:30:06.5246639Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"720913637e364111b33eb42185171a47\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-09T08:30:06.5246639Z\",\"expiryTime\":\"2022-09-09T08:30:06.5246639Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/2ca8fe3284b545d79b47485985e521ca\",\"name\":\"2ca8fe3284b545d79b47485985e521ca\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"7736bf09b5e14fd9a7ef1dce944c2116\",\"recoveryPointTime\":\"2022-06-09T04:30:41.9300129Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"5a4c9ec709304396bc8446d56ddede7a\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-09T04:30:41.9300129Z\",\"expiryTime\":\"2022-09-09T04:30:41.9300129Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/7736bf09b5e14fd9a7ef1dce944c2116\",\"name\":\"7736bf09b5e14fd9a7ef1dce944c2116\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"6e8bd158d70346778b36484ae3fa41fc\",\"recoveryPointTime\":\"2022-06-05T22:03:21.2767733Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"23324cff48d5479898b606464c62dce0\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-05T22:03:21.2767733Z\",\"expiryTime\":\"2022-09-05T22:03:21.2767733Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/6e8bd158d70346778b36484ae3fa41fc\",\"name\":\"6e8bd158d70346778b36484ae3fa41fc\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"05296d2d5e5e4db4ac46ba884a16ea56\",\"recoveryPointTime\":\"2022-06-05T04:30:49.9359187Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"7a03b227d26743f1b004d720caf961fd\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-05T04:30:49.9359187Z\",\"expiryTime\":\"2022-09-05T04:30:49.9359187Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/05296d2d5e5e4db4ac46ba884a16ea56\",\"name\":\"05296d2d5e5e4db4ac46ba884a16ea56\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"c77e0f9b1f1b44d6a812d972541310bc\",\"recoveryPointTime\":\"2022-06-02T04:30:51.5846033Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"20ef20716ccc4c20b2123bb444c5da42\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-02T04:30:51.5846033Z\",\"expiryTime\":\"2022-09-02T04:30:51.5846033Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/c77e0f9b1f1b44d6a812d972541310bc\",\"name\":\"c77e0f9b1f1b44d6a812d972541310bc\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"16df609b53a641c29d54776d3cbef2ce\",\"recoveryPointTime\":\"2022-05-29T22:02:42.5355143Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"687b1104eb8f45dab61d9da5dfe7a025\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-29T22:02:42.5355143Z\",\"expiryTime\":\"2022-08-29T22:02:42.5355143Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/16df609b53a641c29d54776d3cbef2ce\",\"name\":\"16df609b53a641c29d54776d3cbef2ce\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"9f39e3b8749f4d46a21e0ddc8a2aac6b\",\"recoveryPointTime\":\"2022-05-29T04:30:41.9039151Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"74871b88f89f482989ac926756e94fa6\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-29T04:30:41.9039151Z\",\"expiryTime\":\"2022-08-29T04:30:41.9039151Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/9f39e3b8749f4d46a21e0ddc8a2aac6b\",\"name\":\"9f39e3b8749f4d46a21e0ddc8a2aac6b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"baa9949dac8e44ce81a1ce9acf3e8c9a\",\"recoveryPointTime\":\"2022-05-26T04:30:48.1158665Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"5aca96d9f84c41ceb0b5e9d0ba3b397e\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-26T04:30:48.1158665Z\",\"expiryTime\":\"2022-08-26T04:30:48.1158665Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/baa9949dac8e44ce81a1ce9acf3e8c9a\",\"name\":\"baa9949dac8e44ce81a1ce9acf3e8c9a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"ccd0da3c5db54ee7b1c2f21b783e0e0e\",\"recoveryPointTime\":\"2022-05-22T22:04:24.7939694Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"87ee59343b4242cb95c86733e860a5f7\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-22T22:04:24.7939694Z\",\"expiryTime\":\"2022-08-22T22:04:24.7939694Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/ccd0da3c5db54ee7b1c2f21b783e0e0e\",\"name\":\"ccd0da3c5db54ee7b1c2f21b783e0e0e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"0c13953c54634d8caabd3a6293ca2a09\",\"recoveryPointTime\":\"2022-05-22T04:30:42.0991560Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"4029ff8b16ea47dab5dff0a7c8c47021\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-22T04:30:42.0991560Z\",\"expiryTime\":\"2022-08-22T04:30:42.0991560Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/0c13953c54634d8caabd3a6293ca2a09\",\"name\":\"0c13953c54634d8caabd3a6293ca2a09\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"d846a1f56cae47e791fe993f728f688e\",\"recoveryPointTime\":\"2022-05-19T04:30:44.6158487Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"0666b257c4f74624bafa3d1494cdf4f8\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-19T04:30:44.6158487Z\",\"expiryTime\":\"2022-08-19T04:30:44.6158487Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/d846a1f56cae47e791fe993f728f688e\",\"name\":\"d846a1f56cae47e791fe993f728f688e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"7b4e850d8d664741b676e6f4374109ad\",\"recoveryPointTime\":\"2022-05-15T22:00:38.4523289Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"ad4cc28dc55f4a2eb7dd7b06290cabb4\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-15T22:00:38.4523289Z\",\"expiryTime\":\"2022-08-15T22:00:38.4523289Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/7b4e850d8d664741b676e6f4374109ad\",\"name\":\"7b4e850d8d664741b676e6f4374109ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"7e1d044bbee14bf8bfd2c7c29ff55e74\",\"recoveryPointTime\":\"2022-05-15T04:30:39.6642155Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"2070bcb7564e4a8eb45aecfb258e459b\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-15T04:30:39.6642155Z\",\"expiryTime\":\"2022-08-15T04:30:39.6642155Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/7e1d044bbee14bf8bfd2c7c29ff55e74\",\"name\":\"7e1d044bbee14bf8bfd2c7c29ff55e74\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"6b34ab20e4b84521a91e6a905fa2e4f6\",\"recoveryPointTime\":\"2022-05-12T04:30:37.7038482Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"9c4f009e99e24221bbb713429276da06\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-12T04:30:37.7038482Z\",\"expiryTime\":\"2022-08-12T04:30:37.7038482Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/6b34ab20e4b84521a91e6a905fa2e4f6\",\"name\":\"6b34ab20e4b84521a91e6a905fa2e4f6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"2f83f63cb8104747b96df940ab3e2bba\",\"recoveryPointTime\":\"2022-05-08T22:00:56.7975152Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"f8933de0dd5f46d28100c3237beef7d2\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-08T22:00:56.7975152Z\",\"expiryTime\":\"2022-08-08T22:00:56.7975152Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/2f83f63cb8104747b96df940ab3e2bba\",\"name\":\"2f83f63cb8104747b96df940ab3e2bba\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"2a262b0cc43c4b4783afe7fa772840ca\",\"recoveryPointTime\":\"2022-05-08T04:30:42.9335809Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"0cc678111c154f5ba307fae17928ab29\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-08T04:30:42.9335809Z\",\"expiryTime\":\"2022-08-08T04:30:42.9335809Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/2a262b0cc43c4b4783afe7fa772840ca\",\"name\":\"2a262b0cc43c4b4783afe7fa772840ca\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"df4585a535224efa80c5621fa6a661f3\",\"recoveryPointTime\":\"2022-05-05T04:30:50.4907118Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"4fcf92462f2d4ce791095177fdaab2fa\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-05T04:30:50.4907118Z\",\"expiryTime\":\"2022-08-05T04:30:50.4907118Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/df4585a535224efa80c5621fa6a661f3\",\"name\":\"df4585a535224efa80c5621fa6a661f3\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"0943c82a71804786aa9527c36666f4b1\",\"recoveryPointTime\":\"2022-05-01T22:07:23.2140978Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"44f2fdd596c745b0a38291c7e241ae76\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-01T22:07:23.2140978Z\",\"expiryTime\":\"2022-08-01T22:07:23.2140978Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/0943c82a71804786aa9527c36666f4b1\",\"name\":\"0943c82a71804786aa9527c36666f4b1\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"fd9925393d60465eb88659fef3f9df67\",\"recoveryPointTime\":\"2022-05-01T04:30:43.0164783Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"d187f1d90f4646f6a335fd9ef9c5b423\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-01T04:30:43.0164783Z\",\"expiryTime\":\"2022-08-01T04:30:43.0164783Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/fd9925393d60465eb88659fef3f9df67\",\"name\":\"fd9925393d60465eb88659fef3f9df67\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"dae0f4b05a194363a3b03e109e7d5faf\",\"recoveryPointTime\":\"2022-04-28T04:30:39.7172149Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"8e673677e9ee45c9a8f01e4a55eb54ae\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-28T04:30:39.7172149Z\",\"expiryTime\":\"2022-07-28T04:30:39.7172149Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/dae0f4b05a194363a3b03e109e7d5faf\",\"name\":\"dae0f4b05a194363a3b03e109e7d5faf\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"af9e97e551f840cd89af5c8220964d31\",\"recoveryPointTime\":\"2022-04-24T22:01:29.7693650Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"7c853f0ecccd4edb8fc3915d72464ff6\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-24T22:01:29.7693650Z\",\"expiryTime\":\"2022-07-24T22:01:29.7693650Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/af9e97e551f840cd89af5c8220964d31\",\"name\":\"af9e97e551f840cd89af5c8220964d31\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"c7543ac190224978b22155ba6d6ac32f\",\"recoveryPointTime\":\"2022-04-24T04:30:47.0820738Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"8975ccbbae814b219d5ed8392c4f3ebb\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-24T04:30:47.0820738Z\",\"expiryTime\":\"2022-07-24T04:30:47.0820738Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/c7543ac190224978b22155ba6d6ac32f\",\"name\":\"c7543ac190224978b22155ba6d6ac32f\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"3e7899b22b4e409f8ee95b790777c226\",\"recoveryPointTime\":\"2022-04-21T04:30:42.3886622Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"d0df8df3eac7481ebf6d10a5e3292f24\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-21T04:30:42.3886622Z\",\"expiryTime\":\"2022-07-21T04:30:42.3886622Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/3e7899b22b4e409f8ee95b790777c226\",\"name\":\"3e7899b22b4e409f8ee95b790777c226\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"9abaf605f1aa40c79b8b2da47d5f5453\",\"recoveryPointTime\":\"2022-04-17T22:03:30.8543428Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"e07b6d99c26a4684a259ed11beeac2ca\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-17T22:03:30.8543428Z\",\"expiryTime\":\"2022-07-17T22:03:30.8543428Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/9abaf605f1aa40c79b8b2da47d5f5453\",\"name\":\"9abaf605f1aa40c79b8b2da47d5f5453\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"82ee8f1c1699405da73fc6c8b00f0f8f\",\"recoveryPointTime\":\"2022-04-17T04:56:52.8061085Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"db741ece7ded4208a9621b4cf95536f2\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-17T04:56:52.8061085Z\",\"expiryTime\":\"2022-07-17T04:56:52.8061085Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/82ee8f1c1699405da73fc6c8b00f0f8f\",\"name\":\"82ee8f1c1699405da73fc6c8b00f0f8f\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"2aa48ea70692481dac2321fc8bc57cf9\",\"recoveryPointTime\":\"2022-04-16T02:30:13.8896430Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"9a30833aca9642a5b305d3b59f82dd06\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-16T02:30:13.8896430Z\",\"expiryTime\":\"2022-07-16T02:30:13.8896430Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/2aa48ea70692481dac2321fc8bc57cf9\",\"name\":\"2aa48ea70692481dac2321fc8bc57cf9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"ae187d6e87f2461ab5ef6c0919ee1da6\",\"recoveryPointTime\":\"2022-04-14T04:30:48.7910696Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"98f176762f0544389874c20e7785edf0\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-14T04:30:48.7910696Z\",\"expiryTime\":\"2022-07-14T04:30:48.7910696Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/ae187d6e87f2461ab5ef6c0919ee1da6\",\"name\":\"ae187d6e87f2461ab5ef6c0919ee1da6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"6ee333ce54e24b36b2f4ba949cec3e47\",\"recoveryPointTime\":\"2022-04-10T22:03:37.7548943Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"47baf28b5bc34389817e86c75eeb8425\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-10T22:03:37.7548943Z\",\"expiryTime\":\"2022-07-10T22:03:37.7548943Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/6ee333ce54e24b36b2f4ba949cec3e47\",\"name\":\"6ee333ce54e24b36b2f4ba949cec3e47\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"2fa970fe6f8044ff808cfe4bf97232fe\",\"recoveryPointTime\":\"2022-04-10T04:30:42.7021212Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"be7385b2f1fc4fada480eb46e9a89d9c\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-10T04:30:42.7021212Z\",\"expiryTime\":\"2022-07-10T04:30:42.7021212Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/2fa970fe6f8044ff808cfe4bf97232fe\",\"name\":\"2fa970fe6f8044ff808cfe4bf97232fe\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"ca042fe627114544b9c8e9525580d7d7\",\"recoveryPointTime\":\"2022-04-07T04:30:40.6534747Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"3e8541f38cf149d5aead5a218c4ea9c5\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-07T04:30:40.6534747Z\",\"expiryTime\":\"2022-07-07T04:30:40.6534747Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/ca042fe627114544b9c8e9525580d7d7\",\"name\":\"ca042fe627114544b9c8e9525580d7d7\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"64a45c70223a4e308dfbfd519bddcb48\",\"recoveryPointTime\":\"2022-04-03T22:04:07.8082168Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"583fef522ebd44e5b8c73cc5324b7dc4\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-03T22:04:07.8237593Z\",\"expiryTime\":\"2022-07-03T22:04:07.8237593Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/64a45c70223a4e308dfbfd519bddcb48\",\"name\":\"64a45c70223a4e308dfbfd519bddcb48\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"f6f6280026d140dab71980daaf68780f\",\"recoveryPointTime\":\"2022-04-03T04:30:38.9152966Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"3863f57c8554486a8ef405c4da1ffee0\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-03T04:30:38.9152966Z\",\"expiryTime\":\"2022-07-03T04:30:38.9152966Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/f6f6280026d140dab71980daaf68780f\",\"name\":\"f6f6280026d140dab71980daaf68780f\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"ecb27b7b94ed4bccbe0abf8b2ca5832e\",\"recoveryPointTime\":\"2022-03-31T04:30:42.0022534Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"2994e7e5a417407bbbf1bb062f32a2e4\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-03-31T04:30:42.0022534Z\",\"expiryTime\":\"2022-06-30T04:30:42.0022534Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/ecb27b7b94ed4bccbe0abf8b2ca5832e\",\"name\":\"ecb27b7b94ed4bccbe0abf8b2ca5832e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"23fb8feed59e4288a6dc174be09d8c5a\",\"recoveryPointTime\":\"2022-03-27T22:00:38.1879390Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"73b169cc4f1a4e5e884020468cd4e876\",\"recoveryPointDataStoresDetails\":[{\"id\":\"376f8b9d-8ab0-4814-a897-16c8ea53a873\",\"type\":\"ArchiveStore\",\"creationTime\":\"2022-06-27T22:10:03.0279417Z\",\"expiryTime\":\"2022-12-27T22:10:03.0279417Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/23fb8feed59e4288a6dc174be09d8c5a\",\"name\":\"23fb8feed59e4288a6dc174be09d8c5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"2c1e01d3a46d47199798bac6999dc34d\",\"recoveryPointTime\":\"2022-03-27T04:30:47.0190796Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"8abb1f43c0d34b8c88c240d9f953829d\",\"recoveryPointDataStoresDetails\":[{\"id\":\"376f8b9d-8ab0-4814-a897-16c8ea53a873\",\"type\":\"ArchiveStore\",\"creationTime\":\"2022-06-27T04:38:24.7093597Z\",\"expiryTime\":\"2022-12-27T04:38:24.7093597Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/2c1e01d3a46d47199798bac6999dc34d\",\"name\":\"2c1e01d3a46d47199798bac6999dc34d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"e277092f73dc41b7879d70d6252f3e68\",\"recoveryPointTime\":\"2022-03-20T22:01:53.2766364Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"0a736937ff7441edb7aa218ca7c28c7e\",\"recoveryPointDataStoresDetails\":[{\"id\":\"376f8b9d-8ab0-4814-a897-16c8ea53a873\",\"type\":\"ArchiveStore\",\"creationTime\":\"2022-06-20T22:22:58.5608189Z\",\"expiryTime\":\"2022-12-20T22:22:58.5608189Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/e277092f73dc41b7879d70d6252f3e68\",\"name\":\"e277092f73dc41b7879d70d6252f3e68\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"}],\"nextLink\":\"https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints?api-version=2022-05-01\u0026%24skiptoken=%3c%3fxml+version%3d%221.0%22+encoding%3d%22utf-16%22%3f%3e%0d%0a%3cContinuationToken%3e%0d%0a++%3cContinuationToken%3e%0d%0a++++%3cVersion%3e2.0%3c%2fVersion%3e%0d%0a++++%3cType%3eTable%3c%2fType%3e%0d%0a++++%3cNextPartitionKey%3e1!48!ODE2YjYwMDUtOWY2Yi00Mjc1LWI3YTUtMjg3OWM5YmY3NTYz%3c%2fNextPartitionKey%3e%0d%0a++++%3cNextRowKey%3e1!140!cGl0aW5kZXg1XzBfMjUxNzU0ODA5MzU4ODA5NTIxNV8wXzI1ZjAxMmJjNzFhNjRlNDlhNjYzN2U5NTE5MTdkYzdlXzBfMzc2ZjhiOWQtOGFiMC00ODE0LWE4OTctMTZjOGVhNTNhODcz%3c%2fNextRowKey%3e%0d%0a++++%3cTargetLocation%3ePrimary%3c%2fTargetLocation%3e%0d%0a++%3c%2fContinuationToken%3e%0d%0a%3c%2fContinuationToken%3e\"}" + "Content": "{\"value\":[{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"732ee7d4dd5442a69849d2ffae74663b\",\"recoveryPointTime\":\"2023-01-23T09:34:41.9746901Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"84d9a5d879274483a47d782fc85e0c38\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2023-01-23T09:34:41.9746901Z\",\"expiryTime\":null,\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/732ee7d4dd5442a69849d2ffae74663b\",\"name\":\"732ee7d4dd5442a69849d2ffae74663b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"878420e5ae4a40afa478381d3b31924a\",\"recoveryPointTime\":\"2023-01-23T07:36:58.6444861Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"0eb85cdb1db74a8dac133fddbe373ab3\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2023-01-23T07:36:58.6444861Z\",\"expiryTime\":\"2023-04-23T07:36:58.6444861Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-04-23T07:36:58.6444861Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/878420e5ae4a40afa478381d3b31924a\",\"name\":\"878420e5ae4a40afa478381d3b31924a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"d911b591dfec43cdb70f5cf97e6192a3\",\"recoveryPointTime\":\"2023-01-22T13:14:55.5522801Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"b621ec68f3824a6a98501fab726d072d\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2023-01-22T13:14:55.5678802Z\",\"expiryTime\":\"2023-04-22T13:14:55.5678802Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-04-22T13:14:55.5678802Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/d911b591dfec43cdb70f5cf97e6192a3\",\"name\":\"d911b591dfec43cdb70f5cf97e6192a3\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"a6282c6481ac42c298866f52c25dbcfd\",\"recoveryPointTime\":\"2023-01-22T12:51:53.3767289Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"c63b3d2657a145e1b29edceb75fc34dc\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2023-01-22T12:51:53.3767289Z\",\"expiryTime\":\"2023-04-22T12:51:53.3767289Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-04-22T12:51:53.3767289Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/a6282c6481ac42c298866f52c25dbcfd\",\"name\":\"a6282c6481ac42c298866f52c25dbcfd\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"a28bfc27ffce4be88ee4a617d8357f2d\",\"recoveryPointTime\":\"2023-01-22T04:30:57.1458172Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"4814ed6b5b29449985977b65a36b5684\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2023-01-22T04:30:57.1458172Z\",\"expiryTime\":\"2023-04-22T04:30:57.1458172Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-04-22T04:30:57.1458172Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/a28bfc27ffce4be88ee4a617d8357f2d\",\"name\":\"a28bfc27ffce4be88ee4a617d8357f2d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"d3263ef7795d4c23b2c145b721bf6c1a\",\"recoveryPointTime\":\"2023-01-19T04:30:51.3614407Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"0eaf9ad03a2843adacdb2954fa8ab766\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2023-01-19T04:30:51.3614407Z\",\"expiryTime\":\"2023-04-19T04:30:51.3614407Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-04-19T04:30:51.3614407Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/d3263ef7795d4c23b2c145b721bf6c1a\",\"name\":\"d3263ef7795d4c23b2c145b721bf6c1a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"c877e33acca64eaaa7b702ef5bcadc5e\",\"recoveryPointTime\":\"2023-01-15T04:30:53.8823765Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"96a7c479c43646dea84c78b8581ddeab\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2023-01-15T04:30:53.8823765Z\",\"expiryTime\":\"2023-04-15T04:30:53.8823765Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-04-15T04:30:53.8823765Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/c877e33acca64eaaa7b702ef5bcadc5e\",\"name\":\"c877e33acca64eaaa7b702ef5bcadc5e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"4d2ffbfeff2e46f1bad43924100f3215\",\"recoveryPointTime\":\"2023-01-12T04:30:51.7425609Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"e3214ed3e1be4d338b236d782a5754aa\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2023-01-12T04:30:51.7425609Z\",\"expiryTime\":\"2023-04-12T04:30:51.7425609Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-04-12T04:30:51.7425609Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/4d2ffbfeff2e46f1bad43924100f3215\",\"name\":\"4d2ffbfeff2e46f1bad43924100f3215\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"6cf20972f5424ed2839202ab2746677d\",\"recoveryPointTime\":\"2023-01-08T04:31:01.2508509Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"102ed6aa0ac4453e9429e49d658b36af\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2023-01-08T04:31:01.2508509Z\",\"expiryTime\":\"2023-04-08T04:31:01.2508509Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-04-08T04:31:01.2508509Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/6cf20972f5424ed2839202ab2746677d\",\"name\":\"6cf20972f5424ed2839202ab2746677d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"c248f6ef3ec74acfb2c17991cb4536ef\",\"recoveryPointTime\":\"2023-01-05T04:30:56.6144162Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"921dee604d3d4e6aaa16d0883e10acee\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2023-01-05T04:30:56.6144162Z\",\"expiryTime\":\"2023-04-05T04:30:56.6144162Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-04-05T04:30:56.6144162Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/c248f6ef3ec74acfb2c17991cb4536ef\",\"name\":\"c248f6ef3ec74acfb2c17991cb4536ef\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"754b01e760b64b41af12400ede501334\",\"recoveryPointTime\":\"2023-01-01T04:31:14.1712178Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"f175f5f346e74d39a7e4b40ecca14949\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2023-01-01T04:31:14.1712178Z\",\"expiryTime\":\"2023-04-01T04:31:14.1712178Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-04-01T04:31:14.1712178Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/754b01e760b64b41af12400ede501334\",\"name\":\"754b01e760b64b41af12400ede501334\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"30f17f9dec0344d9a780ca53272bd283\",\"recoveryPointTime\":\"2022-12-29T04:30:47.3889582Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"57141038b4794b0eab4cdafc6755c119\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-12-29T04:30:47.3889582Z\",\"expiryTime\":\"2023-03-29T04:30:47.3889582Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-03-29T04:30:47.3889582Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/30f17f9dec0344d9a780ca53272bd283\",\"name\":\"30f17f9dec0344d9a780ca53272bd283\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"e8f35c13d52944d49e830dd03e7586ce\",\"recoveryPointTime\":\"2022-12-25T04:30:51.1874860Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"d63c8335c8e849028f39ad6e432790cb\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-12-25T04:30:51.1874860Z\",\"expiryTime\":\"2023-03-25T04:30:51.1874860Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-03-25T04:30:51.1874860Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/e8f35c13d52944d49e830dd03e7586ce\",\"name\":\"e8f35c13d52944d49e830dd03e7586ce\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"edf624d1600e47c1b7dcbb55945438bc\",\"recoveryPointTime\":\"2022-12-22T04:30:51.1761796Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"784684db0b41430abadad45697d62c27\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-12-22T04:30:51.1761796Z\",\"expiryTime\":\"2023-03-22T04:30:51.1761796Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-03-22T04:30:51.1761796Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/edf624d1600e47c1b7dcbb55945438bc\",\"name\":\"edf624d1600e47c1b7dcbb55945438bc\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"f39ee364f59d4bc6be86ab996c2a5c8c\",\"recoveryPointTime\":\"2022-12-18T04:30:51.0305132Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"641eb4d6967e4fe3b14ab83da1565f28\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-12-18T04:30:51.0305132Z\",\"expiryTime\":\"2023-03-18T04:30:51.0305132Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-03-18T04:30:51.0305132Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/f39ee364f59d4bc6be86ab996c2a5c8c\",\"name\":\"f39ee364f59d4bc6be86ab996c2a5c8c\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"c5c15d4b8eed4eb496f22920d156b0d7\",\"recoveryPointTime\":\"2022-12-11T04:30:54.2760369Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"72992a204f9f4bcdb1403d8fda1dc7e4\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-12-11T04:30:54.2760369Z\",\"expiryTime\":\"2023-03-11T04:30:54.2760369Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-03-11T04:30:54.2760369Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/c5c15d4b8eed4eb496f22920d156b0d7\",\"name\":\"c5c15d4b8eed4eb496f22920d156b0d7\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"b91a3220994042919f6d874eed7abe9f\",\"recoveryPointTime\":\"2022-12-08T04:47:37.8560426Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"ebe8b5829e8a41b49b04f9c14bbaf77f\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-12-08T04:47:37.8560426Z\",\"expiryTime\":\"2023-03-08T04:47:37.8560426Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-03-08T04:47:37.8560426Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/b91a3220994042919f6d874eed7abe9f\",\"name\":\"b91a3220994042919f6d874eed7abe9f\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"6cbb230e2d044483af6900e1fc291aa0\",\"recoveryPointTime\":\"2022-12-04T04:32:06.7095173Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"ce72fed86f0d4a20b19fc94ea22e6544\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-12-04T04:32:06.7095173Z\",\"expiryTime\":\"2023-03-04T04:32:06.7095173Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-03-04T04:32:06.7095173Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/6cbb230e2d044483af6900e1fc291aa0\",\"name\":\"6cbb230e2d044483af6900e1fc291aa0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"ac4d4497671a48ebb335f64f5ec2b066\",\"recoveryPointTime\":\"2022-12-01T05:17:27.5314119Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"cab665613d1d4f8993960cd44b7444a5\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-12-01T05:17:27.5314119Z\",\"expiryTime\":\"2023-03-01T05:17:27.5314119Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-03-01T05:17:27.5314119Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/ac4d4497671a48ebb335f64f5ec2b066\",\"name\":\"ac4d4497671a48ebb335f64f5ec2b066\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"0d00ca9d19e749a598edf67b63004181\",\"recoveryPointTime\":\"2022-11-27T04:30:55.3590293Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"175a905d29de45a18665c097ae662fd1\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-11-27T04:30:55.3590293Z\",\"expiryTime\":\"2023-02-27T04:30:55.3590293Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-02-27T04:30:55.3590293Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/0d00ca9d19e749a598edf67b63004181\",\"name\":\"0d00ca9d19e749a598edf67b63004181\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"e868b6264432450abccaabf73dfdcf15\",\"recoveryPointTime\":\"2022-11-24T04:30:50.3569086Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"a578d9a18f07460f879981a412bd4abc\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-11-24T04:30:50.3569086Z\",\"expiryTime\":\"2023-02-24T04:30:50.3569086Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-02-24T04:30:50.3569086Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/e868b6264432450abccaabf73dfdcf15\",\"name\":\"e868b6264432450abccaabf73dfdcf15\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"70e5f7989e01417791d06e58babb92f4\",\"recoveryPointTime\":\"2022-11-06T04:30:57.9698252Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"8adc3d8b49fa4f3d853748f035481fde\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-11-06T04:30:57.9698252Z\",\"expiryTime\":\"2023-02-06T04:30:57.9698252Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-02-06T04:30:57.9698252Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/70e5f7989e01417791d06e58babb92f4\",\"name\":\"70e5f7989e01417791d06e58babb92f4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"}]}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$POST+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/restore?api-version=2022-05-01+15": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$POST+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/restore?api-version=2022-12-01+15": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/restore?api-version=2022-05-01", - "Content": "{\r\n \"objectType\": \"AzureBackupRecoveryPointBasedRestoreRequest\",\r\n \"restoreTargetInfo\": {\r\n \"objectType\": \"restoreTargetInfo\",\r\n \"recoveryOption\": \"FailIfExists\",\r\n \"restoreLocation\": \"centraluseuap\",\r\n \"datasourceInfo\": {\r\n \"datasourceType\": \"Microsoft.DBforPostgreSQL/servers/databases\",\r\n \"objectType\": \"Datasource\",\r\n \"resourceID\": \"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-29-06-2022-7-1-11\",\r\n \"resourceLocation\": \"centraluseuap\",\r\n \"resourceName\": \"oss-pstest-dbrestore-29-06-2022-7-1-11\",\r\n \"resourceType\": \"Microsoft.DBforPostgreSQL/servers/databases\",\r\n \"resourceUri\": \"\"\r\n },\r\n \"datasourceSetInfo\": {\r\n \"datasourceType\": \"Microsoft.DBforPostgreSQL/servers/databases\",\r\n \"objectType\": \"DatasourceSet\",\r\n \"resourceID\": \"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server\",\r\n \"resourceLocation\": \"centraluseuap\",\r\n \"resourceName\": \"oss-pstest-server\",\r\n \"resourceType\": \"Microsoft.DBforPostgreSQL/servers\",\r\n \"resourceUri\": \"\"\r\n },\r\n \"datasourceAuthCredentials\": {\r\n \"objectType\": \"SecretStoreBasedAuthCredentials\",\r\n \"secretStoreResource\": {\r\n \"uri\": \"https://oss-pstest-keyvault.vault.azure.net/secrets/oss-pstest-secret\",\r\n \"secretStoreType\": \"AzureKeyVault\"\r\n }\r\n }\r\n },\r\n \"sourceDataStoreType\": \"VaultStore\",\r\n \"recoveryPointId\": \"ae0e63098be746af818ca0c7415264ae\"\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/restore?api-version=2022-12-01", + "Content": "{\r\n \"objectType\": \"AzureBackupRecoveryPointBasedRestoreRequest\",\r\n \"restoreTargetInfo\": {\r\n \"objectType\": \"restoreTargetInfo\",\r\n \"recoveryOption\": \"FailIfExists\",\r\n \"restoreLocation\": \"centraluseuap\",\r\n \"datasourceInfo\": {\r\n \"datasourceType\": \"Microsoft.DBforPostgreSQL/servers/databases\",\r\n \"objectType\": \"Datasource\",\r\n \"resourceID\": \"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-22-01-2023-6-13-11\",\r\n \"resourceLocation\": \"centraluseuap\",\r\n \"resourceName\": \"oss-pstest-dbrestore-22-01-2023-6-13-11\",\r\n \"resourceType\": \"Microsoft.DBforPostgreSQL/servers/databases\",\r\n \"resourceUri\": \"\"\r\n },\r\n \"datasourceSetInfo\": {\r\n \"datasourceType\": \"Microsoft.DBforPostgreSQL/servers/databases\",\r\n \"objectType\": \"DatasourceSet\",\r\n \"resourceID\": \"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server\",\r\n \"resourceLocation\": \"centraluseuap\",\r\n \"resourceName\": \"oss-pstest-server\",\r\n \"resourceType\": \"Microsoft.DBforPostgreSQL/servers\",\r\n \"resourceUri\": \"\"\r\n },\r\n \"datasourceAuthCredentials\": {\r\n \"objectType\": \"SecretStoreBasedAuthCredentials\",\r\n \"secretStoreResource\": {\r\n \"uri\": \"https://oss-pstest-keyvault.vault.azure.net/secrets/oss-pstest-secret\",\r\n \"secretStoreType\": \"AzureKeyVault\"\r\n }\r\n }\r\n },\r\n \"sourceDataStoreType\": \"VaultStore\",\r\n \"recoveryPointId\": \"732ee7d4dd5442a69849d2ffae74663b\"\r\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "1624" ] + "Content-Length": [ "1626" ] } }, "Response": { @@ -574,38 +603,40 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzE5MTExNGYyLWY4MWMtNDdiZS1iNzM5LTlkMWU1NGRiMzA3OQ==?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzFkZWFmZDFhLTk0MjAtNDZkZC1iNDE5LTM2Y2EyMzAyYTdiNA==?api-version=2022-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzE5MTExNGYyLWY4MWMtNDdiZS1iNzM5LTlkMWU1NGRiMzA3OQ==?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzFkZWFmZDFhLTk0MjAtNDZkZC1iNDE5LTM2Y2EyMzAyYTdiNA==?api-version=2022-12-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": [ "1198" ], - "x-ms-correlation-request-id": [ "8b96ad78-565c-4d83-8288-a36788d226f0" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T143941Z:8b96ad78-565c-4d83-8288-a36788d226f0" ], - "Date": [ "Wed, 29 Jun 2022 14:39:41 GMT" ] + "x-ms-correlation-request-id": [ "4dc24564-3a91-461b-b07a-cf7edd690920" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093555Z:4dc24564-3a91-461b-b07a-cf7edd690920" ], + "Date": [ "Mon, 23 Jan 2023 09:35:55 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzE5MTExNGYyLWY4MWMtNDdiZS1iNzM5LTlkMWU1NGRiMzA3OQ==?api-version=2022-05-01+16": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzFkZWFmZDFhLTk0MjAtNDZkZC1iNDE5LTM2Y2EyMzAyYTdiNA==?api-version=2022-12-01+16": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzE5MTExNGYyLWY4MWMtNDdiZS1iNzM5LTlkMWU1NGRiMzA3OQ==?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzFkZWFmZDFhLTk0MjAtNDZkZC1iNDE5LTM2Y2EyMzAyYTdiNA==?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "250" ], - "x-ms-client-request-id": [ "51b33408-483c-47ca-9045-29cc616816fe" ], + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "0fd53b38-36f6-4da0-9a68-d5e8696e7f0b" ], "CommandName": [ "Start-AzDataProtectionBackupInstanceRestore" ], "FullCommandName": [ "Start-AzDataProtectionBackupInstanceRestore_Trigger" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -621,31 +652,33 @@ "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "998" ], - "x-ms-correlation-request-id": [ "b36a69e6-f111-42c8-95e2-924282f25a6c" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144011Z:b36a69e6-f111-42c8-95e2-924282f25a6c" ], - "Date": [ "Wed, 29 Jun 2022 14:40:11 GMT" ] + "x-ms-correlation-request-id": [ "7424ddfc-0a79-4cdb-bc32-630d71d30937" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093626Z:7424ddfc-0a79-4cdb-bc32-630d71d30937" ], + "Date": [ "Mon, 23 Jan 2023 09:36:26 GMT" ] }, "ContentHeaders": { "Content-Length": [ "737" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzE5MTExNGYyLWY4MWMtNDdiZS1iNzM5LTlkMWU1NGRiMzA3OQ==\",\"name\":\"ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzE5MTExNGYyLWY4MWMtNDdiZS1iNzM5LTlkMWU1NGRiMzA3OQ==\",\"status\":\"Succeeded\",\"startTime\":\"2022-06-29T14:39:40.7638519Z\",\"endTime\":\"2022-06-29T14:39:43Z\",\"properties\":{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255\",\"objectType\":\"OperationJobExtendedInfo\"}}" + "Content": "{\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzFkZWFmZDFhLTk0MjAtNDZkZC1iNDE5LTM2Y2EyMzAyYTdiNA==\",\"name\":\"ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzFkZWFmZDFhLTk0MjAtNDZkZC1iNDE5LTM2Y2EyMzAyYTdiNA==\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-23T09:35:55.6043638Z\",\"endTime\":\"2023-01-23T09:35:57Z\",\"properties\":{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"objectType\":\"OperationJobExtendedInfo\"}}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzE5MTExNGYyLWY4MWMtNDdiZS1iNzM5LTlkMWU1NGRiMzA3OQ==?api-version=2022-05-01+17": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzFkZWFmZDFhLTk0MjAtNDZkZC1iNDE5LTM2Y2EyMzAyYTdiNA==?api-version=2022-12-01+17": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzE5MTExNGYyLWY4MWMtNDdiZS1iNzM5LTlkMWU1NGRiMzA3OQ==?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzFkZWFmZDFhLTk0MjAtNDZkZC1iNDE5LTM2Y2EyMzAyYTdiNA==?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "251" ], - "x-ms-client-request-id": [ "51b33408-483c-47ca-9045-29cc616816fe" ], + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "0fd53b38-36f6-4da0-9a68-d5e8696e7f0b" ], "CommandName": [ "Start-AzDataProtectionBackupInstanceRestore" ], "FullCommandName": [ "Start-AzDataProtectionBackupInstanceRestore_Trigger" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -656,37 +689,39 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzE5MTExNGYyLWY4MWMtNDdiZS1iNzM5LTlkMWU1NGRiMzA3OQ==?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzFkZWFmZDFhLTk0MjAtNDZkZC1iNDE5LTM2Y2EyMzAyYTdiNA==?api-version=2022-12-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-resource-requests": [ "198" ], - "x-ms-correlation-request-id": [ "d04c1ef9-32e9-4199-b08f-35d5ef07131c" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144011Z:d04c1ef9-32e9-4199-b08f-35d5ef07131c" ], - "Date": [ "Wed, 29 Jun 2022 14:40:11 GMT" ] + "x-ms-correlation-request-id": [ "fc2bd59b-160a-4415-8a09-14e5e520d918" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093627Z:fc2bd59b-160a-4415-8a09-14e5e520d918" ], + "Date": [ "Mon, 23 Jan 2023 09:36:27 GMT" ] }, "ContentHeaders": { "Content-Length": [ "245" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255\",\"objectType\":\"OperationJobExtendedInfo\"}" + "Content": "{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"objectType\":\"OperationJobExtendedInfo\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255?api-version=2022-05-01+18": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b?api-version=2022-12-01+18": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "252" ], - "x-ms-client-request-id": [ "275e6473-4d90-4840-903f-0dcff182f981" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "04d6066e-0629-41c3-8bc2-a1772703579a" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -703,30 +738,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "1e083b54-6352-48c5-b12e-d7db2b57069b" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144031Z:1e083b54-6352-48c5-b12e-d7db2b57069b" ], - "Date": [ "Wed, 29 Jun 2022 14:40:31 GMT" ] + "x-ms-correlation-request-id": [ "3e933a23-2321-4d52-871c-0f57bc2a953f" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093647Z:3e933a23-2321-4d52-871c-0f57bc2a953f" ], + "Date": [ "Mon, 23 Jan 2023 09:36:47 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2435" ], + "Content-Length": [ "2437" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"51b33408-483c-47ca-9045-29cc616816fe\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A39%3A41.928161Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:39:41.4347334Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"ae0e63098be746af818ca0c7415264ae\",\"recoveryPointTime\":\"2022-06-29T14:38:33.0162385Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-29-06-2022-7-1-11\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255\",\"name\":\"9786f9b1-87f3-4a33-b607-531d220c6255\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0fd53b38-36f6-4da0-9a68-d5e8696e7f0b\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T09%3A35%3A56.5295613Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T09:35:56.1232381Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"732ee7d4dd5442a69849d2ffae74663b\",\"recoveryPointTime\":\"2023-01-23T09:34:41.9746901Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-22-01-2023-6-13-11\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"name\":\"76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255?api-version=2022-05-01+19": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b?api-version=2022-12-01+19": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "253" ], - "x-ms-client-request-id": [ "d965ff3b-8e7c-43c9-abbb-2b93ae875829" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "cd056dd8-177a-403a-b09f-87bc3356989e" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -743,30 +780,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "e88116dc-acd1-4d6a-981b-f5ca2abf11e6" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144042Z:e88116dc-acd1-4d6a-981b-f5ca2abf11e6" ], - "Date": [ "Wed, 29 Jun 2022 14:40:41 GMT" ] + "x-ms-correlation-request-id": [ "2a5d586a-4842-4b33-99f9-4945eaf1806a" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093658Z:2a5d586a-4842-4b33-99f9-4945eaf1806a" ], + "Date": [ "Mon, 23 Jan 2023 09:36:58 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2435" ], + "Content-Length": [ "2437" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"51b33408-483c-47ca-9045-29cc616816fe\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A39%3A41.928161Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:39:41.4347334Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"ae0e63098be746af818ca0c7415264ae\",\"recoveryPointTime\":\"2022-06-29T14:38:33.0162385Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-29-06-2022-7-1-11\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255\",\"name\":\"9786f9b1-87f3-4a33-b607-531d220c6255\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0fd53b38-36f6-4da0-9a68-d5e8696e7f0b\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T09%3A35%3A56.5295613Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T09:35:56.1232381Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"732ee7d4dd5442a69849d2ffae74663b\",\"recoveryPointTime\":\"2023-01-23T09:34:41.9746901Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-22-01-2023-6-13-11\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"name\":\"76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255?api-version=2022-05-01+20": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b?api-version=2022-12-01+20": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "254" ], - "x-ms-client-request-id": [ "96f5a085-8fe5-42c5-81f3-95e9f1278add" ], + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "ea5e7fdc-9a91-4fb4-9fef-184d2c3ac52d" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -783,30 +822,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "d82432a9-e89f-493f-ad57-d8f446c1cdbe" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144052Z:d82432a9-e89f-493f-ad57-d8f446c1cdbe" ], - "Date": [ "Wed, 29 Jun 2022 14:40:51 GMT" ] + "x-ms-correlation-request-id": [ "415de879-75f8-4bda-aac2-ac98a0bfa338" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093709Z:415de879-75f8-4bda-aac2-ac98a0bfa338" ], + "Date": [ "Mon, 23 Jan 2023 09:37:08 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2435" ], + "Content-Length": [ "2437" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"51b33408-483c-47ca-9045-29cc616816fe\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A39%3A41.928161Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:39:41.4347334Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"ae0e63098be746af818ca0c7415264ae\",\"recoveryPointTime\":\"2022-06-29T14:38:33.0162385Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-29-06-2022-7-1-11\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255\",\"name\":\"9786f9b1-87f3-4a33-b607-531d220c6255\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0fd53b38-36f6-4da0-9a68-d5e8696e7f0b\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T09%3A35%3A56.5295613Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T09:35:56.1232381Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"732ee7d4dd5442a69849d2ffae74663b\",\"recoveryPointTime\":\"2023-01-23T09:34:41.9746901Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-22-01-2023-6-13-11\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"name\":\"76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255?api-version=2022-05-01+21": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b?api-version=2022-12-01+21": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "255" ], - "x-ms-client-request-id": [ "02e72051-9454-4744-bf31-9d732a802a48" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "de12d493-47a7-478a-831e-0ab6914948d3" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -823,30 +864,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "b85ca379-5412-4be1-afb1-ec0f4aa511b0" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144102Z:b85ca379-5412-4be1-afb1-ec0f4aa511b0" ], - "Date": [ "Wed, 29 Jun 2022 14:41:02 GMT" ] + "x-ms-correlation-request-id": [ "0df7eeaa-5b16-428b-b2b0-0b92dcab7a89" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093720Z:0df7eeaa-5b16-428b-b2b0-0b92dcab7a89" ], + "Date": [ "Mon, 23 Jan 2023 09:37:19 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2435" ], + "Content-Length": [ "2437" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"51b33408-483c-47ca-9045-29cc616816fe\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A39%3A41.928161Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:39:41.4347334Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"ae0e63098be746af818ca0c7415264ae\",\"recoveryPointTime\":\"2022-06-29T14:38:33.0162385Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-29-06-2022-7-1-11\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255\",\"name\":\"9786f9b1-87f3-4a33-b607-531d220c6255\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0fd53b38-36f6-4da0-9a68-d5e8696e7f0b\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T09%3A35%3A56.5295613Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T09:35:56.1232381Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"732ee7d4dd5442a69849d2ffae74663b\",\"recoveryPointTime\":\"2023-01-23T09:34:41.9746901Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-22-01-2023-6-13-11\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"name\":\"76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255?api-version=2022-05-01+22": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b?api-version=2022-12-01+22": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "256" ], - "x-ms-client-request-id": [ "dd673ca5-629a-408b-8de2-65a4b932d7af" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "5952e088-9a4b-4518-93ee-ba7c060b96eb" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -863,30 +906,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "039ca49c-f621-41ff-b183-bba9c7f3c6e7" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144112Z:039ca49c-f621-41ff-b183-bba9c7f3c6e7" ], - "Date": [ "Wed, 29 Jun 2022 14:41:12 GMT" ] + "x-ms-correlation-request-id": [ "b54bd199-7f0d-4360-b4cd-7c1ab6657d2b" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093730Z:b54bd199-7f0d-4360-b4cd-7c1ab6657d2b" ], + "Date": [ "Mon, 23 Jan 2023 09:37:30 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2435" ], + "Content-Length": [ "2437" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"51b33408-483c-47ca-9045-29cc616816fe\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A39%3A41.928161Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:39:41.4347334Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"ae0e63098be746af818ca0c7415264ae\",\"recoveryPointTime\":\"2022-06-29T14:38:33.0162385Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-29-06-2022-7-1-11\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255\",\"name\":\"9786f9b1-87f3-4a33-b607-531d220c6255\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0fd53b38-36f6-4da0-9a68-d5e8696e7f0b\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T09%3A35%3A56.5295613Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T09:35:56.1232381Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"732ee7d4dd5442a69849d2ffae74663b\",\"recoveryPointTime\":\"2023-01-23T09:34:41.9746901Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-22-01-2023-6-13-11\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"name\":\"76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255?api-version=2022-05-01+23": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b?api-version=2022-12-01+23": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "257" ], - "x-ms-client-request-id": [ "b097e336-8cd7-4e22-931f-27f8bd34dfbf" ], + "x-ms-unique-id": [ "23" ], + "x-ms-client-request-id": [ "cccfde9a-34f0-4340-a66b-9d1f2b663937" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -903,30 +948,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "e63d6042-f40f-493b-bd1f-4a06222939ed" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144123Z:e63d6042-f40f-493b-bd1f-4a06222939ed" ], - "Date": [ "Wed, 29 Jun 2022 14:41:23 GMT" ] + "x-ms-correlation-request-id": [ "8457b711-7a61-4d99-ac52-da2aa7a017e3" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093741Z:8457b711-7a61-4d99-ac52-da2aa7a017e3" ], + "Date": [ "Mon, 23 Jan 2023 09:37:40 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2435" ], + "Content-Length": [ "2437" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"51b33408-483c-47ca-9045-29cc616816fe\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A39%3A41.928161Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:39:41.4347334Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"ae0e63098be746af818ca0c7415264ae\",\"recoveryPointTime\":\"2022-06-29T14:38:33.0162385Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-29-06-2022-7-1-11\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255\",\"name\":\"9786f9b1-87f3-4a33-b607-531d220c6255\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0fd53b38-36f6-4da0-9a68-d5e8696e7f0b\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T09%3A35%3A56.5295613Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T09:35:56.1232381Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"732ee7d4dd5442a69849d2ffae74663b\",\"recoveryPointTime\":\"2023-01-23T09:34:41.9746901Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-22-01-2023-6-13-11\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"name\":\"76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255?api-version=2022-05-01+24": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b?api-version=2022-12-01+24": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "258" ], - "x-ms-client-request-id": [ "01f866da-3a57-4395-a2fa-501ba58d48bf" ], + "x-ms-unique-id": [ "24" ], + "x-ms-client-request-id": [ "f1a10e70-25e8-41f1-9522-0bad4a55fd5b" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -943,30 +990,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "0dbe4ca2-5057-4819-98e0-2b02236eb8a3" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144134Z:0dbe4ca2-5057-4819-98e0-2b02236eb8a3" ], - "Date": [ "Wed, 29 Jun 2022 14:41:33 GMT" ] + "x-ms-correlation-request-id": [ "32307a08-4677-47ed-812d-95297f18b5e7" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093752Z:32307a08-4677-47ed-812d-95297f18b5e7" ], + "Date": [ "Mon, 23 Jan 2023 09:37:51 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2435" ], + "Content-Length": [ "2437" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"51b33408-483c-47ca-9045-29cc616816fe\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A39%3A41.928161Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:39:41.4347334Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"ae0e63098be746af818ca0c7415264ae\",\"recoveryPointTime\":\"2022-06-29T14:38:33.0162385Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-29-06-2022-7-1-11\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255\",\"name\":\"9786f9b1-87f3-4a33-b607-531d220c6255\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0fd53b38-36f6-4da0-9a68-d5e8696e7f0b\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T09%3A35%3A56.5295613Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T09:35:56.1232381Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"732ee7d4dd5442a69849d2ffae74663b\",\"recoveryPointTime\":\"2023-01-23T09:34:41.9746901Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-22-01-2023-6-13-11\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"name\":\"76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255?api-version=2022-05-01+25": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b?api-version=2022-12-01+25": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "259" ], - "x-ms-client-request-id": [ "3e3faa74-ee9a-4883-94ff-6b97cf5f1eae" ], + "x-ms-unique-id": [ "25" ], + "x-ms-client-request-id": [ "c29eaf09-fdc2-4f1c-8171-79ab1e5237a0" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -983,30 +1032,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "0325310e-7286-4044-b705-5fda4853ffdb" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144144Z:0325310e-7286-4044-b705-5fda4853ffdb" ], - "Date": [ "Wed, 29 Jun 2022 14:41:43 GMT" ] + "x-ms-correlation-request-id": [ "334c01d7-c8c7-4d0d-99ac-f50eda4c3972" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093803Z:334c01d7-c8c7-4d0d-99ac-f50eda4c3972" ], + "Date": [ "Mon, 23 Jan 2023 09:38:02 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2435" ], + "Content-Length": [ "2437" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"51b33408-483c-47ca-9045-29cc616816fe\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A39%3A41.928161Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:39:41.4347334Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"ae0e63098be746af818ca0c7415264ae\",\"recoveryPointTime\":\"2022-06-29T14:38:33.0162385Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-29-06-2022-7-1-11\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255\",\"name\":\"9786f9b1-87f3-4a33-b607-531d220c6255\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0fd53b38-36f6-4da0-9a68-d5e8696e7f0b\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T09%3A35%3A56.5295613Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T09:35:56.1232381Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"732ee7d4dd5442a69849d2ffae74663b\",\"recoveryPointTime\":\"2023-01-23T09:34:41.9746901Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-22-01-2023-6-13-11\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"name\":\"76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255?api-version=2022-05-01+26": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b?api-version=2022-12-01+26": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "260" ], - "x-ms-client-request-id": [ "902d28ab-364b-427d-8588-ab70839b24fd" ], + "x-ms-unique-id": [ "26" ], + "x-ms-client-request-id": [ "f3e19175-454e-43d9-b253-81c66179f2ac" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1023,30 +1074,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "89b6cffc-d79a-43c8-b0e2-5b3bf44094d6" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144154Z:89b6cffc-d79a-43c8-b0e2-5b3bf44094d6" ], - "Date": [ "Wed, 29 Jun 2022 14:41:53 GMT" ] + "x-ms-correlation-request-id": [ "41cc00d1-4460-4a7b-8a3a-d8356a54c84f" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093814Z:41cc00d1-4460-4a7b-8a3a-d8356a54c84f" ], + "Date": [ "Mon, 23 Jan 2023 09:38:13 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2435" ], + "Content-Length": [ "2437" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"51b33408-483c-47ca-9045-29cc616816fe\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A39%3A41.928161Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:39:41.4347334Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"ae0e63098be746af818ca0c7415264ae\",\"recoveryPointTime\":\"2022-06-29T14:38:33.0162385Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-29-06-2022-7-1-11\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255\",\"name\":\"9786f9b1-87f3-4a33-b607-531d220c6255\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0fd53b38-36f6-4da0-9a68-d5e8696e7f0b\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T09%3A35%3A56.5295613Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T09:35:56.1232381Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"732ee7d4dd5442a69849d2ffae74663b\",\"recoveryPointTime\":\"2023-01-23T09:34:41.9746901Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-22-01-2023-6-13-11\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"name\":\"76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255?api-version=2022-05-01+27": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b?api-version=2022-12-01+27": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "261" ], - "x-ms-client-request-id": [ "16b1f78e-581e-4e0c-b5c4-a3dfff1a06ff" ], + "x-ms-unique-id": [ "27" ], + "x-ms-client-request-id": [ "e8ba521b-05f8-4e19-8cd2-361048c81e25" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1063,30 +1116,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "7cf9d641-18b3-4354-a1e6-59af4695a95f" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144205Z:7cf9d641-18b3-4354-a1e6-59af4695a95f" ], - "Date": [ "Wed, 29 Jun 2022 14:42:04 GMT" ] + "x-ms-correlation-request-id": [ "376ff333-b576-4828-93b8-bbf2ba8b888c" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093824Z:376ff333-b576-4828-93b8-bbf2ba8b888c" ], + "Date": [ "Mon, 23 Jan 2023 09:38:24 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2435" ], + "Content-Length": [ "2437" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"51b33408-483c-47ca-9045-29cc616816fe\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A39%3A41.928161Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:39:41.4347334Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"ae0e63098be746af818ca0c7415264ae\",\"recoveryPointTime\":\"2022-06-29T14:38:33.0162385Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-29-06-2022-7-1-11\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255\",\"name\":\"9786f9b1-87f3-4a33-b607-531d220c6255\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0fd53b38-36f6-4da0-9a68-d5e8696e7f0b\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T09%3A35%3A56.5295613Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T09:35:56.1232381Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"732ee7d4dd5442a69849d2ffae74663b\",\"recoveryPointTime\":\"2023-01-23T09:34:41.9746901Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-22-01-2023-6-13-11\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"name\":\"76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255?api-version=2022-05-01+28": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b?api-version=2022-12-01+28": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "262" ], - "x-ms-client-request-id": [ "2a6d682a-9c08-4a4d-a709-18a9702ea73b" ], + "x-ms-unique-id": [ "28" ], + "x-ms-client-request-id": [ "900dab15-6289-44f2-a115-0656711ee8da" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1103,30 +1158,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "3e3be2bd-9d01-465d-ade8-3028cd5791c8" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144215Z:3e3be2bd-9d01-465d-ade8-3028cd5791c8" ], - "Date": [ "Wed, 29 Jun 2022 14:42:15 GMT" ] + "x-ms-correlation-request-id": [ "14a740fb-879a-4234-8e76-15c0f53cad0e" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093835Z:14a740fb-879a-4234-8e76-15c0f53cad0e" ], + "Date": [ "Mon, 23 Jan 2023 09:38:35 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2435" ], + "Content-Length": [ "2437" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"51b33408-483c-47ca-9045-29cc616816fe\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A39%3A41.928161Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:39:41.4347334Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"ae0e63098be746af818ca0c7415264ae\",\"recoveryPointTime\":\"2022-06-29T14:38:33.0162385Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-29-06-2022-7-1-11\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255\",\"name\":\"9786f9b1-87f3-4a33-b607-531d220c6255\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0fd53b38-36f6-4da0-9a68-d5e8696e7f0b\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T09%3A35%3A56.5295613Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T09:35:56.1232381Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"732ee7d4dd5442a69849d2ffae74663b\",\"recoveryPointTime\":\"2023-01-23T09:34:41.9746901Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-22-01-2023-6-13-11\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"name\":\"76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255?api-version=2022-05-01+29": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b?api-version=2022-12-01+29": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "263" ], - "x-ms-client-request-id": [ "d6211d09-f0f4-4c00-a02e-6c149175682c" ], + "x-ms-unique-id": [ "29" ], + "x-ms-client-request-id": [ "1baec6a9-8c9b-4bf0-a080-a3781cfd8d35" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1143,30 +1200,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "41ac87c5-afcc-4e33-ba33-8c2560b0bdcf" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144225Z:41ac87c5-afcc-4e33-ba33-8c2560b0bdcf" ], - "Date": [ "Wed, 29 Jun 2022 14:42:25 GMT" ] + "x-ms-correlation-request-id": [ "3ba0de9d-d25b-46f2-bfba-24bc82bc3d37" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093846Z:3ba0de9d-d25b-46f2-bfba-24bc82bc3d37" ], + "Date": [ "Mon, 23 Jan 2023 09:38:46 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2471" ], + "Content-Length": [ "2609" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"51b33408-483c-47ca-9045-29cc616816fe\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A42%3A17.8935739Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:39:41.4347334Z\",\"endTime\":\"2022-06-29T14:42:17.6495652Z\",\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT2M36.2148318S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":\"ae0e63098be746af818ca0c7415264ae\",\"recoveryPointTime\":\"2022-06-29T14:38:33.0162385Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-29-06-2022-7-1-11\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"Completed\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":null}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/9786f9b1-87f3-4a33-b607-531d220c6255\",\"name\":\"9786f9b1-87f3-4a33-b607-531d220c6255\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"0fd53b38-36f6-4da0-9a68-d5e8696e7f0b\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T09%3A38%3A45.8203939Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T09:35:56.1232381Z\",\"endTime\":\"2023-01-23T09:38:45.6198864Z\",\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT2M49.4966483S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":\"732ee7d4dd5442a69849d2ffae74663b\",\"recoveryPointTime\":\"2023-01-23T09:34:41.9746901Z\"},\"recoveryDestination\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore-22-01-2023-6-13-11\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"Completed\",\"taskProgress\":null,\"additionalDetails\":{\"DataTransferredInBytes\":\"0\",\"TaskId\":\"0fd53b38-36f6-4da0-9a68-d5e8696e7f0b\",\"DatasourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\"}}],\"additionalDetails\":null}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"name\":\"76b069c1-e7ff-4fd9-9cc2-f4a2ba81e56b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints?api-version=2022-05-01+30": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints?api-version=2022-12-01+30": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "264" ], - "x-ms-client-request-id": [ "94b32854-039e-4db2-837c-43ddcb796aa9" ], + "x-ms-unique-id": [ "30" ], + "x-ms-client-request-id": [ "f943274e-3438-4889-86dd-1632410d6cdc" ], "CommandName": [ "Az.DataProtection.internal\\Get-AzDataProtectionRecoveryPoint" ], "FullCommandName": [ "Get-AzDataProtectionRecoveryPoint_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1180,31 +1239,33 @@ "X-Content-Type-Options": [ "nosniff" ], "x-ms-request-id": [ "" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "98" ], "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], - "x-ms-correlation-request-id": [ "83c63b8d-c528-42fb-893f-abcbfae5980c" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144231Z:83c63b8d-c528-42fb-893f-abcbfae5980c" ], - "Date": [ "Wed, 29 Jun 2022 14:42:31 GMT" ] + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "98" ], + "x-ms-correlation-request-id": [ "02ddb79b-c462-47de-b1c4-e5560c5bc85d" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093852Z:02ddb79b-c462-47de-b1c4-e5560c5bc85d" ], + "Date": [ "Mon, 23 Jan 2023 09:38:52 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "54386" ], + "Content-Length": [ "24445" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"ae0e63098be746af818ca0c7415264ae\",\"recoveryPointTime\":\"2022-06-29T14:38:33.0162385Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"8f8abc7cadfa4cb0ad8ae3896c066204\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-29T14:38:33.0162385Z\",\"expiryTime\":null,\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/ae0e63098be746af818ca0c7415264ae\",\"name\":\"ae0e63098be746af818ca0c7415264ae\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"72c35f6a76e34881b1f1966665133d88\",\"recoveryPointTime\":\"2022-06-29T14:10:02.2316611Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"a6234f201102485bb756a04ccaaff43c\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-29T14:10:02.2316611Z\",\"expiryTime\":\"2022-09-29T14:10:02.2316611Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/72c35f6a76e34881b1f1966665133d88\",\"name\":\"72c35f6a76e34881b1f1966665133d88\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"2a450026ae4c4d29b1b2e29b62e49cf8\",\"recoveryPointTime\":\"2022-06-26T22:02:41.2035301Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"5abff274b9a04fef9a96748dfadc0d04\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-26T22:02:41.2035301Z\",\"expiryTime\":\"2022-09-26T22:02:41.2035301Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/2a450026ae4c4d29b1b2e29b62e49cf8\",\"name\":\"2a450026ae4c4d29b1b2e29b62e49cf8\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"6b2a744eb5404917aa56fa5e86fc0946\",\"recoveryPointTime\":\"2022-06-26T04:31:43.2724975Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"3021924245e1482e9acf3cdb8bebb0e7\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-26T04:31:43.2724975Z\",\"expiryTime\":\"2022-09-26T04:31:43.2724975Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/6b2a744eb5404917aa56fa5e86fc0946\",\"name\":\"6b2a744eb5404917aa56fa5e86fc0946\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"53fe8dcd32114473878737ef851d3d1c\",\"recoveryPointTime\":\"2022-06-23T04:30:47.4303511Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"466b9bbc96d9454981469f9575132136\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-23T04:30:47.4303511Z\",\"expiryTime\":\"2022-09-23T04:30:47.4303511Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/53fe8dcd32114473878737ef851d3d1c\",\"name\":\"53fe8dcd32114473878737ef851d3d1c\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"c22a53d4e7af47b689859350230fb9b7\",\"recoveryPointTime\":\"2022-06-19T22:01:32.9048507Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"4480c7e990ce44e5b06a1d4aef9712df\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-19T22:01:32.9048507Z\",\"expiryTime\":\"2022-09-19T22:01:32.9048507Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/c22a53d4e7af47b689859350230fb9b7\",\"name\":\"c22a53d4e7af47b689859350230fb9b7\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"adcfbb5c9a5644739d07c8472cc9d7f6\",\"recoveryPointTime\":\"2022-06-19T04:30:47.3763108Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"2d557408d1fb4b0a85db6d244da9c3ef\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-19T04:30:47.3763108Z\",\"expiryTime\":\"2022-09-19T04:30:47.3763108Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/adcfbb5c9a5644739d07c8472cc9d7f6\",\"name\":\"adcfbb5c9a5644739d07c8472cc9d7f6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"acb85843988447a0af611604f3c5d371\",\"recoveryPointTime\":\"2022-06-16T04:31:53.3880280Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"72fd67bb71824f2faea628de8f2002ba\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-16T04:31:53.3880280Z\",\"expiryTime\":\"2022-09-16T04:31:53.3880280Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/acb85843988447a0af611604f3c5d371\",\"name\":\"acb85843988447a0af611604f3c5d371\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"cb82ebe5dd18459e9b9d81cde1531606\",\"recoveryPointTime\":\"2022-06-12T22:03:19.4685536Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"a38fdffdeade41caa5a858760f2185a6\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-12T22:03:19.4685536Z\",\"expiryTime\":\"2022-09-12T22:03:19.4685536Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/cb82ebe5dd18459e9b9d81cde1531606\",\"name\":\"cb82ebe5dd18459e9b9d81cde1531606\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"6fc6aed3f46146fe9b07f5da2222a2ab\",\"recoveryPointTime\":\"2022-06-12T04:30:42.8654201Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"b0ab050f84e54de89ef1af574501c1b5\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-12T04:30:42.8654201Z\",\"expiryTime\":\"2022-09-12T04:30:42.8654201Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/6fc6aed3f46146fe9b07f5da2222a2ab\",\"name\":\"6fc6aed3f46146fe9b07f5da2222a2ab\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"90a7ed8ec5cc432498ed28f5bd211427\",\"recoveryPointTime\":\"2022-06-09T16:04:32.5193361Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"f25490cf8dec434da664f51fa6df891a\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-09T16:04:32.5193361Z\",\"expiryTime\":\"2022-09-09T16:04:32.5193361Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/90a7ed8ec5cc432498ed28f5bd211427\",\"name\":\"90a7ed8ec5cc432498ed28f5bd211427\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"a1d381321aee412480e8e9965514385f\",\"recoveryPointTime\":\"2022-06-09T15:47:34.8584535Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"c18fbb3bc8a0430e885be5bfd09f93d0\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-09T15:47:34.8584535Z\",\"expiryTime\":\"2022-09-09T15:47:34.8584535Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/a1d381321aee412480e8e9965514385f\",\"name\":\"a1d381321aee412480e8e9965514385f\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"d4e9765d2cfe4f19a8cbc4d8c78e74cf\",\"recoveryPointTime\":\"2022-06-09T10:47:41.6494549Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"d0e3d3317fdf4503a12926e4cdbe04e4\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-09T10:47:41.6494549Z\",\"expiryTime\":\"2022-09-09T10:47:41.6494549Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/d4e9765d2cfe4f19a8cbc4d8c78e74cf\",\"name\":\"d4e9765d2cfe4f19a8cbc4d8c78e74cf\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"b3a19d83c8b547a88336ab5a259daefc\",\"recoveryPointTime\":\"2022-06-09T08:45:44.2710153Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"503696aa91244910ae7c6c8fdb2c888d\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-09T08:45:44.2710153Z\",\"expiryTime\":\"2022-09-09T08:45:44.2710153Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/b3a19d83c8b547a88336ab5a259daefc\",\"name\":\"b3a19d83c8b547a88336ab5a259daefc\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"2ca8fe3284b545d79b47485985e521ca\",\"recoveryPointTime\":\"2022-06-09T08:30:06.5246639Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"720913637e364111b33eb42185171a47\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-09T08:30:06.5246639Z\",\"expiryTime\":\"2022-09-09T08:30:06.5246639Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/2ca8fe3284b545d79b47485985e521ca\",\"name\":\"2ca8fe3284b545d79b47485985e521ca\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"7736bf09b5e14fd9a7ef1dce944c2116\",\"recoveryPointTime\":\"2022-06-09T04:30:41.9300129Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"5a4c9ec709304396bc8446d56ddede7a\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-09T04:30:41.9300129Z\",\"expiryTime\":\"2022-09-09T04:30:41.9300129Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/7736bf09b5e14fd9a7ef1dce944c2116\",\"name\":\"7736bf09b5e14fd9a7ef1dce944c2116\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"6e8bd158d70346778b36484ae3fa41fc\",\"recoveryPointTime\":\"2022-06-05T22:03:21.2767733Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"23324cff48d5479898b606464c62dce0\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-05T22:03:21.2767733Z\",\"expiryTime\":\"2022-09-05T22:03:21.2767733Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/6e8bd158d70346778b36484ae3fa41fc\",\"name\":\"6e8bd158d70346778b36484ae3fa41fc\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"05296d2d5e5e4db4ac46ba884a16ea56\",\"recoveryPointTime\":\"2022-06-05T04:30:49.9359187Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"7a03b227d26743f1b004d720caf961fd\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-05T04:30:49.9359187Z\",\"expiryTime\":\"2022-09-05T04:30:49.9359187Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/05296d2d5e5e4db4ac46ba884a16ea56\",\"name\":\"05296d2d5e5e4db4ac46ba884a16ea56\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"c77e0f9b1f1b44d6a812d972541310bc\",\"recoveryPointTime\":\"2022-06-02T04:30:51.5846033Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"20ef20716ccc4c20b2123bb444c5da42\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-06-02T04:30:51.5846033Z\",\"expiryTime\":\"2022-09-02T04:30:51.5846033Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/c77e0f9b1f1b44d6a812d972541310bc\",\"name\":\"c77e0f9b1f1b44d6a812d972541310bc\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"16df609b53a641c29d54776d3cbef2ce\",\"recoveryPointTime\":\"2022-05-29T22:02:42.5355143Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"687b1104eb8f45dab61d9da5dfe7a025\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-29T22:02:42.5355143Z\",\"expiryTime\":\"2022-08-29T22:02:42.5355143Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/16df609b53a641c29d54776d3cbef2ce\",\"name\":\"16df609b53a641c29d54776d3cbef2ce\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"9f39e3b8749f4d46a21e0ddc8a2aac6b\",\"recoveryPointTime\":\"2022-05-29T04:30:41.9039151Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"74871b88f89f482989ac926756e94fa6\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-29T04:30:41.9039151Z\",\"expiryTime\":\"2022-08-29T04:30:41.9039151Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/9f39e3b8749f4d46a21e0ddc8a2aac6b\",\"name\":\"9f39e3b8749f4d46a21e0ddc8a2aac6b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"baa9949dac8e44ce81a1ce9acf3e8c9a\",\"recoveryPointTime\":\"2022-05-26T04:30:48.1158665Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"5aca96d9f84c41ceb0b5e9d0ba3b397e\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-26T04:30:48.1158665Z\",\"expiryTime\":\"2022-08-26T04:30:48.1158665Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/baa9949dac8e44ce81a1ce9acf3e8c9a\",\"name\":\"baa9949dac8e44ce81a1ce9acf3e8c9a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"ccd0da3c5db54ee7b1c2f21b783e0e0e\",\"recoveryPointTime\":\"2022-05-22T22:04:24.7939694Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"87ee59343b4242cb95c86733e860a5f7\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-22T22:04:24.7939694Z\",\"expiryTime\":\"2022-08-22T22:04:24.7939694Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/ccd0da3c5db54ee7b1c2f21b783e0e0e\",\"name\":\"ccd0da3c5db54ee7b1c2f21b783e0e0e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"0c13953c54634d8caabd3a6293ca2a09\",\"recoveryPointTime\":\"2022-05-22T04:30:42.0991560Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"4029ff8b16ea47dab5dff0a7c8c47021\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-22T04:30:42.0991560Z\",\"expiryTime\":\"2022-08-22T04:30:42.0991560Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/0c13953c54634d8caabd3a6293ca2a09\",\"name\":\"0c13953c54634d8caabd3a6293ca2a09\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"d846a1f56cae47e791fe993f728f688e\",\"recoveryPointTime\":\"2022-05-19T04:30:44.6158487Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"0666b257c4f74624bafa3d1494cdf4f8\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-19T04:30:44.6158487Z\",\"expiryTime\":\"2022-08-19T04:30:44.6158487Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/d846a1f56cae47e791fe993f728f688e\",\"name\":\"d846a1f56cae47e791fe993f728f688e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"7b4e850d8d664741b676e6f4374109ad\",\"recoveryPointTime\":\"2022-05-15T22:00:38.4523289Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"ad4cc28dc55f4a2eb7dd7b06290cabb4\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-15T22:00:38.4523289Z\",\"expiryTime\":\"2022-08-15T22:00:38.4523289Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/7b4e850d8d664741b676e6f4374109ad\",\"name\":\"7b4e850d8d664741b676e6f4374109ad\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"7e1d044bbee14bf8bfd2c7c29ff55e74\",\"recoveryPointTime\":\"2022-05-15T04:30:39.6642155Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"2070bcb7564e4a8eb45aecfb258e459b\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-15T04:30:39.6642155Z\",\"expiryTime\":\"2022-08-15T04:30:39.6642155Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/7e1d044bbee14bf8bfd2c7c29ff55e74\",\"name\":\"7e1d044bbee14bf8bfd2c7c29ff55e74\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"6b34ab20e4b84521a91e6a905fa2e4f6\",\"recoveryPointTime\":\"2022-05-12T04:30:37.7038482Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"9c4f009e99e24221bbb713429276da06\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-12T04:30:37.7038482Z\",\"expiryTime\":\"2022-08-12T04:30:37.7038482Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/6b34ab20e4b84521a91e6a905fa2e4f6\",\"name\":\"6b34ab20e4b84521a91e6a905fa2e4f6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"2f83f63cb8104747b96df940ab3e2bba\",\"recoveryPointTime\":\"2022-05-08T22:00:56.7975152Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"f8933de0dd5f46d28100c3237beef7d2\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-08T22:00:56.7975152Z\",\"expiryTime\":\"2022-08-08T22:00:56.7975152Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/2f83f63cb8104747b96df940ab3e2bba\",\"name\":\"2f83f63cb8104747b96df940ab3e2bba\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"2a262b0cc43c4b4783afe7fa772840ca\",\"recoveryPointTime\":\"2022-05-08T04:30:42.9335809Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"0cc678111c154f5ba307fae17928ab29\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-08T04:30:42.9335809Z\",\"expiryTime\":\"2022-08-08T04:30:42.9335809Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/2a262b0cc43c4b4783afe7fa772840ca\",\"name\":\"2a262b0cc43c4b4783afe7fa772840ca\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"df4585a535224efa80c5621fa6a661f3\",\"recoveryPointTime\":\"2022-05-05T04:30:50.4907118Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"4fcf92462f2d4ce791095177fdaab2fa\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-05T04:30:50.4907118Z\",\"expiryTime\":\"2022-08-05T04:30:50.4907118Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/df4585a535224efa80c5621fa6a661f3\",\"name\":\"df4585a535224efa80c5621fa6a661f3\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"0943c82a71804786aa9527c36666f4b1\",\"recoveryPointTime\":\"2022-05-01T22:07:23.2140978Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"44f2fdd596c745b0a38291c7e241ae76\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-01T22:07:23.2140978Z\",\"expiryTime\":\"2022-08-01T22:07:23.2140978Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/0943c82a71804786aa9527c36666f4b1\",\"name\":\"0943c82a71804786aa9527c36666f4b1\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"fd9925393d60465eb88659fef3f9df67\",\"recoveryPointTime\":\"2022-05-01T04:30:43.0164783Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"d187f1d90f4646f6a335fd9ef9c5b423\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-05-01T04:30:43.0164783Z\",\"expiryTime\":\"2022-08-01T04:30:43.0164783Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/fd9925393d60465eb88659fef3f9df67\",\"name\":\"fd9925393d60465eb88659fef3f9df67\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"dae0f4b05a194363a3b03e109e7d5faf\",\"recoveryPointTime\":\"2022-04-28T04:30:39.7172149Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"8e673677e9ee45c9a8f01e4a55eb54ae\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-28T04:30:39.7172149Z\",\"expiryTime\":\"2022-07-28T04:30:39.7172149Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/dae0f4b05a194363a3b03e109e7d5faf\",\"name\":\"dae0f4b05a194363a3b03e109e7d5faf\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"af9e97e551f840cd89af5c8220964d31\",\"recoveryPointTime\":\"2022-04-24T22:01:29.7693650Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"7c853f0ecccd4edb8fc3915d72464ff6\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-24T22:01:29.7693650Z\",\"expiryTime\":\"2022-07-24T22:01:29.7693650Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/af9e97e551f840cd89af5c8220964d31\",\"name\":\"af9e97e551f840cd89af5c8220964d31\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"c7543ac190224978b22155ba6d6ac32f\",\"recoveryPointTime\":\"2022-04-24T04:30:47.0820738Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"8975ccbbae814b219d5ed8392c4f3ebb\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-24T04:30:47.0820738Z\",\"expiryTime\":\"2022-07-24T04:30:47.0820738Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/c7543ac190224978b22155ba6d6ac32f\",\"name\":\"c7543ac190224978b22155ba6d6ac32f\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"3e7899b22b4e409f8ee95b790777c226\",\"recoveryPointTime\":\"2022-04-21T04:30:42.3886622Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"d0df8df3eac7481ebf6d10a5e3292f24\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-21T04:30:42.3886622Z\",\"expiryTime\":\"2022-07-21T04:30:42.3886622Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/3e7899b22b4e409f8ee95b790777c226\",\"name\":\"3e7899b22b4e409f8ee95b790777c226\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"9abaf605f1aa40c79b8b2da47d5f5453\",\"recoveryPointTime\":\"2022-04-17T22:03:30.8543428Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"e07b6d99c26a4684a259ed11beeac2ca\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-17T22:03:30.8543428Z\",\"expiryTime\":\"2022-07-17T22:03:30.8543428Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/9abaf605f1aa40c79b8b2da47d5f5453\",\"name\":\"9abaf605f1aa40c79b8b2da47d5f5453\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"82ee8f1c1699405da73fc6c8b00f0f8f\",\"recoveryPointTime\":\"2022-04-17T04:56:52.8061085Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"db741ece7ded4208a9621b4cf95536f2\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-17T04:56:52.8061085Z\",\"expiryTime\":\"2022-07-17T04:56:52.8061085Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/82ee8f1c1699405da73fc6c8b00f0f8f\",\"name\":\"82ee8f1c1699405da73fc6c8b00f0f8f\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"2aa48ea70692481dac2321fc8bc57cf9\",\"recoveryPointTime\":\"2022-04-16T02:30:13.8896430Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"9a30833aca9642a5b305d3b59f82dd06\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-16T02:30:13.8896430Z\",\"expiryTime\":\"2022-07-16T02:30:13.8896430Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/2aa48ea70692481dac2321fc8bc57cf9\",\"name\":\"2aa48ea70692481dac2321fc8bc57cf9\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"ae187d6e87f2461ab5ef6c0919ee1da6\",\"recoveryPointTime\":\"2022-04-14T04:30:48.7910696Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"98f176762f0544389874c20e7785edf0\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-14T04:30:48.7910696Z\",\"expiryTime\":\"2022-07-14T04:30:48.7910696Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/ae187d6e87f2461ab5ef6c0919ee1da6\",\"name\":\"ae187d6e87f2461ab5ef6c0919ee1da6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"6ee333ce54e24b36b2f4ba949cec3e47\",\"recoveryPointTime\":\"2022-04-10T22:03:37.7548943Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"47baf28b5bc34389817e86c75eeb8425\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-10T22:03:37.7548943Z\",\"expiryTime\":\"2022-07-10T22:03:37.7548943Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/6ee333ce54e24b36b2f4ba949cec3e47\",\"name\":\"6ee333ce54e24b36b2f4ba949cec3e47\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"2fa970fe6f8044ff808cfe4bf97232fe\",\"recoveryPointTime\":\"2022-04-10T04:30:42.7021212Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"be7385b2f1fc4fada480eb46e9a89d9c\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-10T04:30:42.7021212Z\",\"expiryTime\":\"2022-07-10T04:30:42.7021212Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/2fa970fe6f8044ff808cfe4bf97232fe\",\"name\":\"2fa970fe6f8044ff808cfe4bf97232fe\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"ca042fe627114544b9c8e9525580d7d7\",\"recoveryPointTime\":\"2022-04-07T04:30:40.6534747Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"3e8541f38cf149d5aead5a218c4ea9c5\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-07T04:30:40.6534747Z\",\"expiryTime\":\"2022-07-07T04:30:40.6534747Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/ca042fe627114544b9c8e9525580d7d7\",\"name\":\"ca042fe627114544b9c8e9525580d7d7\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"64a45c70223a4e308dfbfd519bddcb48\",\"recoveryPointTime\":\"2022-04-03T22:04:07.8082168Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"583fef522ebd44e5b8c73cc5324b7dc4\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-03T22:04:07.8237593Z\",\"expiryTime\":\"2022-07-03T22:04:07.8237593Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/64a45c70223a4e308dfbfd519bddcb48\",\"name\":\"64a45c70223a4e308dfbfd519bddcb48\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"f6f6280026d140dab71980daaf68780f\",\"recoveryPointTime\":\"2022-04-03T04:30:38.9152966Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"3863f57c8554486a8ef405c4da1ffee0\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-04-03T04:30:38.9152966Z\",\"expiryTime\":\"2022-07-03T04:30:38.9152966Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/f6f6280026d140dab71980daaf68780f\",\"name\":\"f6f6280026d140dab71980daaf68780f\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"ecb27b7b94ed4bccbe0abf8b2ca5832e\",\"recoveryPointTime\":\"2022-03-31T04:30:42.0022534Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"2994e7e5a417407bbbf1bb062f32a2e4\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-03-31T04:30:42.0022534Z\",\"expiryTime\":\"2022-06-30T04:30:42.0022534Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/ecb27b7b94ed4bccbe0abf8b2ca5832e\",\"name\":\"ecb27b7b94ed4bccbe0abf8b2ca5832e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"23fb8feed59e4288a6dc174be09d8c5a\",\"recoveryPointTime\":\"2022-03-27T22:00:38.1879390Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"73b169cc4f1a4e5e884020468cd4e876\",\"recoveryPointDataStoresDetails\":[{\"id\":\"376f8b9d-8ab0-4814-a897-16c8ea53a873\",\"type\":\"ArchiveStore\",\"creationTime\":\"2022-06-27T22:10:03.0279417Z\",\"expiryTime\":\"2022-12-27T22:10:03.0279417Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/23fb8feed59e4288a6dc174be09d8c5a\",\"name\":\"23fb8feed59e4288a6dc174be09d8c5a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"2c1e01d3a46d47199798bac6999dc34d\",\"recoveryPointTime\":\"2022-03-27T04:30:47.0190796Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"8abb1f43c0d34b8c88c240d9f953829d\",\"recoveryPointDataStoresDetails\":[{\"id\":\"376f8b9d-8ab0-4814-a897-16c8ea53a873\",\"type\":\"ArchiveStore\",\"creationTime\":\"2022-06-27T04:38:24.7093597Z\",\"expiryTime\":\"2022-12-27T04:38:24.7093597Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/2c1e01d3a46d47199798bac6999dc34d\",\"name\":\"2c1e01d3a46d47199798bac6999dc34d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"e277092f73dc41b7879d70d6252f3e68\",\"recoveryPointTime\":\"2022-03-20T22:01:53.2766364Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"0a736937ff7441edb7aa218ca7c28c7e\",\"recoveryPointDataStoresDetails\":[{\"id\":\"376f8b9d-8ab0-4814-a897-16c8ea53a873\",\"type\":\"ArchiveStore\",\"creationTime\":\"2022-06-20T22:22:58.5608189Z\",\"expiryTime\":\"2022-12-20T22:22:58.5608189Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637665130500284746\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints/e277092f73dc41b7879d70d6252f3e68\",\"name\":\"e277092f73dc41b7879d70d6252f3e68\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"}],\"nextLink\":\"https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/recoveryPoints?api-version=2022-05-01\u0026%24skiptoken=%3c%3fxml+version%3d%221.0%22+encoding%3d%22utf-16%22%3f%3e%0d%0a%3cContinuationToken%3e%0d%0a++%3cContinuationToken%3e%0d%0a++++%3cVersion%3e2.0%3c%2fVersion%3e%0d%0a++++%3cType%3eTable%3c%2fType%3e%0d%0a++++%3cNextPartitionKey%3e1!48!ODE2YjYwMDUtOWY2Yi00Mjc1LWI3YTUtMjg3OWM5YmY3NTYz%3c%2fNextPartitionKey%3e%0d%0a++++%3cNextRowKey%3e1!140!cGl0aW5kZXg1XzBfMjUxNzU0ODA5MzU4ODA5NTIxNV8wXzI1ZjAxMmJjNzFhNjRlNDlhNjYzN2U5NTE5MTdkYzdlXzBfMzc2ZjhiOWQtOGFiMC00ODE0LWE4OTctMTZjOGVhNTNhODcz%3c%2fNextRowKey%3e%0d%0a++++%3cTargetLocation%3ePrimary%3c%2fTargetLocation%3e%0d%0a++%3c%2fContinuationToken%3e%0d%0a%3c%2fContinuationToken%3e\"}" + "Content": "{\"value\":[{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"732ee7d4dd5442a69849d2ffae74663b\",\"recoveryPointTime\":\"2023-01-23T09:34:41.9746901Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"84d9a5d879274483a47d782fc85e0c38\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2023-01-23T09:34:41.9746901Z\",\"expiryTime\":null,\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":null},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/732ee7d4dd5442a69849d2ffae74663b\",\"name\":\"732ee7d4dd5442a69849d2ffae74663b\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"878420e5ae4a40afa478381d3b31924a\",\"recoveryPointTime\":\"2023-01-23T07:36:58.6444861Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"0eb85cdb1db74a8dac133fddbe373ab3\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2023-01-23T07:36:58.6444861Z\",\"expiryTime\":\"2023-04-23T07:36:58.6444861Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-04-23T07:36:58.6444861Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/878420e5ae4a40afa478381d3b31924a\",\"name\":\"878420e5ae4a40afa478381d3b31924a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"d911b591dfec43cdb70f5cf97e6192a3\",\"recoveryPointTime\":\"2023-01-22T13:14:55.5522801Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"b621ec68f3824a6a98501fab726d072d\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2023-01-22T13:14:55.5678802Z\",\"expiryTime\":\"2023-04-22T13:14:55.5678802Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-04-22T13:14:55.5678802Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/d911b591dfec43cdb70f5cf97e6192a3\",\"name\":\"d911b591dfec43cdb70f5cf97e6192a3\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"a6282c6481ac42c298866f52c25dbcfd\",\"recoveryPointTime\":\"2023-01-22T12:51:53.3767289Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"c63b3d2657a145e1b29edceb75fc34dc\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2023-01-22T12:51:53.3767289Z\",\"expiryTime\":\"2023-04-22T12:51:53.3767289Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-04-22T12:51:53.3767289Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/a6282c6481ac42c298866f52c25dbcfd\",\"name\":\"a6282c6481ac42c298866f52c25dbcfd\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"a28bfc27ffce4be88ee4a617d8357f2d\",\"recoveryPointTime\":\"2023-01-22T04:30:57.1458172Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"4814ed6b5b29449985977b65a36b5684\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2023-01-22T04:30:57.1458172Z\",\"expiryTime\":\"2023-04-22T04:30:57.1458172Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-04-22T04:30:57.1458172Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/a28bfc27ffce4be88ee4a617d8357f2d\",\"name\":\"a28bfc27ffce4be88ee4a617d8357f2d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"d3263ef7795d4c23b2c145b721bf6c1a\",\"recoveryPointTime\":\"2023-01-19T04:30:51.3614407Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"0eaf9ad03a2843adacdb2954fa8ab766\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2023-01-19T04:30:51.3614407Z\",\"expiryTime\":\"2023-04-19T04:30:51.3614407Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-04-19T04:30:51.3614407Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/d3263ef7795d4c23b2c145b721bf6c1a\",\"name\":\"d3263ef7795d4c23b2c145b721bf6c1a\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"c877e33acca64eaaa7b702ef5bcadc5e\",\"recoveryPointTime\":\"2023-01-15T04:30:53.8823765Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"96a7c479c43646dea84c78b8581ddeab\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2023-01-15T04:30:53.8823765Z\",\"expiryTime\":\"2023-04-15T04:30:53.8823765Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-04-15T04:30:53.8823765Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/c877e33acca64eaaa7b702ef5bcadc5e\",\"name\":\"c877e33acca64eaaa7b702ef5bcadc5e\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"4d2ffbfeff2e46f1bad43924100f3215\",\"recoveryPointTime\":\"2023-01-12T04:30:51.7425609Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"e3214ed3e1be4d338b236d782a5754aa\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2023-01-12T04:30:51.7425609Z\",\"expiryTime\":\"2023-04-12T04:30:51.7425609Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-04-12T04:30:51.7425609Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/4d2ffbfeff2e46f1bad43924100f3215\",\"name\":\"4d2ffbfeff2e46f1bad43924100f3215\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"6cf20972f5424ed2839202ab2746677d\",\"recoveryPointTime\":\"2023-01-08T04:31:01.2508509Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"102ed6aa0ac4453e9429e49d658b36af\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2023-01-08T04:31:01.2508509Z\",\"expiryTime\":\"2023-04-08T04:31:01.2508509Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-04-08T04:31:01.2508509Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/6cf20972f5424ed2839202ab2746677d\",\"name\":\"6cf20972f5424ed2839202ab2746677d\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"c248f6ef3ec74acfb2c17991cb4536ef\",\"recoveryPointTime\":\"2023-01-05T04:30:56.6144162Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"921dee604d3d4e6aaa16d0883e10acee\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2023-01-05T04:30:56.6144162Z\",\"expiryTime\":\"2023-04-05T04:30:56.6144162Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-04-05T04:30:56.6144162Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/c248f6ef3ec74acfb2c17991cb4536ef\",\"name\":\"c248f6ef3ec74acfb2c17991cb4536ef\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"754b01e760b64b41af12400ede501334\",\"recoveryPointTime\":\"2023-01-01T04:31:14.1712178Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"f175f5f346e74d39a7e4b40ecca14949\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2023-01-01T04:31:14.1712178Z\",\"expiryTime\":\"2023-04-01T04:31:14.1712178Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-04-01T04:31:14.1712178Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/754b01e760b64b41af12400ede501334\",\"name\":\"754b01e760b64b41af12400ede501334\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"30f17f9dec0344d9a780ca53272bd283\",\"recoveryPointTime\":\"2022-12-29T04:30:47.3889582Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"57141038b4794b0eab4cdafc6755c119\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-12-29T04:30:47.3889582Z\",\"expiryTime\":\"2023-03-29T04:30:47.3889582Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-03-29T04:30:47.3889582Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/30f17f9dec0344d9a780ca53272bd283\",\"name\":\"30f17f9dec0344d9a780ca53272bd283\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"e8f35c13d52944d49e830dd03e7586ce\",\"recoveryPointTime\":\"2022-12-25T04:30:51.1874860Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"d63c8335c8e849028f39ad6e432790cb\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-12-25T04:30:51.1874860Z\",\"expiryTime\":\"2023-03-25T04:30:51.1874860Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-03-25T04:30:51.1874860Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/e8f35c13d52944d49e830dd03e7586ce\",\"name\":\"e8f35c13d52944d49e830dd03e7586ce\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"edf624d1600e47c1b7dcbb55945438bc\",\"recoveryPointTime\":\"2022-12-22T04:30:51.1761796Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"784684db0b41430abadad45697d62c27\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-12-22T04:30:51.1761796Z\",\"expiryTime\":\"2023-03-22T04:30:51.1761796Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-03-22T04:30:51.1761796Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/edf624d1600e47c1b7dcbb55945438bc\",\"name\":\"edf624d1600e47c1b7dcbb55945438bc\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"f39ee364f59d4bc6be86ab996c2a5c8c\",\"recoveryPointTime\":\"2022-12-18T04:30:51.0305132Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"641eb4d6967e4fe3b14ab83da1565f28\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-12-18T04:30:51.0305132Z\",\"expiryTime\":\"2023-03-18T04:30:51.0305132Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-03-18T04:30:51.0305132Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/f39ee364f59d4bc6be86ab996c2a5c8c\",\"name\":\"f39ee364f59d4bc6be86ab996c2a5c8c\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"c5c15d4b8eed4eb496f22920d156b0d7\",\"recoveryPointTime\":\"2022-12-11T04:30:54.2760369Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"72992a204f9f4bcdb1403d8fda1dc7e4\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-12-11T04:30:54.2760369Z\",\"expiryTime\":\"2023-03-11T04:30:54.2760369Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-03-11T04:30:54.2760369Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/c5c15d4b8eed4eb496f22920d156b0d7\",\"name\":\"c5c15d4b8eed4eb496f22920d156b0d7\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"b91a3220994042919f6d874eed7abe9f\",\"recoveryPointTime\":\"2022-12-08T04:47:37.8560426Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"ebe8b5829e8a41b49b04f9c14bbaf77f\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-12-08T04:47:37.8560426Z\",\"expiryTime\":\"2023-03-08T04:47:37.8560426Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-03-08T04:47:37.8560426Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/b91a3220994042919f6d874eed7abe9f\",\"name\":\"b91a3220994042919f6d874eed7abe9f\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"6cbb230e2d044483af6900e1fc291aa0\",\"recoveryPointTime\":\"2022-12-04T04:32:06.7095173Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"ce72fed86f0d4a20b19fc94ea22e6544\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-12-04T04:32:06.7095173Z\",\"expiryTime\":\"2023-03-04T04:32:06.7095173Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-03-04T04:32:06.7095173Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/6cbb230e2d044483af6900e1fc291aa0\",\"name\":\"6cbb230e2d044483af6900e1fc291aa0\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"ac4d4497671a48ebb335f64f5ec2b066\",\"recoveryPointTime\":\"2022-12-01T05:17:27.5314119Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"cab665613d1d4f8993960cd44b7444a5\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-12-01T05:17:27.5314119Z\",\"expiryTime\":\"2023-03-01T05:17:27.5314119Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-03-01T05:17:27.5314119Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/ac4d4497671a48ebb335f64f5ec2b066\",\"name\":\"ac4d4497671a48ebb335f64f5ec2b066\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"0d00ca9d19e749a598edf67b63004181\",\"recoveryPointTime\":\"2022-11-27T04:30:55.3590293Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"175a905d29de45a18665c097ae662fd1\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-11-27T04:30:55.3590293Z\",\"expiryTime\":\"2023-02-27T04:30:55.3590293Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-02-27T04:30:55.3590293Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/0d00ca9d19e749a598edf67b63004181\",\"name\":\"0d00ca9d19e749a598edf67b63004181\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"e868b6264432450abccaabf73dfdcf15\",\"recoveryPointTime\":\"2022-11-24T04:30:50.3569086Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"a578d9a18f07460f879981a412bd4abc\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-11-24T04:30:50.3569086Z\",\"expiryTime\":\"2023-02-24T04:30:50.3569086Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-02-24T04:30:50.3569086Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/e868b6264432450abccaabf73dfdcf15\",\"name\":\"e868b6264432450abccaabf73dfdcf15\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"},{\"properties\":{\"objectType\":\"AzureBackupDiscreteRecoveryPoint\",\"recoveryPointId\":\"70e5f7989e01417791d06e58babb92f4\",\"recoveryPointTime\":\"2022-11-06T04:30:57.9698252Z\",\"recoveryPointType\":\"Full\",\"friendlyName\":\"8adc3d8b49fa4f3d853748f035481fde\",\"recoveryPointDataStoresDetails\":[{\"id\":\"ba608801-9fb2-40ed-9a88-c81efd13db17\",\"type\":\"VaultStore\",\"creationTime\":\"2022-11-06T04:30:57.9698252Z\",\"expiryTime\":\"2023-02-06T04:30:57.9698252Z\",\"metaData\":null,\"visible\":true,\"state\":\"COMMITTED\",\"rehydrationExpiryTime\":null,\"rehydrationStatus\":null}],\"retentionTagName\":\"Default\",\"retentionTagVersion\":\"637994396663663445\",\"policyName\":\"oss-pstest-policy\",\"policyVersion\":null,\"expiryTime\":\"2023-02-06T04:30:57.9698252Z\"},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/recoveryPoints/70e5f7989e01417791d06e58babb92f4\",\"name\":\"70e5f7989e01417791d06e58babb92f4\",\"type\":\"Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints\"}]}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$POST+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/restore?api-version=2022-05-01+31": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$POST+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/restore?api-version=2022-12-01+31": { "Request": { "Method": "POST", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229/restore?api-version=2022-05-01", - "Content": "{\r\n \"objectType\": \"AzureBackupRecoveryPointBasedRestoreRequest\",\r\n \"restoreTargetInfo\": {\r\n \"objectType\": \"RestoreFilesTargetInfo\",\r\n \"recoveryOption\": \"FailIfExists\",\r\n \"restoreLocation\": \"centraluseuap\",\r\n \"targetDetails\": {\r\n \"filePrefix\": \"oss-pstest-restoreasfiles-29-06-2022-7-1-11\",\r\n \"restoreTargetLocationType\": \"AzureBlobs\",\r\n \"url\": \"https://osspstestsa.blob.core.windows.net/oss-pstest-container\"\r\n }\r\n },\r\n \"sourceDataStoreType\": \"VaultStore\",\r\n \"recoveryPointId\": \"ae0e63098be746af818ca0c7415264ae\"\r\n}", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce/restore?api-version=2022-12-01", + "Content": "{\r\n \"objectType\": \"AzureBackupRecoveryPointBasedRestoreRequest\",\r\n \"restoreTargetInfo\": {\r\n \"objectType\": \"RestoreFilesTargetInfo\",\r\n \"recoveryOption\": \"FailIfExists\",\r\n \"restoreLocation\": \"centraluseuap\",\r\n \"targetDetails\": {\r\n \"filePrefix\": \"oss-pstest-restoreasfiles-22-01-2023-6-13-11\",\r\n \"restoreTargetLocationType\": \"AzureBlobs\",\r\n \"url\": \"https://osspstestsa.blob.core.windows.net/oss-pstest-container\"\r\n }\r\n },\r\n \"sourceDataStoreType\": \"VaultStore\",\r\n \"recoveryPointId\": \"732ee7d4dd5442a69849d2ffae74663b\"\r\n}", + "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "550" ] + "Content-Length": [ "551" ] } }, "Response": { @@ -1212,38 +1273,40 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "Location": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzJlMDljNmMyLTJiYWItNGQ2MC1hN2NhLWU3ZTgzMmNlYjBlMw==?api-version=2022-05-01" ], + "Location": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2YyYzAyNzdiLTM3NDMtNDJmYS1hYWJlLTQ5MGNhOTFjNjQwZA==?api-version=2022-12-01" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzJlMDljNmMyLTJiYWItNGQ2MC1hN2NhLWU3ZTgzMmNlYjBlMw==?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2YyYzAyNzdiLTM3NDMtNDJmYS1hYWJlLTQ5MGNhOTFjNjQwZA==?api-version=2022-12-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": [ "3629730e-3586-4d3b-b77d-64d3e08f7080" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144232Z:3629730e-3586-4d3b-b77d-64d3e08f7080" ], - "Date": [ "Wed, 29 Jun 2022 14:42:32 GMT" ] + "x-ms-correlation-request-id": [ "e106c27f-c26a-4578-abb8-6166c486b0ec" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093853Z:e106c27f-c26a-4578-abb8-6166c486b0ec" ], + "Date": [ "Mon, 23 Jan 2023 09:38:53 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], "Content-Length": [ "0" ] }, - "Content": null + "Content": null, + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzJlMDljNmMyLTJiYWItNGQ2MC1hN2NhLWU3ZTgzMmNlYjBlMw==?api-version=2022-05-01+32": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2YyYzAyNzdiLTM3NDMtNDJmYS1hYWJlLTQ5MGNhOTFjNjQwZA==?api-version=2022-12-01+32": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzJlMDljNmMyLTJiYWItNGQ2MC1hN2NhLWU3ZTgzMmNlYjBlMw==?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2YyYzAyNzdiLTM3NDMtNDJmYS1hYWJlLTQ5MGNhOTFjNjQwZA==?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "266" ], - "x-ms-client-request-id": [ "fe5fd6b2-df6c-4281-a6d8-41185b237493" ], + "x-ms-unique-id": [ "32" ], + "x-ms-client-request-id": [ "b1e33943-1d01-4a89-b406-fd0d6fb41671" ], "CommandName": [ "Start-AzDataProtectionBackupInstanceRestore" ], "FullCommandName": [ "Start-AzDataProtectionBackupInstanceRestore_Trigger" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -1259,31 +1322,33 @@ "Server": [ "Microsoft-IIS/10.0" ], "X-Powered-By": [ "ASP.NET" ], "x-ms-ratelimit-remaining-subscription-resource-requests": [ "997" ], - "x-ms-correlation-request-id": [ "fa5c2f9e-8733-4a70-8945-ec576efec1c4" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144302Z:fa5c2f9e-8733-4a70-8945-ec576efec1c4" ], - "Date": [ "Wed, 29 Jun 2022 14:43:02 GMT" ] + "x-ms-correlation-request-id": [ "468aeb43-ab92-4752-a01b-9774bc065569" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093924Z:468aeb43-ab92-4752-a01b-9774bc065569" ], + "Date": [ "Mon, 23 Jan 2023 09:39:23 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "737" ], + "Content-Length": [ "736" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzJlMDljNmMyLTJiYWItNGQ2MC1hN2NhLWU3ZTgzMmNlYjBlMw==\",\"name\":\"ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzJlMDljNmMyLTJiYWItNGQ2MC1hN2NhLWU3ZTgzMmNlYjBlMw==\",\"status\":\"Succeeded\",\"startTime\":\"2022-06-29T14:42:32.0138959Z\",\"endTime\":\"2022-06-29T14:42:34Z\",\"properties\":{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd\",\"objectType\":\"OperationJobExtendedInfo\"}}" + "Content": "{\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2YyYzAyNzdiLTM3NDMtNDJmYS1hYWJlLTQ5MGNhOTFjNjQwZA==\",\"name\":\"ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2YyYzAyNzdiLTM3NDMtNDJmYS1hYWJlLTQ5MGNhOTFjNjQwZA==\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-23T09:38:53.218855Z\",\"endTime\":\"2023-01-23T09:38:56Z\",\"properties\":{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/65dffd4d-e061-4e26-9f33-495756656bc6\",\"objectType\":\"OperationJobExtendedInfo\"}}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzJlMDljNmMyLTJiYWItNGQ2MC1hN2NhLWU3ZTgzMmNlYjBlMw==?api-version=2022-05-01+33": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2YyYzAyNzdiLTM3NDMtNDJmYS1hYWJlLTQ5MGNhOTFjNjQwZA==?api-version=2022-12-01+33": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzJlMDljNmMyLTJiYWItNGQ2MC1hN2NhLWU3ZTgzMmNlYjBlMw==?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationResults/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2YyYzAyNzdiLTM3NDMtNDJmYS1hYWJlLTQ5MGNhOTFjNjQwZA==?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "267" ], - "x-ms-client-request-id": [ "fe5fd6b2-df6c-4281-a6d8-41185b237493" ], + "x-ms-unique-id": [ "33" ], + "x-ms-client-request-id": [ "b1e33943-1d01-4a89-b406-fd0d6fb41671" ], "CommandName": [ "Start-AzDataProtectionBackupInstanceRestore" ], "FullCommandName": [ "Start-AzDataProtectionBackupInstanceRestore_Trigger" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ] }, "ContentHeaders": { } @@ -1294,37 +1359,39 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "Retry-After": [ "30" ], - "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyOzJlMDljNmMyLTJiYWItNGQ2MC1hN2NhLWU3ZTgzMmNlYjBlMw==?api-version=2022-05-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/providers/Microsoft.DataProtection/locations/centraluseuap/operationStatus/ZWY5ODFmNjktMDk0Yi00MGU5LWEwNmUtNzVjZGFkNzg1OTEyO2YyYzAyNzdiLTM3NDMtNDJmYS1hYWJlLTQ5MGNhOTFjNjQwZA==?api-version=2022-12-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-resource-requests": [ "197" ], - "x-ms-correlation-request-id": [ "74ce7746-3994-42fc-aaa8-52249e3a5784" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144302Z:74ce7746-3994-42fc-aaa8-52249e3a5784" ], - "Date": [ "Wed, 29 Jun 2022 14:43:02 GMT" ] + "x-ms-correlation-request-id": [ "7d815f38-8b27-4a95-bd50-45875af41f3d" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093924Z:7d815f38-8b27-4a95-bd50-45875af41f3d" ], + "Date": [ "Mon, 23 Jan 2023 09:39:24 GMT" ] }, "ContentHeaders": { "Content-Length": [ "245" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd\",\"objectType\":\"OperationJobExtendedInfo\"}" + "Content": "{\"jobId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/oss-pstest-rg/providers/Microsoft.DataProtection/BackupVaults/oss-pstest-vault/backupJobs/65dffd4d-e061-4e26-9f33-495756656bc6\",\"objectType\":\"OperationJobExtendedInfo\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd?api-version=2022-05-01+34": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/65dffd4d-e061-4e26-9f33-495756656bc6?api-version=2022-12-01+34": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/65dffd4d-e061-4e26-9f33-495756656bc6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "268" ], - "x-ms-client-request-id": [ "33d84cd0-85c0-46c2-a6d0-57c468f31146" ], + "x-ms-unique-id": [ "34" ], + "x-ms-client-request-id": [ "b10cc1a5-c845-412e-ac49-a9b1f7bb3d0a" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1341,30 +1408,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "949e92e1-a880-40cd-9c89-7fb93a71dbcb" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144312Z:949e92e1-a880-40cd-9c89-7fb93a71dbcb" ], - "Date": [ "Wed, 29 Jun 2022 14:43:12 GMT" ] + "x-ms-correlation-request-id": [ "1a29cd98-8d25-4597-b2b0-7b5c9bf3ac25" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093935Z:1a29cd98-8d25-4597-b2b0-7b5c9bf3ac25" ], + "Date": [ "Mon, 23 Jan 2023 09:39:34 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2378" ], + "Content-Length": [ "2379" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"fe5fd6b2-df6c-4281-a6d8-41185b237493\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A42%3A33.0809393Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:42:32.6597066Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"ae0e63098be746af818ca0c7415264ae\",\"recoveryPointTime\":\"2022-06-29T14:38:33.0162385Z\"},\"recoveryDestination\":\"https://osspstestsa.blob.core.windows.net/oss-pstest-container\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"Restore File Prefix\":\"oss-pstest-restoreasfiles-29-06-2022-7-1-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd\",\"name\":\"8470e7cb-0de8-4356-ae75-dfef3dd118fd\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"b1e33943-1d01-4a89-b406-fd0d6fb41671\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T09%3A38%3A54.4194957Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T09:38:54.1992846Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"732ee7d4dd5442a69849d2ffae74663b\",\"recoveryPointTime\":\"2023-01-23T09:34:41.9746901Z\"},\"recoveryDestination\":\"https://osspstestsa.blob.core.windows.net/oss-pstest-container\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"Restore File Prefix\":\"oss-pstest-restoreasfiles-22-01-2023-6-13-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/65dffd4d-e061-4e26-9f33-495756656bc6\",\"name\":\"65dffd4d-e061-4e26-9f33-495756656bc6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd?api-version=2022-05-01+35": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/65dffd4d-e061-4e26-9f33-495756656bc6?api-version=2022-12-01+35": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/65dffd4d-e061-4e26-9f33-495756656bc6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "269" ], - "x-ms-client-request-id": [ "a53209e6-c0b9-4652-ac83-d1edb6a9a18e" ], + "x-ms-unique-id": [ "35" ], + "x-ms-client-request-id": [ "19306992-f3cf-4764-9652-b9ee3b6a00fb" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1381,30 +1450,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "37f1d750-0cec-4ee0-ae1e-f798ec2caccc" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144323Z:37f1d750-0cec-4ee0-ae1e-f798ec2caccc" ], - "Date": [ "Wed, 29 Jun 2022 14:43:22 GMT" ] + "x-ms-correlation-request-id": [ "f388c6e1-7614-4925-b2e0-5508acb57989" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093946Z:f388c6e1-7614-4925-b2e0-5508acb57989" ], + "Date": [ "Mon, 23 Jan 2023 09:39:45 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2378" ], + "Content-Length": [ "2379" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"fe5fd6b2-df6c-4281-a6d8-41185b237493\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A42%3A33.0809393Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:42:32.6597066Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"ae0e63098be746af818ca0c7415264ae\",\"recoveryPointTime\":\"2022-06-29T14:38:33.0162385Z\"},\"recoveryDestination\":\"https://osspstestsa.blob.core.windows.net/oss-pstest-container\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"Restore File Prefix\":\"oss-pstest-restoreasfiles-29-06-2022-7-1-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd\",\"name\":\"8470e7cb-0de8-4356-ae75-dfef3dd118fd\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"b1e33943-1d01-4a89-b406-fd0d6fb41671\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T09%3A38%3A54.4194957Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T09:38:54.1992846Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"732ee7d4dd5442a69849d2ffae74663b\",\"recoveryPointTime\":\"2023-01-23T09:34:41.9746901Z\"},\"recoveryDestination\":\"https://osspstestsa.blob.core.windows.net/oss-pstest-container\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"Restore File Prefix\":\"oss-pstest-restoreasfiles-22-01-2023-6-13-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/65dffd4d-e061-4e26-9f33-495756656bc6\",\"name\":\"65dffd4d-e061-4e26-9f33-495756656bc6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd?api-version=2022-05-01+36": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/65dffd4d-e061-4e26-9f33-495756656bc6?api-version=2022-12-01+36": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/65dffd4d-e061-4e26-9f33-495756656bc6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "270" ], - "x-ms-client-request-id": [ "9110e02a-bfec-43ac-a457-599b0641cd23" ], + "x-ms-unique-id": [ "36" ], + "x-ms-client-request-id": [ "09bc2efb-afcb-47c3-8a2a-057ca218ecd8" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1421,30 +1492,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "a9bb6127-96fb-40f3-9a89-9a94aa8f9060" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144333Z:a9bb6127-96fb-40f3-9a89-9a94aa8f9060" ], - "Date": [ "Wed, 29 Jun 2022 14:43:33 GMT" ] + "x-ms-correlation-request-id": [ "d4925b78-d2b9-4f33-8f04-c4d05820e69b" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T093956Z:d4925b78-d2b9-4f33-8f04-c4d05820e69b" ], + "Date": [ "Mon, 23 Jan 2023 09:39:56 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2378" ], + "Content-Length": [ "2379" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"fe5fd6b2-df6c-4281-a6d8-41185b237493\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A42%3A33.0809393Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:42:32.6597066Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"ae0e63098be746af818ca0c7415264ae\",\"recoveryPointTime\":\"2022-06-29T14:38:33.0162385Z\"},\"recoveryDestination\":\"https://osspstestsa.blob.core.windows.net/oss-pstest-container\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"Restore File Prefix\":\"oss-pstest-restoreasfiles-29-06-2022-7-1-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd\",\"name\":\"8470e7cb-0de8-4356-ae75-dfef3dd118fd\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"b1e33943-1d01-4a89-b406-fd0d6fb41671\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T09%3A38%3A54.4194957Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T09:38:54.1992846Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"732ee7d4dd5442a69849d2ffae74663b\",\"recoveryPointTime\":\"2023-01-23T09:34:41.9746901Z\"},\"recoveryDestination\":\"https://osspstestsa.blob.core.windows.net/oss-pstest-container\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"Restore File Prefix\":\"oss-pstest-restoreasfiles-22-01-2023-6-13-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/65dffd4d-e061-4e26-9f33-495756656bc6\",\"name\":\"65dffd4d-e061-4e26-9f33-495756656bc6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd?api-version=2022-05-01+37": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/65dffd4d-e061-4e26-9f33-495756656bc6?api-version=2022-12-01+37": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/65dffd4d-e061-4e26-9f33-495756656bc6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "271" ], - "x-ms-client-request-id": [ "383072a9-3778-43f9-85f4-b1f98a4c5795" ], + "x-ms-unique-id": [ "37" ], + "x-ms-client-request-id": [ "f3540d70-7c79-4cb8-a7cf-bc263a4a36a0" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1455,36 +1528,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "177" ], "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": [ "b4ea8c66-488f-40d8-8863-fcf7149b1d7f" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144343Z:b4ea8c66-488f-40d8-8863-fcf7149b1d7f" ], - "Date": [ "Wed, 29 Jun 2022 14:43:43 GMT" ] + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "177" ], + "x-ms-correlation-request-id": [ "ce517425-06d0-4f70-9f04-216be8d0f1a7" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T094007Z:ce517425-06d0-4f70-9f04-216be8d0f1a7" ], + "Date": [ "Mon, 23 Jan 2023 09:40:06 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2378" ], + "Content-Length": [ "2379" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"fe5fd6b2-df6c-4281-a6d8-41185b237493\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A42%3A33.0809393Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:42:32.6597066Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"ae0e63098be746af818ca0c7415264ae\",\"recoveryPointTime\":\"2022-06-29T14:38:33.0162385Z\"},\"recoveryDestination\":\"https://osspstestsa.blob.core.windows.net/oss-pstest-container\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"Restore File Prefix\":\"oss-pstest-restoreasfiles-29-06-2022-7-1-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd\",\"name\":\"8470e7cb-0de8-4356-ae75-dfef3dd118fd\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"b1e33943-1d01-4a89-b406-fd0d6fb41671\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T09%3A38%3A54.4194957Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T09:38:54.1992846Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"732ee7d4dd5442a69849d2ffae74663b\",\"recoveryPointTime\":\"2023-01-23T09:34:41.9746901Z\"},\"recoveryDestination\":\"https://osspstestsa.blob.core.windows.net/oss-pstest-container\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"Restore File Prefix\":\"oss-pstest-restoreasfiles-22-01-2023-6-13-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/65dffd4d-e061-4e26-9f33-495756656bc6\",\"name\":\"65dffd4d-e061-4e26-9f33-495756656bc6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd?api-version=2022-05-01+38": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/65dffd4d-e061-4e26-9f33-495756656bc6?api-version=2022-12-01+38": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/65dffd4d-e061-4e26-9f33-495756656bc6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "272" ], - "x-ms-client-request-id": [ "842c55fd-a5a2-4b4e-99ff-c747ba2a0dbc" ], + "x-ms-unique-id": [ "38" ], + "x-ms-client-request-id": [ "3654523b-4b39-4ae9-983d-0fda80626cd2" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1501,30 +1576,32 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "096e9eb7-18c9-4124-8f0e-bc8f6c8120db" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144354Z:096e9eb7-18c9-4124-8f0e-bc8f6c8120db" ], - "Date": [ "Wed, 29 Jun 2022 14:43:53 GMT" ] + "x-ms-correlation-request-id": [ "6415b48f-782c-4c58-aff8-da23eb94274f" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T094019Z:6415b48f-782c-4c58-aff8-da23eb94274f" ], + "Date": [ "Mon, 23 Jan 2023 09:40:19 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2378" ], + "Content-Length": [ "2379" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"fe5fd6b2-df6c-4281-a6d8-41185b237493\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A42%3A33.0809393Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:42:32.6597066Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"ae0e63098be746af818ca0c7415264ae\",\"recoveryPointTime\":\"2022-06-29T14:38:33.0162385Z\"},\"recoveryDestination\":\"https://osspstestsa.blob.core.windows.net/oss-pstest-container\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"Restore File Prefix\":\"oss-pstest-restoreasfiles-29-06-2022-7-1-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd\",\"name\":\"8470e7cb-0de8-4356-ae75-dfef3dd118fd\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"b1e33943-1d01-4a89-b406-fd0d6fb41671\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T09%3A38%3A54.4194957Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T09:38:54.1992846Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"732ee7d4dd5442a69849d2ffae74663b\",\"recoveryPointTime\":\"2023-01-23T09:34:41.9746901Z\"},\"recoveryDestination\":\"https://osspstestsa.blob.core.windows.net/oss-pstest-container\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"Restore File Prefix\":\"oss-pstest-restoreasfiles-22-01-2023-6-13-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/65dffd4d-e061-4e26-9f33-495756656bc6\",\"name\":\"65dffd4d-e061-4e26-9f33-495756656bc6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd?api-version=2022-05-01+39": { + "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/65dffd4d-e061-4e26-9f33-495756656bc6?api-version=2022-12-01+39": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/65dffd4d-e061-4e26-9f33-495756656bc6?api-version=2022-12-01", "Content": null, + "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "273" ], - "x-ms-client-request-id": [ "348c8db1-150a-41b3-bafc-bd62c9be9b92" ], + "x-ms-unique-id": [ "39" ], + "x-ms-client-request-id": [ "c0a66980-710a-4d36-a596-c0c01d397a3b" ], "CommandName": [ "Get-AzDataProtectionJob" ], "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.DataProtection/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -1541,96 +1618,17 @@ "x-ms-request-id": [ "" ], "X-Powered-By": [ "ASP.NET" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-correlation-request-id": [ "5d500742-43f9-4daa-86ec-dd364bafb02d" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144404Z:5d500742-43f9-4daa-86ec-dd364bafb02d" ], - "Date": [ "Wed, 29 Jun 2022 14:44:03 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2378" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"fe5fd6b2-df6c-4281-a6d8-41185b237493\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A42%3A33.0809393Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:42:32.6597066Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"ae0e63098be746af818ca0c7415264ae\",\"recoveryPointTime\":\"2022-06-29T14:38:33.0162385Z\"},\"recoveryDestination\":\"https://osspstestsa.blob.core.windows.net/oss-pstest-container\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"Restore File Prefix\":\"oss-pstest-restoreasfiles-29-06-2022-7-1-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd\",\"name\":\"8470e7cb-0de8-4356-ae75-dfef3dd118fd\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" - } - }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd?api-version=2022-05-01+40": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd?api-version=2022-05-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "274" ], - "x-ms-client-request-id": [ "0b6b7836-f839-4171-9681-641e96d3e7bd" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "174" ], - "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": [ "33f65cb2-e736-498a-8818-b6708b18f54f" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144414Z:33f65cb2-e736-498a-8818-b6708b18f54f" ], - "Date": [ "Wed, 29 Jun 2022 14:44:14 GMT" ] - }, - "ContentHeaders": { - "Content-Length": [ "2378" ], - "Content-Type": [ "application/json" ], - "Expires": [ "-1" ] - }, - "Content": "{\"properties\":{\"activityID\":\"fe5fd6b2-df6c-4281-a6d8-41185b237493\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A42%3A33.0809393Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:42:32.6597066Z\",\"endTime\":null,\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"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\":\"ae0e63098be746af818ca0c7415264ae\",\"recoveryPointTime\":\"2022-06-29T14:38:33.0162385Z\"},\"recoveryDestination\":\"https://osspstestsa.blob.core.windows.net/oss-pstest-container\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"InProgress\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"Restore File Prefix\":\"oss-pstest-restoreasfiles-29-06-2022-7-1-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd\",\"name\":\"8470e7cb-0de8-4356-ae75-dfef3dd118fd\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" - } - }, - "Start-AzDataProtectionBackupInstanceRestore+[NoContext]+OssRestore+$GET+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd?api-version=2022-05-01+41": { - "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd?api-version=2022-05-01", - "Content": null, - "Headers": { - "x-ms-unique-id": [ "275" ], - "x-ms-client-request-id": [ "e9c17385-e548-42be-8e3e-43a82468cb92" ], - "CommandName": [ "Get-AzDataProtectionJob" ], - "FullCommandName": [ "Get-AzDataProtectionJob_Get" ], - "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.2.5", "Az.DataProtection/0.1.0" ], - "Authorization": [ "[Filtered]" ] - }, - "ContentHeaders": { - } - }, - "Response": { - "StatusCode": 200, - "Headers": { - "Cache-Control": [ "no-cache" ], - "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-resource-requests": [ "173" ], - "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": [ "f973c9d1-4729-4334-9aa8-95f9cb5c71d7" ], - "x-ms-routing-request-id": [ "WESTCENTRALUS:20220629T144424Z:f973c9d1-4729-4334-9aa8-95f9cb5c71d7" ], - "Date": [ "Wed, 29 Jun 2022 14:44:24 GMT" ] + "x-ms-correlation-request-id": [ "98862ae6-15f4-48fa-823b-a29c4b25862e" ], + "x-ms-routing-request-id": [ "JIOINDIAWEST:20230123T094031Z:98862ae6-15f4-48fa-823b-a29c4b25862e" ], + "Date": [ "Mon, 23 Jan 2023 09:40:31 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "2412" ], + "Content-Length": [ "2551" ], "Content-Type": [ "application/json" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"activityID\":\"fe5fd6b2-df6c-4281-a6d8-41185b237493\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-cb805c99-e4b5-4617-ae7a-5f6ac271c229\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272022-06-29T14%3A44%3A19.887184Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2022-06-29T14:42:32.6597066Z\",\"endTime\":\"2022-06-29T14:44:19.5000985Z\",\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT1M46.8403919S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":\"ae0e63098be746af818ca0c7415264ae\",\"recoveryPointTime\":\"2022-06-29T14:38:33.0162385Z\"},\"recoveryDestination\":\"https://osspstestsa.blob.core.windows.net/oss-pstest-container\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"Completed\",\"taskProgress\":null,\"additionalDetails\":null}],\"additionalDetails\":{\"Restore File Prefix\":\"oss-pstest-restoreasfiles-29-06-2022-7-1-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/8470e7cb-0de8-4356-ae75-dfef3dd118fd\",\"name\":\"8470e7cb-0de8-4356-ae75-dfef3dd118fd\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}" + "Content": "{\"properties\":{\"activityID\":\"b1e33943-1d01-4a89-b406-fd0d6fb41671\",\"subscriptionId\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"backupInstanceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupInstances/oss-pstest-server-postgres-71e70c85-0927-42f2-a8e4-5aff1a8366ce\",\"policyId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupPolicies/oss-pstest-policy\",\"dataSourceId\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres\",\"vaultName\":\"oss-pstest-vault\",\"backupInstanceFriendlyName\":\"oss-pstest-server\\\\postgres\",\"policyName\":\"oss-pstest-policy\",\"sourceResourceGroup\":\"hiagarg\",\"dataSourceSetName\":\"oss-pstest-server\",\"dataSourceName\":\"postgres\",\"sourceDataStoreName\":null,\"destinationDataStoreName\":null,\"progressEnabled\":false,\"etag\":\"W/\\\"datetime\u00272023-01-23T09%3A40%3A21.1240619Z\u0027\\\"\",\"sourceSubscriptionID\":\"38304e13-357e-405e-9e9a-220351dcce8c\",\"dataSourceLocation\":\"centraluseuap\",\"startTime\":\"2023-01-23T09:38:54.1992846Z\",\"endTime\":\"2023-01-23T09:40:20.6960345Z\",\"dataSourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\",\"operationCategory\":\"Restore\",\"operation\":\"Restore\",\"status\":\"Completed\",\"restoreType\":null,\"isUserTriggered\":true,\"rehydrationPriority\":null,\"supportedActions\":[\"\"],\"duration\":\"PT1M26.4967499S\",\"progressUrl\":null,\"errorDetails\":null,\"extendedInfo\":{\"backupInstanceState\":null,\"dataTransferedInBytes\":null,\"targetRecoverPoint\":null,\"sourceRecoverPoint\":{\"recoveryPointID\":\"732ee7d4dd5442a69849d2ffae74663b\",\"recoveryPointTime\":\"2023-01-23T09:34:41.9746901Z\"},\"recoveryDestination\":\"https://osspstestsa.blob.core.windows.net/oss-pstest-container\",\"subTasks\":[{\"taskId\":1,\"taskName\":\"Trigger Restore\",\"taskStatus\":\"Completed\",\"taskProgress\":null,\"additionalDetails\":{\"DataTransferredInBytes\":\"0\",\"TaskId\":\"b1e33943-1d01-4a89-b406-fd0d6fb41671\",\"DatasourceType\":\"Microsoft.DBforPostgreSQL/servers/databases\"}}],\"additionalDetails\":{\"Restore File Prefix\":\"oss-pstest-restoreasfiles-22-01-2023-6-13-11\"}}},\"id\":\"/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/oss-pstest-rg/providers/Microsoft.DataProtection/backupVaults/oss-pstest-vault/backupJobs/65dffd4d-e061-4e26-9f33-495756656bc6\",\"name\":\"65dffd4d-e061-4e26-9f33-495756656bc6\",\"type\":\"Microsoft.DataProtection/backupVaults/backupJobs\"}", + "isContentBase64": false } } } \ No newline at end of file diff --git a/src/DataProtection/test/env.json b/src/DataProtection/test/env.json index c61f7582d94d..16e7900e6ebb 100644 --- a/src/DataProtection/test/env.json +++ b/src/DataProtection/test/env.json @@ -1,86 +1,86 @@ { - "TestDiskBackupScenario": { - "DiskId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2", - "RestoreDiskId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredkl0f7v1d5w", - "RestoreRG": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg", - "VaultName": "sarath-vault", - "NewPolicyName": "newdiskpolicy-kl0f7v1d5w", + "TestGrantPermission": { + "Blobrg": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blobrg", + "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "OssId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/Ossrg/providers/Microsoft.DBforPostgreSQL/servers/rishitserver3/databases/postgres", + "KeyVaultId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/Sqlrg/providers/Microsoft.KeyVault/vaults/rishitkeyvault3", + "BlobPolicyName": "blobBkpPolicy", + "KeyURI": "https://rishitkeyvault3.vault.azure.net/secrets/rishitnewsecret", + "OssPolicyName": "TestOSSPolicy2", + "VaultRG": "testBkpVaultRG", + "Diskrg": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Diskrg", + "DiskId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Diskrg/providers/Microsoft.Compute/disks/Mydisk2", + "Ossrg": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/Ossrg", + "BlobId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blobrg/providers/Microsoft.Storage/storageAccounts/testblobacc4", + "VaultName": "TestBkpVault", + "DiskPolicyName": "diskBkpPolicy", + "Snapshotrg": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG" + }, + "TestBackupVault": { "ResourceGroupName": "sarath-rg", - "SnapshotRG": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-snapshot-rg", - "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965" + "NewVaultName": "new-pstest-vault", + "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "VaultName": "sarath-vault" }, "TestBlobsRestore": { - "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", "ResourceGroupName": "BlobBackup-BugBash", + "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", "VaultName": "jecECYBlobVault" }, - "TestTriggerBackup": { - "DiskId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk", - "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "TestDiskBackupScenario": { + "NewPolicyName": "newdiskpolicy-qf0v1tdh93", + "RestoreRG": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg", + "DiskId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk2", "ResourceGroupName": "sarath-rg", + "RestoreDiskId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-restore-disk-rg/providers/Microsoft.Compute/disks/sarathdisk2-restoredqf0v1tdh93", + "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", "VaultName": "sarath-vault", - "BackupRuleName": "BackupHourly" + "SnapshotRG": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-snapshot-rg" }, - "TestBackupVault": { - "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", - "NewVaultName": "new-pstest-vault", + "SubscriptionId": "38304e13-357e-405e-9e9a-220351dcce8c", + "RecordDate": "22-01-2023-6-13-11", + "TestBackupJob": { "ResourceGroupName": "sarath-rg", "VaultName": "sarath-vault" }, - "TestResourceGuard": { + "TestOssBackupScenario": { + "OssDbName": "oss-pstest-db", "SubscriptionId": "38304e13-357e-405e-9e9a-220351dcce8c", - "ResourceGroupName": "hiagarg", - "ResourceGuardName": "pstest-resourceguard", - "Location": "centraluseuap" + "FileNamePrefix": "oss-pstest-restoreasfiles", + "PolicyName": "oss-pstest-policy", + "OssServerName": "oss-pstest-server", + "ResourceGroupName": "oss-pstest-rg", + "TargetContainerURI": "https://osspstestsa.blob.core.windows.net/oss-pstest-container", + "KeyVault": "oss-pstest-keyvault", + "VaultName": "oss-pstest-vault", + "TargetResourceId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore", + "SecretURI": "https://oss-pstest-keyvault.vault.azure.net/secrets/oss-pstest-secret", + "OssDbId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres", + "NewPolicyName": "oss-pstest-policy-archive" }, - "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", - "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", - "TestBackupPolicy": { - "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "TestTriggerBackup": { "ResourceGroupName": "sarath-rg", + "DiskId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/sarath-rg/providers/Microsoft.Compute/disks/sarathdisk", + "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", "VaultName": "sarath-vault", - "DiskNewPolicyName": "sarath-disk-generated-policy" + "BackupRuleName": "BackupHourly" }, - "TestBackupJob": { + "TestBackupPolicy": { "ResourceGroupName": "sarath-rg", - "VaultName": "sarath-vault" - }, - "TestBackupInstance": { + "DiskNewPolicyName": "sarath-disk-generated-policy", "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", - "ResourceGroupName": "sarath-rg", "VaultName": "sarath-vault" }, - "TestOssBackupScenario": { - "OssServerName": "oss-pstest-server", - "OssDbId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres", - "PolicyName": "oss-pstest-policy", - "VaultName": "oss-pstest-vault", - "NewPolicyName": "oss-pstest-policy-archive", - "KeyVault": "oss-pstest-keyvault", - "TargetResourceId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore", - "OssDbName": "oss-pstest-db", - "ResourceGroupName": "oss-pstest-rg", - "SecretURI": "https://oss-pstest-keyvault.vault.azure.net/secrets/oss-pstest-secret", - "FileNamePrefix": "oss-pstest-restoreasfiles", - "TargetContainerURI": "https://osspstestsa.blob.core.windows.net/oss-pstest-container", + "TestResourceGuard": { + "ResourceGroupName": "hiagarg", + "Location": "centraluseuap", + "ResourceGuardName": "pstest-resourceguard", "SubscriptionId": "38304e13-357e-405e-9e9a-220351dcce8c" }, - "TestGrantPermission": { - "BlobId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blobrg/providers/Microsoft.Storage/storageAccounts/testblobacc4", - "BlobPolicyName": "blobBkpPolicy", - "KeyVaultId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/Sqlrg/providers/Microsoft.KeyVault/vaults/rishitkeyvault3", - "DiskPolicyName": "diskBkpPolicy", - "KeyURI": "https://rishitkeyvault3.vault.azure.net/secrets/rishitnewsecret", - "VaultName": "TestBkpVault", - "OssPolicyName": "TestOSSPolicy2", - "Snapshotrg": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG", - "Diskrg": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Diskrg", - "DiskId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Diskrg/providers/Microsoft.Compute/disks/Mydisk2", - "Blobrg": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blobrg", - "VaultRG": "testBkpVaultRG", - "OssId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/Ossrg/providers/Microsoft.DBforPostgreSQL/servers/rishitserver3/databases/postgres", + "TestBackupInstance": { + "ResourceGroupName": "sarath-rg", "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", - "Ossrg": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/Ossrg" + "VaultName": "sarath-vault" }, - "RecordDate": "29-06-2022-7-1-11" + "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47" } diff --git a/src/DataProtection/test/utils.ps1 b/src/DataProtection/test/utils.ps1 index 827380a79099..a59e1848ad91 100644 --- a/src/DataProtection/test/utils.ps1 +++ b/src/DataProtection/test/utils.ps1 @@ -11,7 +11,7 @@ function setupEnv() { # as default. You could change them if needed. $env.SubscriptionId = (Get-AzContext).Subscription.Id $env.Tenant = (Get-AzContext).Tenant.Id - $env.RecordDate = (Get-Date -Year 2022 -Month 06 -Day 29 -Hour 19 -Minute 01 -Second 11).ToString('dd-MM-yyyy-h-m-s') + $env.RecordDate = (Get-Date -Year 2023 -Month 01 -Day 22 -Hour 18 -Minute 13 -Second 11).ToString('dd-MM-yyyy-h-m-s') # For any resources you created for test, you should add it to $env here. $BackupInstanceTestVariables = @{